问题描述:
自删除(Self Deleting)最早的方法是由 Gary Nebbett 大虾写的,太经典了,程序如下:
#include "windows.h"
int main(int argc, char *argv[])
{
char buf[MAX_PATH];
HMODULE module;
module = GetModuleHandle(0);
GetModuleFileName(module, buf, MAX_PATH);
CloseHandle((HANDLE)4);
__asm
{
lea eax, buf
push 0
push 0
push eax
push ExitProcess
push module
push DeleteFile
push UnmapViewOfFile
ret
}
return 0;
}
问题解答:
C代码分析:高手分析一下EXE程序的自删除代码这个旅游问答期待您的解答,请登录账号或关注微信公众号回答这个问题。