Wednesday, April 25, 2012

[MASM] Shutdown System Directly

;Author SubhashDasyam
.model flat, stdcall
option casemap:none
include \masm32\include\
include \masm32\include\
includelib \masm32\lib\kernel32.lib
include \masm32\include\
includelib \masm32\lib\ntdll.lib
    ResFlag     db  0,0 

invoke RtlAdjustPrivilege,19,1,0,addr ResFlag ;adjust privileges accoding to the table down
invoke NtShutdownSystem,2  ;call NtShutDownSystem directly from ntdll.dll
end start
For better understand here is the table :) Happy Learning and Coding

0 comments for "[MASM] Shutdown System Directly"

Post a Comment