| View previous topic :: View next topic |
| Author |
Message |
mbabo Advanced Cheater
Reputation: 0
Joined: 30 Jul 2016 Posts: 74
|
Posted: Thu Sep 15, 2016 5:20 am Post subject: need to aob inject 2 codes in one script |
|
|
greeting , am trying to do enemy's cant move code . the game is using 3 codes
1 code for z 1 code is for x movement and one for y movement .
any way to freeze enemy's i have to write 2 scrips 1 that nop x movement
1 that NOP y movement ( which is totally wrong i know )
NOTE THAT THE CODE ALSO FREEZE MY PLAYER BUT I DID COMPARE
[ESI + 00000001A4] will be 1 for me and 0 for all enemys in game this code
i wrote for enemy x movement nop
| Code: |
[ENABLE]
aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)
label(code)
label(return)
label(hack)
label(freeze)
newmem:
hack:
cmp [esi+000001A4],1
jne freeze
jmp code
freeze:
nop
jmp return
code:
movss [esi+000000E4],xmm1
jmp return
ENEMYMOV:
jmp hack
nop
nop
nop
return:
registersymbol(ENEMYMOV)
[DISABLE]
ENEMYMOV:
db F3 0F 11 8E E4 00 00 00
unregistersymbol(ENEMYMOV)
dealloc(newmem)
|
and this aob for y axsis
| Code: |
[ENABLE]
aobscanmodule(aobyaxis,DP.exe,F3 0F 11 96 E8 00 00 00 F3 0F 11 86)
alloc(newmem,$1000)
label(code)
label(return)
label(hack)
label(freeze)
newmem:
hack:
cmp [esi+000001A4],1
jne freeze
jmp code
freeze:
nop
jmp return
code:
movss [esi+000000E8],xmm2
jmp return
aobyaxis:
jmp hack
nop
nop
nop
return:
registersymbol(aobyaxis)
[DISABLE]
aobyaxis:
db F3 0F 11 96 E8 00 00 00
unregistersymbol(aobyaxis)
dealloc(newmem) |
is there a way to nop both
movss [esi+000000E4],xmm1
movss [esi+000000E8],xmm2
in one aob injection
thank you very much
| Description: |
|
| Filesize: |
104.16 KB |
| Viewed: |
6074 Time(s) |

|
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Sep 15, 2016 6:00 am Post subject: |
|
|
| Code: | [ENABLE]
aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)
label(code)
label(return)
label(hack)
label(freeze)
newmem:
hack:
cmp [esi+000001A4],1
jne freeze
jmp code
freeze:
nop
jmp return
code:
movss [esi+000000E4],xmm1
jmp return
ENEMYMOV:
jmp hack
nop
nop
nop
db 90 90 90 90 90 90 90 90
return:
registersymbol(ENEMYMOV)
[DISABLE]
ENEMYMOV:
db F3 0F 11 8E E4 00 00 00
db F3 0F 11 96 E8 00 00 00
unregistersymbol(ENEMYMOV)
dealloc(newmem) |
|
|
| Back to top |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 958
|
Posted: Thu Sep 15, 2016 6:12 am Post subject: |
|
|
Since both hack points are consecutive with same player filter logic, may try to combine them as one hack point, change 1st script as follow and don't use 2nd script.
| Code: |
[ENABLE]
aobscanmodule(ENEMYMOV,DP.exe,F3 0F 11 8E E4 00 00 00 F3 0F 11 96)
alloc(newmem,$1000)
label(code)
label(return)
label(hack)
label(freeze)
newmem:
hack:
cmp [esi+000001A4],1
jne freeze
jmp code
freeze:
nop
jmp ENEMYMOV+10 // return after 16 (0x10) byte of hack point. original template -> jmp return
code:
movss [esi+000000E4],xmm1
movss [esi+000000E8],xmm2 // added
jmp ENEMYMOV+10 // return after 16 (0x10) byte of hack point. original template -> jmp return
ENEMYMOV:
jmp hack
nop
nop
nop
return:
registersymbol(ENEMYMOV)
[DISABLE]
ENEMYMOV:
db F3 0F 11 8E E4 00 00 00
unregistersymbol(ENEMYMOV)
dealloc(newmem)
|
If confident on understanding the assembler code, may further simplify the code.
bye~
_________________
- Retarded.
Last edited by panraven on Thu Sep 15, 2016 6:19 am; edited 1 time in total |
|
| Back to top |
|
 |
mbabo Advanced Cheater
Reputation: 0
Joined: 30 Jul 2016 Posts: 74
|
Posted: Thu Sep 15, 2016 6:17 am Post subject: |
|
|
i tried both codes they also freeze my player
|
|
| Back to top |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 958
|
|
| Back to top |
|
 |
mbabo Advanced Cheater
Reputation: 0
Joined: 30 Jul 2016 Posts: 74
|
Posted: Thu Sep 15, 2016 7:03 am Post subject: |
|
|
| panraven wrote: | | mbabo wrote: | i tried both codes they also freeze my player  |
Sorry, I mistakenly copy over the 'jmp code' just following the player comparing, it should not be changed.
bye~ |
thank you very much its working although i dont really understand why +10
you were right the problem was with comparing it changed after i got another map that why my player froze i found another value to compare
|
|
| Back to top |
|
 |
|