| View previous topic :: View next topic |
| Author |
Message |
Cryptiik How do I cheat?
Reputation: 0
Joined: 10 Nov 2010 Posts: 2
|
Posted: Wed Nov 10, 2010 12:03 pm Post subject: Problem with Pinball hack. |
|
|
Hi,
I'm good at C++ and have just started ASM, so I decided to write a pinball hack to test out my new ASM skills.
I managed to get this:
| Code: |
#include <iostream>
#include <windows.h>
#include <conio.h>
using namespace std;
int main(){
__asm{
push eax //Push EAX onto the stack
mov eax, 10 //Eax = 10
mov dword ptr ds:0x02A22F1A, eax //Put 10 into the score mem addy
pop eax
}
getch();
return 0;
}
|
However when I run the program in Visual C++ 2008 express it compiles correctly, but has some access violation when I try to write a new value to the address:
| Quote: |
Unhandled exception at 0x011a13f4 in PinballHack.exe: 0xC0000005: Access violation writing location 0x02a22f1a.
|
Because the memory address it's having trouble with writing to is the correct one, I'm wondering if my method of writing to the address just using mov is wrong...
Please Help,
Thanks In Advance,
Cryptiik
|
|
| Back to top |
|
 |
Cryptiik How do I cheat?
Reputation: 0
Joined: 10 Nov 2010 Posts: 2
|
Posted: Thu Nov 11, 2010 3:55 pm Post subject: |
|
|
If anyone is wondering why it didn't work - It's because it was changing the address in it's own memory, a way to make it change the target program's memory was to change the project to a DLL, and to inject the ASM - It now works.
Regards,
Cryptiik
|
|
| Back to top |
|
 |
me Grandmaster Cheater
Reputation: 2
Joined: 24 Jun 2004 Posts: 733 Location: location location
|
Posted: Thu Nov 11, 2010 8:24 pm Post subject: |
|
|
yup..
I'll have to refresh on the cheat engine code injection part since not used it for a fair while..
but only posting cos one handy tip for this ole game is if when you get the hundreds of adresses up in your first non pointer scans.. I seem to remember if you scroll right down to the very bottom of the "found" list.. you get a stable pointer for the game in green..
the greens above are not reliable.. but the very bottom green address was stable...
like I say.. was a few years ago now.. I cursed cheat engine with the pinball tutorials by posting the first one.. sorries mr dark byte..
_________________
|
|
| Back to top |
|
 |
|