Created
July 8, 2016 20:21
-
-
Save ahmetabdi/461ff7ce334ab31ef0302dd5ebffe5bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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