Jump to content

Help with memory address reading.


 Share

Recommended Posts

Hello AutoIt community !

I just started coding in AutoIt, and i'm trying to read the value of an address, after some search, I ended up finding this UDF called NomadMemory, that apparently is the best ones out there.

Although, since i'm not good at Memory Addresses, Hex, Ascii, etc, I tried to write a simple script that would generate a GUI, with a label that would be updated with the value of a process memory address, here's what I got :

#include <NomadMemory.au3>

$pid = ProcessExists("MMer.exe")
$address = "040A2EF8"

$openmem = _MemoryOpen($pid) ;
$Value = _MemoryRead($address, $openmem)

; FORM
$Form1 = GUICreate("Form1", 144, 165, 390, 185)
$listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17)
GUISetState(@SW_SHOW)
; END OF FORM

while 1
GUICtrlDelete($listenlabel)
$listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17)
WEnd

So basically this is supposed to do the following :

Get the PID of "MMer.exe", open the memory using that PID, read an Address (040A2EF8) from that process, create a form with the value of the address written in it, and update the value every once in a while.

Although, it doesn't seem to work, do you see any errors in my code?

Thanks in advance ! :idiot:

Link to comment
Share on other sites

  • Moderators

Jeocou,

The only reference I can find to MMer.exe is to Micro DoT MMer - an E-Mail Flooder. :o

Can you explain a little more what your version does and why you want to read its memory. :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

That's not the EXE i'm using, the one i'm using is a simple game coded in C by someone I know for training purposes, it's the first exe that I fount in my PC that wouldn't have tons of memory allocations, the less data, the easier it is to search for it :P

You can rest assured i'm not having any malicious intentions

Link to comment
Share on other sites

"Im not using my mail spammer, its for a game." - you might want to have a glance at the forum rules as you are on your way to breaking many of them.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Once again, it's not a mail spammer. Look, i'll search for DEO.EXE (Random name), and let's see what we get

http://www.removespywaretips.com/exe-d/deo-exe.html

Virus.

Let's now search for UKL.EXE, random name too

http://www.novirus365.org/exeviruses/40335.html

Virus.

Any short filename can be a virus nowadays, I am right, or am I not?

Fine, now let's keep on with the original subject.

___________________________________________

So, I got this .EXE that I fount in my computer, it's a command line game, therefore it has a very poor ammount of memory allocations and is just perfect for testing AutoIt and it's memory reading possibilities. Even though I spent some time searching and testing, I can't get my code to work. So once again, and this will sadly be the last one since I have 1 more post until tomorrow : Can someone that doesn't distrust people at first sight help me out with this?

Many thanks in advance,

Jeocou.

Link to comment
Share on other sites

  • Moderators

Jeocou,

Any short filename can be a virus nowadays, I am right, or am I not?

You have a point - but I am sure you can understand why I felt it necessary to ask. ;)

Fine, now let's keep on with the original subject.

Not so fast! :D

it's a command line game

You obviously have not read the Forum Rules yet. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...