| View previous topic :: View next topic |
| Author |
Message |
CyClonenl Newbie cheater
Reputation: 0
Joined: 12 Mar 2005 Posts: 24
|
Posted: Mon Nov 19, 2007 2:34 pm Post subject: Trainer in C# |
|
|
Hiya,
I've made a trainer in C#, it do's some stuff with minesweeper.
When i write to an adress now, and change some optcodes i do it in CE or ollydbg first, then get the code in hex or something and write that to the proccess.
I'd like to make a method that just takes a string and writes that into the memory, so it will be converted to hex instantly.
So currently its like this:
writeprocmem(0x90,001ABC)
I just want it to be like:
writeprocmem("nop",001ABC)
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Mon Nov 19, 2007 10:09 pm Post subject: |
|
|
Unfortunately, it really isn't that easy.
CE undergoes an incredible process in order to do this for you. There are 1035 opcodes (or at least different parameter types for opcodes), that DB has listed in a certain file (assemblerunit.pas), and also in that file is the assemble function. If you know any Delphi, I suggest popping that open and just looking at how complicated it is.
~~
However, I'm in the process of creating something that will do that for you--it's probably going to take a while though, I have nowhere near the experience, nor the knowledge that DB has/had when he wrote that, and it took him quite a while.
|
|
| Back to top |
|
 |
CyClonenl Newbie cheater
Reputation: 0
Joined: 12 Mar 2005 Posts: 24
|
Posted: Tue Nov 20, 2007 7:24 am Post subject: |
|
|
Thanks, really helpfull
Didnt know it was that complicated, i'll just do it like i do now.
And what about this i found here:
| Quote: | | Address: 0x00000056, Bytes: EB 03, Op-code: jmp 0x0000005B, Formula: 0x00000056 + 2 + Bytes value (03) = Destination address. (0x0000005B in our case) |
I dont really get it though.. whats Bytes value?
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Wed Nov 21, 2007 10:25 pm Post subject: |
|
|
(Sorry, I didn't see that)
Honestly, you don't need to worry about that:
| Code: |
Formula... whatever = Destination address...
|
| Code: |
jmp DESTINATION_ADDRESS_IS_RIGHT_HERE
|
|
|
| Back to top |
|
 |
iToast How do I cheat?
Reputation: 0
Joined: 21 Nov 2007 Posts: 2
|
Posted: Wed Nov 21, 2007 10:33 pm Post subject: |
|
|
| What version of C# you using?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Nov 21, 2007 11:48 pm Post subject: |
|
|
| iToast wrote: | | What version of C# you using? |
It shouldn't matter in this case.
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu Nov 22, 2007 9:20 am Post subject: |
|
|
| Not in this case, though in some instances .Net 1.1 sucks (Generic Lists > Arrays any day of the week).
|
|
| Back to top |
|
 |
|