
__asm {mov esi, YOURADDIE}:
#include <windows.h>
#include <detours.h>
unsigned long return_address = youraddie + how many bits the call is //you can find this out by looking at the OP codes and counting how many pairs of two
// use a naked function so that there is no prolog or epilog and you can right pure asm
__declspec (naked) void Hack()
__asm
{
NOP // This obviously is a nop
ret return_address // This return to the place in memory after the nop
}
}
void Main_Hack()
{
DetourFunction((BYTE*)addie, (BYTE*)Hack); //This is to basically detour the function that makes your smg count go down.
}
bool __stdcall DllMain(HINSTANCE hInst,unsigned long ulReason, void* lpUseless) //this is the entry point of a dll
{
if(ulReason == DLL_PROCESS_ATTACH) // We are saying that if the dll is attatched to the game then do this:
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)Hack_Main,0,0,0); // This starts our hack thread or function
}
return true;
}
// Hopefully you learned something and not just copying and pasting
inc dword ptr ds:[esi]
char *pInstr = "\xFF\x06"; memcpy(dest, pInstr, 2);
#include <windows.h>
#include "detours.h"
#pragma comment(lib, "detours.lib")
// use a naked function so that there is no prolog or epilog and you can right pure asm
__declspec (naked) void Hack()
{
__asm
{
NOP
}
}
void thread()
{
DetourFunction((BYTE*)(0x5BF94FCF), (BYTE*)Hack); //This is to basically detour the function that makes your smg count go down.
}
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
{
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread( NULL, NULL, (LPTHREAD_START_ROUTINE)thread, NULL, NULL, NULL);
}
return TRUE;
}