Recent

Author Topic: Write in Memory address  (Read 10574 times)

The_Genaro

  • Newbie
  • Posts: 4
Write in Memory address
« on: February 25, 2010, 01:04:36 am »
Hi everybody!!!

  how can I write in especific memory addres???
exeample:

I need write '59'  in 0x23456D...

i try whit "fillmemory()" from windwos api, but can be whit pascal function??   

any idea??

thax!!!

 

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: Write in Memory address
« Reply #1 on: February 25, 2010, 04:56:54 am »
No you can not access the memory directly like that.
Why you need it?

MuteClown

  • New Member
  • *
  • Posts: 33
Re: Write in Memory address
« Reply #2 on: February 25, 2010, 08:13:16 am »
No you can not access the memory directly like that.
Why you need it?

He's probably trying to make a game trainer, i know you can do things like that in C++ i also thought you could do it in Pascal?

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: Write in Memory address
« Reply #3 on: February 25, 2010, 09:12:06 am »
In modern OS it's not a good idea to access memory directly.

Anyway I didn't test it but may be this works.

Code: [Select]
VAR
  MyPointer: ^BYTE;
BEGIN
  MyPointer := POINTER ($23456D...);
  MyPointer^:= 59;
END;

He's probably trying to make a game trainer...

Are they still working that way? I thought they modify data files nowadays.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Zaher

  • Hero Member
  • *****
  • Posts: 683
    • parmaja.org
Re: Write in Memory address
« Reply #4 on: February 25, 2010, 12:55:13 pm »
That code make Access Violation in protected systems.

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Write in Memory address
« Reply #5 on: February 25, 2010, 08:18:29 pm »
I've never done it myself but I saw such code in Delphi.
IMHO it still should be possible on modern systems. After all, a lot o game hacks operate on accessing memory (yes memory, not file).

For example StarCraft hacks. I saw hacks to this game made in Delphi and Visual Basic I think it could be possible in Free Pascal too. Probably by using Windows API. Don't know hot it works under Linux. But it is certainly possible under Windows.

MuteClown

  • New Member
  • *
  • Posts: 33
Re: Write in Memory address
« Reply #6 on: February 25, 2010, 10:55:44 pm »
Are they still working that way? I thought they modify data files nowadays.

trainers just modify the memory, while most other hacks will modify data files.
Trainers are patched fairly easily and often, other hacks will inject .dll's into the game and gets to call functions etc.
I don't know how to make one, just got a general idea how they work.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: Write in Memory address
« Reply #7 on: February 26, 2010, 09:57:32 am »
Thanks for the explanation, MuteClown.  :)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018