Add files via upload

This commit is contained in:
vxunderground 2021-02-20 19:09:27 -06:00 committed by GitHub
parent acc4d9e5a0
commit 4708ade8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}