Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ErasePEHeader( HMODULE hModule ) // hModule = handle to DLL
- {
- if((DWORD)hModule == 0) return 0;
- DWORD IMAGE_NT_HEADER = *(int*)((DWORD)hModule + 60);
- for(int i=0; i<0x108; i++)
- *(BYTE*)(IMAGE_NT_HEADER+i) = 0;
- for(int i=0; i<120; i++)
- *(BYTE*)((DWORD)hModule+i) = 0;
- return 1;
- }
Add Comment
Please, Sign In to add comment