aboutsummaryrefslogtreecommitdiff
path: root/TestDLL
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-09-30 08:22:20 +0200
committerToni Uhlig <matzeton@googlemail.com>2019-09-30 08:22:20 +0200
commit041e2d5781133fd06e150a9a9fe93ac63decb23b (patch)
tree7eb5d84b97fbb6fb308390deb2aa64a414d2bc95 /TestDLL
parent4c6173bf7f4a8e539439debda1ad108588f3d904 (diff)
Hunt TestDLL get and show IEntitySystem and ISystem
Diffstat (limited to 'TestDLL')
-rw-r--r--TestDLL/dllmain.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/TestDLL/dllmain.cpp b/TestDLL/dllmain.cpp
index 2841415..0124c65 100644
--- a/TestDLL/dllmain.cpp
+++ b/TestDLL/dllmain.cpp
@@ -1,4 +1,5 @@
#include "stdafx.h"
+#include "HuntClasses.h"
#include <vector>
#include <string>
@@ -203,8 +204,17 @@ void APIENTRY LibEntry(PVOID user_ptr)
text.c_str(),
"TestDLL Notification",
MB_OK | MB_ICONINFORMATION);
+
+ UINT64 pEntSys = (UINT64)user_ptr;
+ pEntSys = *(UINT64*)pEntSys;
+
+ IEntitySystem * iEnt = *(IEntitySystem **)user_ptr;
+
char buf[128];
- snprintf(buf, sizeof buf, "_%s_\n", "bla");
+ snprintf(buf, sizeof buf, "gEnv: %p | %p | %u | %u | %p | %p\n", user_ptr,
+ (PVOID)(*(UINT64*)(pEntSys + 104)), *(BOOL*)(pEntSys + 786974),
+ *(UINT32*)(pEntSys + 786970), (PVOID)(*(UINT64*)(pEntSys + 786962)),
+ iEnt->GetSystem());
MessageBoxA(NULL,
buf,
"TestDLL Notification",