Hallo liebe Comunity !
Ich habe mir demletzt einen kleinen S4 League Hack gecodet,
nachdem ich mir hier ein Gamehacking mit C++ Tutorial durchgelesen hatte.
Ich will 2 Values verändern, das Programm läuft zwar, jedoch
wird der Dmg nicht verändert.
Hoffe, ihr könnt mir helfen :)
Btw bin noch ein kompletter Anfänger, also bitte kein geflame^^
Info: Die zu verändernden Values sind Float 1.
€dit: Ich benutze Visual Studios Express.
Hallo everyone !
I've coded a little dmg hack for S4 League having read
a tutorial about gamehacking with C++.
The hack is supposed to change 2 values. The programm is running,
but the dmg doesn't get changed. I hope you can help me. :)
Btw I'm a complete beginner so pls don't flame^^
Info: the values that shall be changed are both float 1.
€dit: I'm using Visual Studios Express.
Here's the sourcecode:
Hier ist der Sourcecode:
Ich habe mir demletzt einen kleinen S4 League Hack gecodet,
nachdem ich mir hier ein Gamehacking mit C++ Tutorial durchgelesen hatte.
Ich will 2 Values verändern, das Programm läuft zwar, jedoch
wird der Dmg nicht verändert.
Hoffe, ihr könnt mir helfen :)
Btw bin noch ein kompletter Anfänger, also bitte kein geflame^^
Info: Die zu verändernden Values sind Float 1.
€dit: Ich benutze Visual Studios Express.
Hallo everyone !
I've coded a little dmg hack for S4 League having read
a tutorial about gamehacking with C++.
The hack is supposed to change 2 values. The programm is running,
but the dmg doesn't get changed. I hope you can help me. :)
Btw I'm a complete beginner so pls don't flame^^
Info: the values that shall be changed are both float 1.
€dit: I'm using Visual Studios Express.
Here's the sourcecode:
Hier ist der Sourcecode:
Code:
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
HWND hwnd;
hwnd = FindWindow(0,L"S4 Client");
DWORD Id;
HANDLE ProcessHandle;
float value;
unsigned adress = 0x000D57BC0;
unsigned adress2 = 0x0000D57BC4;
if(!hwnd)
{
cout << "S4 League not found !" << endl;
}
else
{
cout << "S4 League found !" << endl;
cout << "Windowhandle: " << hwnd << endl;
GetWindowThreadProcessId(hwnd,&Id);
cout << "Process Id: " << Id << endl;
ProcessHandle = OpenProcess(PROCESS_VM_WRITE |PROCESS_VM_OPERATION ,FALSE,Id);
cout << "ProcessHandle: " << ProcessHandle << endl;
cout << "How much points to add? ";
cin >> value;
fflush(stdin);
WriteProcessMemory(ProcessHandle,(LPVOID)adress,&value,sizeof(int),NULL);
WriteProcessMemory(ProcessHandle,(LPVOID)adress2,&value,sizeof(int),NULL);
cout << "Points added " << endl;
cin.get();
}
}