Results 1 to 13 of 13

Thread: Manipulating/Viewing another Program's Memory

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4

    Post Manipulating/Viewing another Program's Memory

    How do I do this using the API? I'm stuck...

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I don't quite understand what you are trying to do, or what you are after.

    Could you give some more details please?

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    7
    You cannot do that - end of the story

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4
    It is, some programs like game trainers do this

  5. #5
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    VisBas:

    You can get information on another App using SystemWide Hooks.
    These can ONLY be implemented with a C++ DLL.

    There are 15 different type of hooks that I know of.
    The Training programs you mention use what are called CBT hooks.

    There is a book for VB programmers that address a lot of these
    issues. As I recall the title is "SubClassing and Hooks in Visual Basic" but don't hold me to the exact title. I believe the publisher is OReilly.

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4
    A ok, can you please explain these hooks so that I can get a picture of what a must do?

  7. #7
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    You can get information on another App using SystemWide Hooks.
    That very much depends on what information you are after. You can get information about the public part of an application - the window, it's child windows, etc. by using a number of built in API calls...
    The WH_CBT hook gets called when an app. event occurs (a window is created, focussed, loses focus or destroyed) that may be of use.
    However, the question really is too vague - what application and what memory are you after?

    TIA,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  8. #8
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Anyway, you cannot hook another process with VB, with the exception of a WH_JOURNALRECORD hook, which probably does not do what you want.

  9. #9
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Can you open "\Device\PhysicalMemory" like a file? Might only exist on NT+, and on my machine security is set to Administrators and System limited access only
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  10. #10

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    4
    What i'm trying to do is to access and edit the program's variables. For example, you have 100 health in a game. I would like to be able to edit that health variable while the game is running. It's ok if it's not possible with VB, but it would help if someone explains on how to do this in C++

  11. #11
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    You cannot change a processes memory with a hook.
    Not with VB and not with C++.

    If the game is run on windows 9x or windows me, you could change the memory, but the problem is to find out on which memory location the variable is stored. I don't think it is possible.

  12. #12
    Hyperactive Member
    Join Date
    Jun 2001
    Posts
    297
    very possible to do what you want using game trainer...search for game trainers they are made for finding the memory offset, and they will automatically change them back to 100 health whenever the varaible changes from 100...

    also anyone understand how hackers use hooks in counterstrike

    i know all the cheats are based of these hooks


    you can download c++ source for the biggest hook

    at

    www.ogc-cheats.com

    i wanna understand how hooks work but i dont have c++

  13. #13
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Let me say, ur an ass for attempting to do this...

    And quite frankly, if you distribute such a program against the wrong game publisher, you might face a hefty lawsuit if your messing with online play.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width