Searanger How do I cheat? Reputation: 0
Joined: 15 Dec 2018 Posts: 1
|
Posted: Fri Dec 28, 2018 6:28 pm Post subject: Assembly Script not changing value at offset |
|
|
I have an OP code that controls HP for all npcs in the game. I'm trying to use code injection to change a value at an offset for all npcs.
This is the original opcode that all HP passes through
Code: | comiss xmm10,[rdi+00000FD8] |
This is my script where I'm trying to change a value at the offset E8 to the value 3. It is a 4byte address.
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"hitman2.exe"+58F9DB3)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [rdi+E8],3
jmp exit
originalcode:
comiss xmm10,[rdi+00000FD8]
exit:
jmp returnhere
"hitman2.exe"+58F9DB3:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"hitman2.exe"+58F9DB3:
comiss xmm10,[rdi+00000FD8]
//Alt: db 44 0F 2F 97 D8 0F 00 00
|
The offset I found was with taking a bunch of addresses from the health opcode and comparing them all with dissect structure
Any help is appreciated. I'm not sure what I'm doing wrong or what to even search google for without being too general.
|
|