Create GetPebAlt.cpp

This commit is contained in:
vxunderground
2022-07-14 23:18:45 -05:00
committed by GitHub
parent fdae91af7f
commit aff16faeb6
+10
View File
@@ -0,0 +1,10 @@
PPEB GetPebAlt(VOID)
{
PTEB Teb;
#if defined(_WIN64)
Teb = (PTEB)__readgsqword(0x30);
#elif define(_WIN32)
Teb = (PTEB)__readfsdword(0x18);
#endif
return (PPEB)Teb->ProcessEnvironmentBlock;
}