| View previous topic :: View next topic |
| Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue Feb 23, 2016 11:46 pm Post subject: Is it possible to disable AA script by using "jmp" |
|
|
Is it possible to jump to the "Disable AA script" by using jump commands, such as jmp, jl, je, etc?
I want to achieve the following:
| Code: |
[ENABLE]
......
cmp eax,1
je [DISABLE] <---------something like this?
.....
[DISABLE]
.......
|
I want this result because in the game that I want to put my cheat in, there is a function that keeps repeating itself, so when I inject my cheat, which increases health value by 1, the health value keeps going up to an extend that I don't like (and there is no other way to detect the value, just assume I am right ). So I want to compare the health of the unit, and when it reaches certain value, the cheat AA script will stop.
Thanks in advance.
|
|
| Back to top |
|
 |
akumakuja28 Master Cheater
Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Wed Feb 24, 2016 1:56 am Post subject: |
|
|
post the rest of your script.
And no there is no easy way to disable a script like that. Difficult ways yes. Easier ways are possible but we need more info about the code injection spot.
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25832 Location: The netherlands
|
Posted: Wed Feb 24, 2016 2:40 am Post subject: |
|
|
instead of jumping to disable, you can also jump to the original code, making it behave like it's disabled
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Wed Feb 24, 2016 10:42 am Post subject: |
|
|
| Dark Byte wrote: | | instead of jumping to disable, you can also jump to the original code, making it behave like it's disabled |
Thanks for the reply, two more things If I may:
1. You said instead of jumping to disable, I can "also" jump to the original code. Does it mean I can jump to the disable part?
2. The reason I don't want to jump to the original code is that when I open a certain game menu, that memory address, to which I want to change its value, is repeatedly accessed by another function, like a timer that keeps going on and on. However, I only want to change the value once. That's why I need to jump to DISABLE directly. If I jump to original code, the memory address will stilling be accessed by another function and the value will keep being modified.
|
|
| Back to top |
|
 |
Vlad-00003 Cheater
Reputation: 0
Joined: 21 Jul 2015 Posts: 36
|
Posted: Wed Feb 24, 2016 10:53 am Post subject: |
|
|
Create some kind of flag, like this:
| Code: |
alloc(_yourAlloc,$100)
alloc(_completeOnce,1)
label(return)
label(originalcode)
_completeOnce:
db 0
_yourAlloc:
...
mov [_completeOnce], 1
jmp return
originalcode:
...
return:
|
something like that
Edit:
Just check what I wrote and .... did facepalm...
Step-by-step:
1) alloc flag and set it to 0
2)check if it 1 and if so, got to the original code
3)make what you want(inc heal?)
4)jmp to return
5) original code(with jmp to the return)
Edit2:
Also - post your script.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Wed Feb 24, 2016 12:50 pm Post subject: |
|
|
^Like the poster above said you can use flags
OR
Right after you execute your code, write back the original bytes to the game memory thereby removing the jump to your code cave(allocated memory) so your script will only be executed once. This has the disadvantage that CE won't know you disabled your code and still show your script as activated. Something like this
_yourAlloc:
...
your desired code injection
cmp eax,1
je DISABLEdd <---------something like this?
.....
DISABLEdd:
mov [gamecode], C80054
mov [gamecode+4], D8F011
Using the flags is a better way though and the above^ can only be handy if for some reason you don't want your jump to codecave be present all the time of game exectuion.
_________________
|
|
| Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Wed Feb 24, 2016 2:12 pm Post subject: |
|
|
| Thanks a lot guys. I will try that and give you guys feedback. Thanks again.
|
|
| Back to top |
|
 |
|