Jump to content
Sign in to follow this  

I can't read a text from memory

Recommended Posts


Hi all,

I need to read a value from this adress:

Address: 00A25260

Type: 5 Bytes Text

But i can't, i'm trying to use this code:

$pid = ProcessExists("teste.exe")

If $pid = 0 Then Exit

$pHandle = DllCall("kernel32.dll", "int", "OpenProcess", "int", 0x1F0FFF, "int", 0, "int", $pid)

If IsArray($pHandle) And $pHandle[0]> 0 Then

$pHandle = $pHandle[0]


MsgBox(16, "OpenProcess Error!", "Could not open the process for reading/writing")



$float = DllStructCreate("float")

$ret = DllCall("kernel32.dll", "int", "ReadProcessMemory", "int", $pHandle, "int", 0xA25260, "ptr", DllStructGetPtr($float), "int", 4, "int", 0)

If IsArray($ret) Then

MsgBox(64, "float", "$float data: " & DllStructGetData($float, 1))



But without sucess, the scripts return me a incorrect value , someone can help?


Share this post

Link to post
Share on other sites

I did it :)

$Process = "teste.exe"

$Pid = ProcessExists($Process)

$h_open = _MemOpen($pid)

$Read = _MemRead($h_open,0xA25260)

MsgBox(0, "Test Box", "Test: " & $Read)

Return $Read


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.