Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 18th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. // dllmain.cpp : Defines the entry point for the DLL application.
  2. #include "stdafx.h"
  3.  
  4. DWORD m_base = (DWORD)(GetModuleHandle(NULL));
  5.  
  6. /*DWORD WINAPI game_enhancement_software(LPVOID param)
  7. {
  8.     AllocConsole();
  9.     freopen_s((FILE**)stdout, "CONOUT$", "w", stdout);
  10.  
  11.     obj_manager* manager = (obj_manager*)(m_base + o_object_manager);
  12.  
  13.     DWORD fnptr = m_base + d_vt_isalive;
  14.  
  15.     for (int32_t i = 0; i < manager->highest_index; i++)
  16.     {
  17.         object* this_object = manager->ptrs[i];
  18.         if (this_object)
  19.         {
  20.             DWORD* objvtable = (DWORD*)this_object;
  21.             objvtable = (DWORD *)objvtable[0];
  22.  
  23.             std::cout << "table " << std::dec << 120 << " addr: " << std::hex << objvtable[120] << std::endl;
  24.  
  25.             for (int i = 0; i < 0x1000; i++)
  26.             {
  27.                 __try
  28.                 {
  29.                     if (fnptr == objvtable[i])
  30.                     {
  31.                         std::cout << "table " << std::dec << i << " addr: " << std::hex << objvtable[i] << std::endl;
  32.                     }
  33.                 }
  34.                 __except (EXCEPTION_EXECUTE_HANDLER) {};
  35.             }
  36.         }
  37.  
  38.     };
  39.  
  40.     return FALSE;
  41. }*/
  42.  
  43. DWORD WINAPI game_enhancement_software(LPVOID param)
  44. {
  45.     AllocConsole();
  46.     freopen_s((FILE**)stdout, "CONOUT$", "w", stdout);
  47.  
  48.     DWORD localplayer = *(DWORD*)(m_base + o_local_player);
  49.  
  50.     DWORD* lpvtable = (DWORD*)localplayer;
  51.     lpvtable = (DWORD *)lpvtable[0];
  52.  
  53.     DWORD fnptr = m_base + 0x714f50;
  54.  
  55.     for (int i = 0; i < 0x10000; i++)
  56.     {
  57.         __try
  58.         {
  59.             if (fnptr == lpvtable[i])
  60.             {
  61.                 std::cout << "table " << std::dec << i << " addr: " << std::hex << lpvtable[i] << std::endl;
  62.             }
  63.         }
  64.         __except (EXCEPTION_EXECUTE_HANDLER) {};
  65.     }
  66.  
  67.     return FALSE;
  68. }
  69.  
  70. BOOL APIENTRY DllMain( HMODULE hModule,
  71.                        DWORD  ul_reason_for_call,
  72.                        LPVOID lpReserved
  73.                      )
  74. {
  75.     switch (ul_reason_for_call)
  76.     {
  77.     case DLL_PROCESS_ATTACH:
  78.         CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)game_enhancement_software, NULL, 0, NULL);
  79.     case DLL_THREAD_ATTACH:
  80.     case DLL_THREAD_DETACH:
  81.     case DLL_PROCESS_DETACH:
  82.         break;
  83.     }
  84.     return TRUE;
  85. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top