Skip to content

Instantly share code, notes, and snippets.

@ahmetabdi
Created July 8, 2016 20:21
Show Gist options
  • Save ahmetabdi/461ff7ce334ab31ef0302dd5ebffe5bd to your computer and use it in GitHub Desktop.
Save ahmetabdi/461ff7ce334ab31ef0302dd5ebffe5bd to your computer and use it in GitHub Desktop.
// Step9LetsGo.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Includes.h"
#include "Process.h"
int main()
{
process->Attach("Tutorial-i386.exe");
client = process->GetModule("Tutorial-i386.exe");
DWORD_PTR MainPtr = client->GetImage();
DWORD_PTR MainPtrSize = client->GetSize();
for (;;) {
DWORD_PTR Player1Something = process->Read<DWORD>(MainPtr + 0x00234670);
DWORD_PTR Player1Something2 = process->Read<DWORD>(Player1Something + 0x4B4);
DWORD_PTR Player2Something = process->Read<DWORD>(MainPtr + 0x00234670);
DWORD_PTR Player2Something2 = process->Read<DWORD>(Player2Something + 0x4B8);
process->Write<FLOAT>(Player1Something2 + 0x04, 100.0);
process->Write<FLOAT>(Player2Something2 + 0x04, 100.0);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment