View previous topic :: View next topic |
Author |
Message |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Wed Mar 02, 2016 3:47 pm Post subject: Maybe i am doing something wrong? |
|
|
So I made this script for a "Knockdown Race Mode" in Asphalt 8: Airborne
Code: | [ENABLE]
aobscanmodule(Asphalt8_w8.IGPLib::InitParams::operator=+______,Asphalt8_w8.exe,89 __ __ __ __ __ __ __ __ __ 4C 24 14)
alloc(newmem,$1000)
label(code1)
label(code)
label(return)
newmem:
code1:
cmp [eax+ecx+10],1
jne stuff
inc [eax+ecx+10]
jmp return
code:
mov [eax+ecx+10],edx
add ecx,14
jmp return
Asphalt8_w8.IGPLib::InitParams::operator=+______:
jmp code
nop
nop
return:
registersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
[DISABLE]
Asphalt8_w8.IGPLib::InitParams::operator=+______:
db 89 __ __ __ __ __ __
unregistersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
dealloc(newmem)
|
Don't mind me putting some of the bytes as "__" its just for safety xD
Anyway... so whats meant to happen is after I get 1 knockdown the score should increase rapidly (by 1) but for some reason the score flashes and nothing happens. same thing happens if the enemy gets 1 knockdown. If I were to make this
Code: | [ENABLE]
aobscanmodule(Asphalt8_w8.IGPLib::InitParams::operator=+______,Asphalt8_w8.exe,89 __ __ __ __ __ __ __ __ __ 4C 24 14)
alloc(newmem,$1000)
label(code)
label(return)
newmem:
code:
inc [eax+ecx+10]
add ecx,14
jmp return
Asphalt8_w8.IGPLib::InitParams::operator=+______:
jmp code
nop
nop
return:
registersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
[DISABLE]
Asphalt8_w8.IGPLib::InitParams::operator=+______:
db 89 __ __ __ __ __ __
unregistersymbol(Asphalt8_w8.IGPLib::InitParams::operator=+______)
dealloc(newmem)
|
Then sure it would work but if I enable the above before the race starts it will go over the goal of for example 15 and will already be something like 137 and no one wins sins the game thinks non of us reached 15. Please tell me what I have to do to the 1st script to make it work because I don't see any issues.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Wed Mar 02, 2016 7:04 pm Post subject: |
|
|
"safety"? If you're trying to protect your own AoB scan, you're doing a pretty bad job at it considering you just gave everyone the instructions at your injection point.
Code: | code1:
cmp [eax+ecx+10],1
jne stuff
inc [eax+ecx+10]
jmp return
code:
mov [eax+ecx+10],edx
add ecx,14
jmp return | I'm assuming "stuff" is meant to be "code"?
When the cmp sets the ZF, it doesn't add 14 to ecx like the game originally did.
If that doesn't work, then please post the ASM around the injection point.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Thu Mar 03, 2016 3:12 am Post subject: |
|
|
And please don't protect the code, it just makes it more annoying to read ...
|
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Thu Mar 03, 2016 10:23 am Post subject: |
|
|
Isn't this an online game, anyway?
|
|
Back to top |
|
 |
rog9001 Expert Cheater
Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Fri Mar 04, 2016 8:28 am Post subject: |
|
|
I found the issue myself and fixed it... cant believe I didn't think of this xD
Code: | code:
cmp [eax+ecx+10],1
jne originalcode
jmp 2ndcode
originalcode:
mov [eax+ecx+10],edx
add ecx,14
jmp return
2ndcode:
inc [eax+ecx+10]
jmp 3rdcode
3rdcode:
add ecx,14
jmp return |
Also ++METHOS if you do see this Asphalt 8 has a multiplayer feature but also a single player campaign so... I dunno... I guess its online but I am only making hacks for single player.
|
|
Back to top |
|
 |
|