View previous topic :: View next topic |
Author |
Message |
saik Newbie cheater
Reputation: 0
Joined: 06 Apr 2016 Posts: 17
|
Posted: Sat Jun 18, 2016 9:32 pm Post subject: little help custom asm using same value |
|
|
little help custom asm using same value
example
Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
dd 00258889:
originalcode:
mov edx,[ecx+5C]
mov [ebp-0C],dd
exit:
jmp returnhere
"Client.exe"+5993DC:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx |
dd 00258889: i want to use it as the main value of full script but when use it like this way mov [ebp-0C],dd it active and get the correct value but no change in the game but when use it like mov [ebp-0C],0003F349 it work in game whet's the wrong ?
0003F349 = 00258889 in hex
|
|
Back to top |
|
 |
cooleko Grandmaster Cheater
Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Sat Jun 18, 2016 9:57 pm Post subject: |
|
|
Dd isnt the identifier [newmem] is, get rid of the : after dd and use the correct identifer. Should work.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jun 18, 2016 10:02 pm Post subject: |
|
|
Code: | mov [ecx+5C],00258889
mov edx,[ecx+5C]
mov [ebp-0C],edx |
|
|
Back to top |
|
 |
saik Newbie cheater
Reputation: 0
Joined: 06 Apr 2016 Posts: 17
|
Posted: Sun Jun 19, 2016 8:44 am Post subject: |
|
|
cooleko wrote: | Dd isnt the identifier [newmem] is, get rid of the : after dd and use the correct identifer. Should work. |
not working
Zanzer wrote: | Code: | mov [ecx+5C],00258889
mov edx,[ecx+5C]
mov [ebp-0C],edx |
|
by this way will work but i need to put 00258889 in others script
i need it to be like db= 00258889 and for other script ,db because value to be easy to change
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 19, 2016 10:06 am Post subject: |
|
|
Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(myvar,4)
myvar:
dd 00258889
newmem:
originalcode:
mov edx,[myvar]
mov [ecx+5C],edx
mov [ebp-0C],edx
exit:
jmp returnhere
"Client.exe"+5993DC:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx |
|
|
Back to top |
|
 |
saik Newbie cheater
Reputation: 0
Joined: 06 Apr 2016 Posts: 17
|
Posted: Sun Jun 19, 2016 2:14 pm Post subject: |
|
|
Zanzer wrote: | Code: | [ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
globalalloc(myvar,4)
myvar:
dd 00258889
newmem:
originalcode:
mov edx,[myvar]
mov [ecx+5C],edx
mov [ebp-0C],edx
exit:
jmp returnhere
"Client.exe"+5993DC:
jmp newmem
nop
returnhere:
[DISABLE]
dealloc(newmem)
"Client.exe"+5993DC:
mov edx,[ecx+5C]
mov [ebp-0C],edx |
|
working thanks but there a problem when inactive it need to restart the game to stop it,it can be fix ?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 19, 2016 9:44 pm Post subject: |
|
|
I assume that's because the game doesn't go back and write a valid value to the address.
Maybe you'll get luck and you can simply comment out:
|
|
Back to top |
|
 |
saik Newbie cheater
Reputation: 0
Joined: 06 Apr 2016 Posts: 17
|
Posted: Sun Jun 19, 2016 10:17 pm Post subject: |
|
|
Zanzer wrote: | I assume that's because the game doesn't go back and write a valid value to the address.
Maybe you'll get luck and you can simply comment out: |
well thanks will try
|
|
Back to top |
|
 |
|