Thursday, November 20, 2008

AHK - Gain SYSTEM status with explorer.exe

This simple script is supposed to give you system level privileges with explorer.exe on your computer. What it does is create and run a batch file, basically just restarting explorer.exe while elevating your privileges as well.
Process, Close, explorer.exe
str = at %A_Hour%:%A_Min% /interactive explorer.exe
If (FileExist("SYSTEM.bat"))
FileDelete, SYSTEM.bat
FileAppend, % str, SYSTEM.bat
Loop {
If (FileExist("SYSTEM.bat"))
Break
}
RunWait, SYSTEM.bat
FileDelete, SYSTEM.bat


*Note - This program closes explorer.exe. Close any programs before running it.

No comments: