热
热血
Unregistered / Unconfirmed
GUEST, unregistred user!
#include Windows.h
int main(int argc, char *argv[])
{
HMODULE module = GetModuleHandle(0);
CHAR buf[MAX_PATH];
GetModuleFileName(module, buf, sizeof(buf));
MessageBox(0,"Del Me","Test",MB_OK);
CloseHandle((HANDLE)4);
__asm {
lea eax, buf
push 0
push 0
push eax
push ExitProcess
push module
push DeleteFile
push UnmapViewOfFile
ret
}
return 0;
}
采用vc++6.0的控制台模式编译
运行该程序后自动把自己删掉
int main(int argc, char *argv[])
{
HMODULE module = GetModuleHandle(0);
CHAR buf[MAX_PATH];
GetModuleFileName(module, buf, sizeof(buf));
MessageBox(0,"Del Me","Test",MB_OK);
CloseHandle((HANDLE)4);
__asm {
lea eax, buf
push 0
push 0
push eax
push ExitProcess
push module
push DeleteFile
push UnmapViewOfFile
ret
}
return 0;
}
采用vc++6.0的控制台模式编译
运行该程序后自动把自己删掉