#include <Windows.h>
#include <cstdint>
#include <iostream>
void injected_thread() {
FILE* logFile;
fopen_s(&logFile, "log.txt", "w");
while (true) {
if (GetAsyncKeyState('M')) {
auto game_base = ( uint64_t )GetModuleHandle( NULL );
auto idk = *( uint64_t* )( game_base + 0x608F64 );
auto idk1 = *( uint64_t* )( idk + 0x60 );
auto idk2 = *( uint64_t* )( idk1 + 0x80 );
auto idk3 = *( uint64_t* )( idk2 + 0x4 );
auto idk4 = *( uint64_t* )( idk3 + 0x1B8 );
auto idk5 = *( uint64_t* )( idk4 + 0x194 );
auto idk6 = *( uint64_t* )( idk5 + 0x8 );
auto idk7 = *( uint64_t* )( idk6 );
*( int* )( idk7 ) = 999;
fprintf(logFile, "Address: 0x%p\n", idk7);
}
Sleep(1);
}
fclose(logFile);
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)injected_thread, NULL, 0, NULL);
}
return true;
}