| View previous topic :: View next topic |
| Author |
Message |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Fri Jun 20, 2014 6:53 am Post subject: Createthread - help :D |
|
|
Somebody give me a proper template so i can understand how it works i know what it does but not sure how to properly set it up
this is what i did and it made the game crash
Space runners. code for getting resource value but i have enable and disable it at every map in order to get the new value so i thought lets make a createthread = first time i ever done this
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
globalalloc(mycode,64)
registersymbol(_cred)
createtread(mycode)
mycode:
aobscan(_cred,00 24 7D ?? ?? ?? ?? ?? A0 ?? ?? ?? ?? 00 00 00 FF FF FF FF 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 D0 7E 7A 01 00)
_cred:
push #1000
call sleep
jmp mycode
[DISABLE]
ret
unregistersymbol(_cred) |
|
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 20, 2014 11:07 am Post subject: Re: Createthread - help :D |
|
|
| NanoByte wrote: | Somebody give me a proper template so i can understand how it works i know what it does but not sure how to properly set it up
this is what i did and it made the game crash
Space runners. code for getting resource value but i have enable and disable it at every map in order to get the new value so i thought lets make a createthread = first time i ever done this
| Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
globalalloc(mycode,64)
registersymbol(_cred)
createtread(mycode)
mycode:
aobscan(_cred,00 24 7D ?? ?? ?? ?? ?? A0 ?? ?? ?? ?? 00 00 00 FF FF FF FF 00 00 00 00 ?? ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 D0 7E 7A 01 00)
_cred:
push #1000
call sleep
jmp mycode
[DISABLE]
ret
unregistersymbol(_cred) |
|
createthread has the syntax createthread(address).
In order to make good use of it,you just need to know what a thread is.
A thread of execution in a program is the thing that executes code from the top to the bottom,of course,doing all sorts of operatons,taking jumps,calls etc. each thread has its own instruction pointer (eip),its own stack (pointed at by esp) and its own registers,so in a game it's possible that a thread is handling game events,another one playing music etc.,some applications are not multithreaded.
When you create a thread,you don't hook the game's code,exept if you really know what you're doing,because when the game will execute its code,it will execute it with its own thread.
In your code,why did you place 'aobscan' below the 'mycode' label?aobscan is generally used on the top of the script.
In the disable section,do :
| Code: | [disable]
mycode:
ret
unregistersymbol(_cred) //I don't know what this is for |
What are you trying to do with this?
You could get more informations about threads from Wikipedia
|
|
| Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Fri Jun 20, 2014 12:14 pm Post subject: |
|
|
yeah it was stupid to place aob there slowed the game like hell
the game is space-runner
ever map the address changes to the resources so i was trying to keep the address updated
so at map 1
add = 1234
value = 100
map 2
add = 2134
Value = 100
so i had to keep enable disable the cheat at every map to get the right address
|
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 20, 2014 1:55 pm Post subject: |
|
|
| NanoByte wrote: | yeah it was stupid to place aob there slowed the game like hell
the game is space-runner
ever map the address changes to the resources so i was trying to keep the address updated
so at map 1
add = 1234
value = 100
map 2
add = 2134
Value = 100
so i had to keep enable disable the cheat at every map to get the right address |
So if I understand correctly you want to keep writing the value 100 to the address that changes in each map,what is the AOB for?is it a part of the game's code?
Also,can you find the map number in the game's memory?it may help to make better code.
|
|
| Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Fri Jun 20, 2014 2:41 pm Post subject: |
|
|
no man u dont understand,
when i activate my aobscript i get the address and i can change or whatever i want
but when the map is complete the address get unvalid and i have to disable and enable it
|
|
| Back to top |
|
 |
justa_dude Grandmaster Cheater
Reputation: 23
Joined: 29 Jun 2010 Posts: 893
|
Posted: Fri Jun 20, 2014 3:49 pm Post subject: |
|
|
Chances are good that you can find a pointer that will always have as its value the address of the value you're trying to change. Finding this pointer would be a lot more efficient than what you're trying to do. Alternatively, find some bit of code that's reading or writing the value you're interested in and write some injection.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on... |
|
| Back to top |
|
 |
|