Thread: Reading and editing another processes memory

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    54

    Reading and editing another processes memory

    How would I go about reading and editing another processes memory? In some places I have seen that you need the process ID or something like that, how would I get that?

    I already have the memory offsets and such that I need.
    Last edited by Doodle77; 02-12-2006 at 02:38 PM.

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Why would you want to?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    ah, cheating in a game. Always a favourite, writing trainers and other things to make you invulnerable (especially in multiplayer) and hoping the game servers won't detect it.

  4. #4
    Registered User
    Join Date
    Feb 2006
    Posts
    54

    No.

    Theres plenty of game cheating programs out there for Starcraft. I am working on a custom .dat file loader that loads directly into the memory so that you can play mods online without having to download them seperately.
    There is a topic on another forum about what I want to do this is the topic

    .dat files have nothing to do with game cheating because they cause desyncs when you edit them but others dont.
    Last edited by Doodle77; 02-12-2006 at 04:53 PM.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    So effectively we're supposed to help you develop something that would make StarCraft crash simply by attempting to join a special game.

    Yeah, right. Even IF you could make SC crash with a custom map (SC is among the most stable and well-programmed games I know, and I doubt you could make it crash through untrusted 3rd-party input like maps) what would it accomplish?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Feb 2006
    Posts
    54
    Nononono, desyncs are completely different from crashes. When you desync, everyone else just sees you drop (and you see everyone else drop). What I am making is a program for loading a data file so that you can use a mod without having to download it seperately, but this requires:
    1. Get the map name out of Starcraft.
    2. Load the units.dat file from the map into the memory.
    Last edited by Doodle77; 02-12-2006 at 05:03 PM.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    From the thread you linked:
    The map editor would put something into the map that will cause normel starcraft to crash
    I'm loathe to support any idea that has such a statement in its first post.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Registered User
    Join Date
    Feb 2006
    Posts
    54
    You dont actually need to do that because the game will naturally desync the non-modders from the modders.

    BTW, a starcraft map is actually an MPQ, which is a type of archive, so you can fit anything into it. DTBK was trying to edit the map MPQ rather than the internal file staredit/scenario.chk

    Crashing starcraft is cake. All you need to do is place an "Independent Starport" (a hidden unit) which has a bad graphics refrence, causing the game to try to display a nonexistent file. (boom!) Its a common anti-hacking method, place them in a place where you cant see them normally, but someone that has a maphack can.
    Last edited by Doodle77; 02-12-2006 at 05:54 PM.

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    The whole tone of this thread and the intent of the OP is just wrong.
    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. reading, editing and creating a new file
    By s_jsstevens in forum C Programming
    Replies: 3
    Last Post: 04-27-2007, 02:40 PM
  2. reading float from file
    By arjunajay in forum C++ Programming
    Replies: 10
    Last Post: 07-30-2005, 11:01 PM