Skip to content

Commit d4cddc2

Browse files
authored
Update main.cpp
1 parent bd8b33a commit d4cddc2

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/jni/main.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,7 @@
22

33
int main()
44
{
5-
ProcessManager p("com.madfingergames.deadtrigger2");
6-
7-
uintptr_t libil2cppAddr = p.GetModBaseAddr("libil2cpp.so");
8-
uintptr_t entityListAddr = p.FindDMAddy(libil2cppAddr + 0x1978C60, {0x5C, 0x0, 0x3C, 0x14, 0x8, 0x0});
9-
10-
int entityListMaxItem = p.ReadProcessMemory<int>(entityListAddr + 0xC);
11-
printf("Entity List Max items ==> [%d]\n", entityListMaxItem);
12-
13-
for(int i = 0; i < entityListMaxItem; i++)
14-
{
15-
uintptr_t currEntity = p.ReadProcessMemory<uintptr_t>(entityListAddr + i * 4 + 0x10); // curr index
16-
if(!currEntity)
17-
continue;
18-
19-
printf("Entity at index %d ===> [%08X]\n", i, currEntity);
20-
}
5+
ProcessManager p("com.yourtargetprocess.name");
216

227
return 0;
238
}

0 commit comments

Comments
 (0)