Sign in to follow this  
Followers 0
CodeMaster Rapture

Read/Write Process Memory

15 posts in this topic

Hey all,

I was wondering if there are any UDFs that deal with reading/writting process memory. If not, does anyone have some pointers on how to go about it?

Thanx,

-CMR

Share this post


Link to post
Share on other sites



The code offered in this thread may or may not be what you're after.

Share this post


Link to post
Share on other sites

Hey all,

I was wondering if there are any UDFs that deal with reading/writting process memory. If not, does anyone have some pointers on how to go about it?

Thanx,

-CMR

<{POST_SNAPBACK}>

check scripts and scraps, i'm pretty sure i've seen some stuff like you're asking for in there.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

This is a nice start. Thank you. I'm just not sure if it is exactly what I'm looking for. What I need is a WriteMemory function that affects the value of the address, not the OpCodes (I'm not making a trainer). For example:

In the game, a player takes a loan form a bank to build stuff. As their wealth increases, they payback thier loan. This is a slow and gradual process and I wanted to create a way to subtract the amount of the loan from thier total cash. I also want to record the info from other addresses and display them (but that is easy enough I suppose).

I'll keep looking. Thanx for the links though. Looks like I'll have to write my own DLL for this specific need.

-CMR

Share this post


Link to post
Share on other sites

This is a nice start. Thank you. I'm just not sure if it is exactly what I'm looking for. What I need is a WriteMemory function that affects the value of the address, not the OpCodes (I'm not making a trainer). For example:

In the game, a player takes a loan form a bank to build stuff. As their wealth increases, they payback thier loan. This is a slow and gradual process and I wanted to create a way to subtract the amount of the loan from thier total cash. I also want to record the info from other addresses and display them (but that is easy enough I suppose).

I'll keep looking. Thanx for the links though. Looks like I'll have to write my own DLL for this specific need.

-CMR

<{POST_SNAPBACK}>

check out ArtMoney. it's a nice little program that lets you search for values and change them etc. it's very user friendly and is awesome for finding/tweaking values. if you're just doing this for yourself, you could probably write a script that runs the window without displaying it, and controls that program to control the memory of your game. that would definitely make your code alot smaller, and you could fileinstall() the necessary files with the script. i wouldn't do that for a real release you intend to share on the net or something though, just because of copyrights etc...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

check out ArtMoney.  it's a nice little program that lets you search for values and change them etc.  it's very user friendly and is awesome for finding/tweaking values.  if you're just doing this for yourself, you could probably write a script that runs the window without displaying it, and controls that program to control the memory of your game.  that would definitely make your code alot smaller, and you could fileinstall() the necessary files with the script.  i wouldn't do that for a real release you intend to share on the net or something though, just because of copyrights etc...

<{POST_SNAPBACK}>

I need a self-contained app. I did find what I was looking for though. MemRead/MemWrite UDFs.

Thanx.

Share this post


Link to post
Share on other sites

I need a self-contained app. I did find what I was looking for though. MemRead/MemWrite UDFs.

Thanx.

<{POST_SNAPBACK}>

yeah i could have sworn there was something in scripts and scraps

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

yeah i could have sworn there was something in scripts and scraps

this might help

Func MemWrite($ProcessName, $Address, $DataToWrite, $DataSize)
Local $PID, $Result
$PID = ProcessExists($ProcessName)
$Result = DllCall(@Windowsdir & "\system32\"&$dll&".dll", "long", "WriteMemLoc", "long", $PID, "long", $Address, "long", $DataToWrite, "long", $DataSize)
Return $Result[0]
EndFunc

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I need a self-contained app. I did find what I was looking for though. MemRead/MemWrite UDFs.

Thanx.

Can you post the UDF's here please? I would like to look at the source.

Edited by =sinister=

Share this post


Link to post
Share on other sites

Can you post the UDF's here please? I would like to look at the source.

Are you kidding?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

No, why?

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

This is a nice start. Thank you. I'm just not sure if it is exactly what I'm looking for. What I need is a WriteMemory function that affects the value of the address, not the OpCodes (I'm not making a trainer). For example:

In the game, a player takes a loan form a bank to build stuff. As their wealth increases, they payback thier loan. This is a slow and gradual process and I wanted to create a way to subtract the amount of the loan from thier total cash. I also want to record the info from other addresses and display them (but that is easy enough I suppose).

I'll keep looking. Thanx for the links though. Looks like I'll have to write my own DLL for this specific need.

-CMR

my udf can write/read anything it wants through the Write/ReadProcessMemory function in kernel32.dll

its weekend now so ill hope to have a simple tutorial ready + support for dword writing (instead of byte by byte).

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites

Hey, wouter. Do you have a UDF that will filter the read processes like in tsearch or artmoney?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0