| View previous topic :: View next topic |
| Author |
Message |
SlashBlow Advanced Cheater
Reputation: 0
Joined: 19 Sep 2006 Posts: 95
|
Posted: Tue Sep 26, 2006 4:25 pm Post subject: Conditions in Assembler |
|
|
Hello world...
I wanted to know, if it's possible to make in ASM a code like this :
| Code: | If [edi+18] > 0
Then Kill(MapleStory.exe); |
Anyone got ideas ? :S
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25964 Location: The netherlands
|
Posted: Wed Sep 27, 2006 1:40 am Post subject: |
|
|
cmp [edi+18]
jna normal
push maplestoryprocessid
call TerminateProcess
normal:
...
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
SlashBlow Advanced Cheater
Reputation: 0
Joined: 19 Sep 2006 Posts: 95
|
Posted: Wed Sep 27, 2006 8:51 am Post subject: |
|
|
| Code: | [ENABLE]
registersymbol(AutoDC)
alloc(AutoDC, 1024)
AutoDC:
mov edi, [760640]
cmp [edi+18], 00
jna normal
push maplestoryprocessid
call TerminateProcess
normal:
...
[DISABLE]
unregistersymbol(AutoDC)
dealloc(AutoDC) |
"Error in line 7 (jna normal) :This instrcution can't be compiled."
Hum weird :S Any ideas ?
===
EDIT :
| Code: | [ENABLE]
registersymbol(AutoDC)
registersymbol(Normal)
alloc(AutoDC, 1024)
alloc(Normal, 1024)
Normal:
AutoDC:
mov edi, [760640]
cmp [edi+18], 00
jna Normal
push maplestoryprocessid
call TerminateProcess
[DISABLE]
unregistersymbol(AutoDC)
unregistersymbol(Normal)
dealloc(AutoDC)
dealloc(Normal) |
"Error in line 12 (push maplestoryprocessid) :This instrcution can't be compiled."
Eww, I don't see how to fix this now...
|
|
| Back to top |
|
 |
xentar Grandmaster Cheater
Reputation: 0
Joined: 08 Jul 2006 Posts: 708 Location: USA, Mass
|
Posted: Wed Sep 27, 2006 11:38 am Post subject: |
|
|
the maplestoryid is just a place holder for whatever the process id for MS. You can register this id and add it to the table and everytime after you succesfully attach, find out what this id is and fill the value. Or better yet, DB add a register global symbols for currentProcessId we can use for the current attached process.
Another way is causing MS to crash like
mov eax, [0]
I guess it is the same as what you try to do.
|
|
| Back to top |
|
 |
SlashBlow Advanced Cheater
Reputation: 0
Joined: 19 Sep 2006 Posts: 95
|
Posted: Wed Sep 27, 2006 3:43 pm Post subject: |
|
|
Thanks xentar for your help
By the way, what's the global symbol for the currentProcessID that you are talking about ?
(+rep for you)
|
|
| Back to top |
|
 |
xentar Grandmaster Cheater
Reputation: 0
Joined: 08 Jul 2006 Posts: 708 Location: USA, Mass
|
Posted: Thu Sep 28, 2006 1:18 pm Post subject: |
|
|
| I don't think there is one, that is why I am hinting DB to have it in CE. It is a good to have feature.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25964 Location: The netherlands
|
Posted: Fri Sep 29, 2006 12:58 am Post subject: |
|
|
asm:
call GetCurrentProcessId
after that eax contains the processid
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|