| View previous topic :: View next topic |
| Author |
Message |
eranj How do I cheat?
Reputation: 0
Joined: 28 Feb 2010 Posts: 9
|
Posted: Thu Mar 04, 2010 3:28 pm Post subject: [Problem] My first AA script for Minesweeper |
|
|
I tried to make god mode for Minesweeper but when i click on a Mine the program get error and quit.
i found that there is a address (winmine.exe+5000) that when it equals to 1 it let you keep playing and when its equals to 16 its stop the game (because you loss..).
I know i can just freeze the address on the value 1 but I want to try it with AA.
here is my code:
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
010034DE:
jmp newmem
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
sub [eax],al
originalcode:
add [eax],al
pop esi
je 0100350f
exit:
jmp returnhere
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
010034DE:
add [eax],al
pop esi
je 0100350f
//Alt: db 00 00 5E 74 2C |
I know i newbie but if you correct it, can you explain?
|
|
| Back to top |
|
 |
Tom331 Cheater
Reputation: 0
Joined: 14 Jul 2007 Posts: 25
|
Posted: Fri Mar 05, 2010 9:57 pm Post subject: |
|
|
The only problem I see with the actual code is that in the "newmem" bit you need to put a jump back to the original code
so just add "jmp exit"
However you might wana check the addresses, 10034DE isn't the address of any instructions, its half way through one
Note:I think you should practice and get a bit more experience with asm basics before getting ahead of yourself =]
|
|
| Back to top |
|
 |
eranj How do I cheat?
Reputation: 0
Joined: 28 Feb 2010 Posts: 9
|
Posted: Sat Mar 06, 2010 9:54 am Post subject: |
|
|
Have any recommendations for sources?
I know asm but i cant understand why when i loss a game the program crash..(because of this script).
10034DE is the the address that increase the number that in winmine.exe+5000 .
|
|
| Back to top |
|
 |
Tom331 Cheater
Reputation: 0
Joined: 14 Jul 2007 Posts: 25
|
Posted: Sun Mar 07, 2010 9:32 am Post subject: |
|
|
Its not, its part way through the address that moves 16 into the address that stops you playing, the original instruction is
010034D6 MOV DWORD PTR DS:[1005000],10 //16 in hex
you are writing add [eax], al to 010034DE, which is part way through this instruction which basically messes up the flow of the program causing it to crash
|
|
| Back to top |
|
 |
GutenLinux How do I cheat?
Reputation: 0
Joined: 04 Oct 2010 Posts: 1 Location: China
|
Posted: Sun Oct 31, 2010 12:23 am Post subject: |
|
|
| Tom331 wrote: | Its not, its part way through the address that moves 16 into the address that stops you playing, the original instruction is
010034D6 MOV DWORD PTR DS:[1005000],10 //16 in hex
you are writing add [eax], al to 010034DE, which is part way through this instruction which basically messes up the flow of the program causing it to crash |
yeah, that's it.
infinite click
| Code: |
[ENABLE]
010034D6:
nop
[DISABLE]
010034D6:
mov [01005000], 10
|
|
|
| Back to top |
|
 |
|