Add files via upload
This commit is contained in:
parent
acc4d9e5a0
commit
4708ade8f1
14
GetPEB.c
Normal file
14
GetPEB.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <windows.h>
|
||||
#include "PEB.h"
|
||||
|
||||
INT main(VOID)
|
||||
{
|
||||
#if defined(_WIN64)
|
||||
//64bit
|
||||
PPEB Peb = (PPEB)__readgsqword(0x60);
|
||||
#elif define(_WIN32)
|
||||
//32bit
|
||||
PPEB Peb = (PPEB)__readfsdword(0x30);
|
||||
#endif
|
||||
return ERROR_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user