Results 1 to 5 of 5
  1. #1
    Renamon Toast Crunch's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    458
    My Mood
    Lurking

    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..)
    There is no right and wrong. There's only fun and boring.
    Click HERE to join the official MPGH TS3 Server


    Currently learning: Lua, C++ and BASH scripting.



     

    I made a group, Join Linux Users if your on Linux!

  2. #2
    abuckau907's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    other side of the wire
    Posts
    1,342
    Reputation
    162
    Thanks
    239
    My Mood
    Cold
    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?




     

    :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.
    Last edited by abuckau907; 10-15-2013 at 11:23 PM.
    'Some things that can be counted, don't matter. And some things that matter, can't be counted' - A.E.
    --
     

    My posts have some inaccuracies/are wrong/wrong keyword(s) used.
    They're (maybe) pretty close, and I hope they helped you, not created confusion. Take with grain of salt.

    -if you give rep, please leave a comment, else it means less.

  3. The Following User Says Thank You to abuckau907 For This Useful Post:

    Renamon Toast Crunch (10-16-2013)

  4. #3
    Renamon Toast Crunch's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    458
    My Mood
    Lurking
    Wow, thank you very much!
    There is no right and wrong. There's only fun and boring.
    Click HERE to join the official MPGH TS3 Server


    Currently learning: Lua, C++ and BASH scripting.



     

    I made a group, Join Linux Users if your on Linux!

  5. #4
    Acea's Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Home of the elks
    Posts
    346
    Reputation
    80
    Thanks
    2,216
    My Mood
    Stressed
    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.

  6. #5
    XXkillerFin1's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Finland
    Posts
    125
    Reputation
    10
    Thanks
    81
    My Mood
    Confused
    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
    Helping newbies in coding
    Skype:aksuli21

Similar Threads

  1. Assault Cube hacks
    By Ariez in forum General Hacking
    Replies: 11
    Last Post: 02-08-2012, 12:57 AM
  2. BartJrs Assault Cube Trainer
    By bartjr in forum General Game Hacking
    Replies: 31
    Last Post: 11-04-2010, 05:28 PM
  3. Assault Cube v1.0.2 hacks?
    By Iamazn in forum General Game Hacking
    Replies: 0
    Last Post: 06-12-2009, 08:41 PM
  4. Assault cube addresses
    By Blondenut1 in forum General Game Hacking
    Replies: 3
    Last Post: 04-15-2009, 06:03 PM
  5. [Request] Write/Read Memory Tutorial
    By Infection_X in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-15-2008, 06:11 PM