View previous topic :: View next topic |
Author |
Message |
Demolish Cheater
Reputation: 0
Joined: 27 Dec 2010 Posts: 32
|
Posted: Wed Mar 19, 2014 9:33 pm Post subject: creathethread |
|
|
Yeah, theres function in AutoAssemble createthread, but is there function like break/close/remove thread?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
Back to top |
|
 |
Demolish Cheater
Reputation: 0
Joined: 27 Dec 2010 Posts: 32
|
Posted: Thu Mar 20, 2014 10:22 am Post subject: |
|
|
But then i have to call function CreateThread of WinAPI to get my threadID and my create thread function that I would have to run with createthread of autoassembly which makes no sense
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Thu Mar 20, 2014 12:47 pm Post subject: |
|
|
just call exitthread from a code injection
_________________
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 |
|
 |
Demolish Cheater
Reputation: 0
Joined: 27 Dec 2010 Posts: 32
|
Posted: Thu Mar 20, 2014 8:31 pm Post subject: |
|
|
Code: | [ENABLE]
registersymbol(newcode)
alloc(newcode,2000)
createthread(newcode)
newcode:
push #1000
call Sleep
add [mm8.exe+7215D4],#100
jmp newcode
[DISABLE]
//dealloc?
newcode:
ret |
the thing is that I can't dealloc memory or it will crash and it's the only one problem, any suggestions? :/
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Thu Mar 20, 2014 8:53 pm Post subject: |
|
|
Use globalalloc instead of alloc and in the disable part just write a variable address that your loop checks if it should end or not
_________________
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Fri Mar 21, 2014 5:36 am Post subject: |
|
|
Code: | [ENABLE]
createthread(newCode)
globalalloc(newCode,$1000)
label(loop)
label(keepRunning)
registersymbol(keepRunning)
newCode:
push ebp
mov ebp,esp
loop:
...
...your stuff
...
test [keepRunning],01
jnz loop
leave
ret
keepRunning:
dd 1
[DISABLE]
keepRunning:
dd 0
|
_________________
|
|
Back to top |
|
 |
|