OldSchoolHack

Register / Login English

[C++] Dota 2 BaseEntity

icon Thread: [Coding] [C++] Dota 2 BaseEntity

Join Date: Dec 2011

Posts: 97

User-Rating:

2 positive
0 negative
New shit:
Ich hatte ja mal vor ewigkeiten vor einen Internen CS:GO hack zu schreiben und habe ein wenig experimentiert:

Dll Injection:
TEXT Code:
  1. DWORD WINAPI dwMainThread(LPVOID lpArguments){
  2. MessageBox(0, L"Hooked", L"Enter", MB_OK);
  3.  
  4. ClientFactory = (CreateInterfaceFn)GetProcAddress(GetModuleHandle(L"client.dll"), "CreateInterface");
  5. g_pEntList = (CEntList*) ClientFactory("VClientEntityList003", NULL);
  6. add_log("g_pEntList 0x%X", g_pEntList);
  7.  
  8. CBaseEntity *pBaseEntity = g_pEntList->GetClientEntity(0);
  9.  
  10. for(int i = 1; i < 10; i++){
  11. pBaseEntity = g_pEntList->GetClientEntity(i);
  12. add_log("-----------------------------------------");
  13. add_log("BaseAdress(%d) : 0x%X", i, pBaseEntity);
  14. add_log("BaseAdress(%d) HP : %d", i, pBaseEntity->GetHealth());
  15. }
  16.  
  17.  
  18. return 0;
  19. }

Soweit so gut. 
In der Log File:

TEXT Code:
  1. Log Added (06/14/13 12:06:52): g_pEntList 0x5657607C
  2. Log Added (06/14/13 12:06:52): -----------------------------------------
  3. Log Added (06/14/13 12:06:52): BaseAdress(1) : 0x48EE2850
  4. Log Added (06/14/13 12:06:52): BaseAdress(1) HP : 100
  5. Log Added (06/14/13 12:06:52): -----------------------------------------
  6. Log Added (06/14/13 12:06:52): BaseAdress(2) : 0x543364D0
  7. Log Added (06/14/13 12:06:52): BaseAdress(2) HP : 100
  8. Log Added (06/14/13 12:06:52): -----------------------------------------
  9. Log Added (06/14/13 12:06:52): BaseAdress(3) : 0x5433D200
  10. Log Added (06/14/13 12:06:52): BaseAdress(3) HP : 100
  11. Log Added (06/14/13 12:06:52): -----------------------------------------
  12. Log Added (06/14/13 12:06:52): BaseAdress(4) : 0x5433FAF0
  13. Log Added (06/14/13 12:06:52): BaseAdress(4) HP : 100
  14. Log Added (06/14/13 12:06:52): -----------------------------------------
  15. Log Added (06/14/13 12:06:52): BaseAdress(5) : 0x543423E0
  16. Log Added (06/14/13 12:06:52): BaseAdress(5) HP : 100
  17. Log Added (06/14/13 12:06:52): -----------------------------------------
  18. Log Added (06/14/13 12:06:52): BaseAdress(6) : 0x54344CD0
  19. Log Added (06/14/13 12:06:52): BaseAdress(6) HP : 100
  20. Log Added (06/14/13 12:06:52): -----------------------------------------
  21. Log Added (06/14/13 12:06:52): BaseAdress(7) : 0x543475C0
  22. Log Added (06/14/13 12:06:52): BaseAdress(7) HP : 100
  23. Log Added (06/14/13 12:06:52): -----------------------------------------
  24. Log Added (06/14/13 12:06:52): BaseAdress(8) : 0x54349EB0
  25. Log Added (06/14/13 12:06:52): BaseAdress(8) HP : 100
  26. Log Added (06/14/13 12:06:52): -----------------------------------------
  27. Log Added (06/14/13 12:06:52): BaseAdress(9) : 0x5434C7A0
  28. Log Added (06/14/13 12:06:52): BaseAdress(9) HP : 100
  29. Log Added (06/14/13 12:06:52): -----------------------------------------

Irgendwas habe ich falsch gemacht da die leben der Spieler in der Adresse 0x000000FC liegen und ich bin mir sicher das dass einfach nicht sein kann. Deswegen auch bei HP: 100