HelpWrite to memory? Assault Cube Addys.

Posts 1–5 of 5 · Page 1 of 1
Write to memory? Assault Cube Addys.
So i have my addys but now what?? New to C# (And hacking really, i was just happy that i got it to work by modifying the assemble in ollydbg!)

The addys i have and what i changed them to and what they do!
Code:
:Process name:
ac_client.exe

:Gun Ammo:
00463279 DEC DWORD PTR DS:[ESI]
Change to INC DWORD PTR DS:[ESI] (Thus you don't run out of ammo, instead of decrementing ammo it does the opposite!)

:Health:
0042CA7E (Working on this one, i dont know what MOV is)

:Grenades:
00462E08 DEC DWORD PTR DS:[EAX]
Change to INC DWORD PTR DS:[EAX]
How would i make an application in C# where i would click a button and one of my defined changes would be made? Write to memory? (Tried searching google, was confused..)
Quote Originally Posted by Renamon Toast Crunch View Post
..
Yes, the windows api WriteProcessMemory() (after you get a valid handle from OpenProcess())

The 2 instructions will be different by only one byte.

So to "change" the instruction, you just have to overwrite the correct byte into the instruction. Probably the first byte of it..

so, I didn't look up the actual bytecodes but pretend

00463279 DEC DWORD PTR DS:[ESI] = 8B 2A
00463279 INC DWORD PTR DS:[ESI] = 44 2A


So to change it from dec to inc, write the byte 0x44 to the address 00463279. Replacing the first byte. Just an example. Look up the actual byte codes.

edit: There are several public memory libraries floating around mpgh; maybe even one in c#. (I wrote 2 tuts. about it in the vb.net section. A lot of the background information is the same. Code is 99% the same also)

edit2: It's not always the front byte that is changed...here are 3 example. Spot the byte that changes?




 
MOV

:Health:
0042CA7E (Working on this one, i dont know what MOV is)
MOV is like the equal sign; used to assign/move a value.

The format is:
MOV destination, source


mov eax, 14 ;// set eax to 14
...
mov eax, ecx ;// set eax to whatever ecx is currently


^^there are rules about what the destination and source can be: a register, a memory location, or a numeric constant. Read assembly tut. to know more.
Hmm, the infamous assault cube. When you're working with this game it's almost better to use classes for modifying memory rather than using address's unless you use a pointer and calculate the offset your address's will change every game.
Quote Originally Posted by Renamon Toast Crunch View Post
So i have my addys but now what?? New to C# (And hacking really, i was just happy that i got it to work by modifying the assemble in ollydbg!)

The addys i have and what i changed them to and what they do!
Code:
:Process name:
ac_client.exe

:Gun Ammo:
00463279 DEC DWORD PTR DS:[ESI]
Change to INC DWORD PTR DS:[ESI] (Thus you don't run out of ammo, instead of decrementing ammo it does the opposite!)

:Health:
0042CA7E (Working on this one, i dont know what MOV is)

:Grenades:
00462E08 DEC DWORD PTR DS:[EAX]
Change to INC DWORD PTR DS:[EAX]
Hey, What version of game do you have? because I got these addies(from newest version of assault cube):

-----AMMO-------------
offset 0
offset 14
00508B74 offset 384
-----HEALTH----------
00508B74 offset F8
-----ARMOR-----
00508B74 offset FC
-----NAME----------
005018FC offset 0
-----Coordinates-----
Y Coordinat:
00508B74 offset 3C
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us