booingthetroll Expert Cheater
Reputation: 0
Joined: 30 Aug 2011 Posts: 114 Location: ::1
|
Posted: Sat Apr 21, 2012 5:16 pm Post subject: Alternatives to injecting in commonly called code? |
|
|
I'm writing a trainer for Minesweeper. Everything is flawless except for one thing - the autoreveal button. Right now, it relies on the timer; it injects into the address where the mov is that writes the current time to the screen.
| Code: |
Trainer.Functions.RevealMines = function()
autoAssemble([[alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem:
push 0A
call 01002F80
originalcode:
cmp [0100579C],000003E7
exit:
jmp returnhere
"winmine.exe"+2FE9:
jmp newmem
nop
nop
nop
nop
nop
returnhere:
]]) |
This means that the user has to click somewhere and wait two seconds before the mines autoreveal. This could mean the games restart, which can be irritating. Are there any alternatives to injecting into commonly called code?
|
|