Results 1 to 10 of 10

Thread: Reading Memory + Writing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277

    Reading Memory + Writing

    hello everybody

    I have a String say "vbforums", I want to write that String into a specific address in the memory ,say, "F85C00"

    Also, how to read a specific Address ,say, "A456CC" ?


    any help please

    thanks

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Short answer : Go with C\C++.

    I'm not sure what the point would be in doing it with VB, if you even can.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    I know that's possible in C++ but I wanna do that in VB

  4. #4
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    im not sure if this will work but there is an 'AddressOf' operator in vb
    retired member. Thanks for everything

  5. #5
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    AddressOF doesn't work outside of passing function pointers.

    There is a number of API calls to do what you want.

    Theres an API call to read or write memory of a particular process, that is what you want.

    you may have some problems with writting strings, write characters instead.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    that's ok

    what's the API call to read or write memory of a particular address ??

  7. #7
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    Can't remember :P it s a process call
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

  8. #8
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    I bet u need a fusion powered shuttle to reach my place...
    Posts
    963
    Oh, I think Windows handle memory differently.
    There's some extra works needed to be done.

    R U making a GAME HACK?
    ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
    Programming is fun, but only if you're not on a tight deadline
    So I consider all those working engineers sad people

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277
    doesn't matter what I want to do

    I just want to read and write a particular address (from & to)memory

  10. #10
    Addicted Member
    Join Date
    Apr 2000
    Location
    England
    Posts
    246
    Err Windows handles memory the same way it as always done.

    Memory address space is PER process. Each process has 4GB of memory reversed for its use (reversed, does not mean taken)

    all addresses refer to that 4GB, from 0 to 4GB :P

    if your making a game hack you need to write a dll, then hook that dll into the game process, then use the API call (sorry i forgot the name of it) to read/write the memory directly)

    you also need to do some otherstuff like lock and unlock the memory page to do it.
    Some Days, i just get this feeling that i'm helping to write dozens of Viruses...

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