|
You last visited: Today at 19:44
Advertisement
Autoit Memory Region
Discussion on Autoit Memory Region within the AutoIt forum part of the Coders Den category.
09/11/2012, 23:06
|
#1
|
elite*gold: 0
Join Date: Feb 2012
Posts: 1,400
Received Thanks: 2,939
|
Autoit Memory Region
Hey gibt es eine Udf mit der es möglich ist, die Informationen der Memory Regions eines Prozesses auszulesen?
Bei Cheat engine gibt es ja die Funktion.
Müsste das in Autoit machen.
|
|
|
09/12/2012, 11:09
|
#2
|
elite*gold: 5
Join Date: Jun 2009
Posts: 2,262
Received Thanks: 2,596
|
schau mal hier nach:
lg
|
|
|
09/12/2012, 16:57
|
#3
|
elite*gold: 0
Join Date: Feb 2012
Posts: 1,400
Received Thanks: 2,939
|
Ist nicht das was ich brauche.
Wie man Memory ausliest und beschreibt weis ich doch, aber nicht wie ich informationen aus Memory Regionen bekomme.
Beispielsweise welches Modul in welcher Memory Region seinen Platz hat oder welche rechte die region hat. (Execute/Read/Write)
|
|
|
09/12/2012, 21:10
|
#4
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by Crack-wtf
Ist nicht das was ich brauche.
Wie man Memory ausliest und beschreibt weis ich doch, aber nicht wie ich informationen aus Memory Regionen bekomme.
Beispielsweise welches Modul in welcher Memory Region seinen Platz hat oder welche rechte die region hat. (Execute/Read/Write)
|
die  solltest du dir mal genauer anschauen.
setzen kannst du sie einfach mit den  und  funktionen.
über die  funktion kannst du dann noch die  setzen, über welche du dann genauere infos zu deinem module bekommst
|
|
|
09/12/2012, 21:37
|
#5
|
elite*gold: 0
Join Date: Feb 2012
Posts: 1,400
Received Thanks: 2,939
|
Ok hab mir jetz ne Funktion geschrieben fürs auslesen der Mapped File.
Und zum Filtern der Regionen nutz ich VirtualQuery.
Wenns euch Interessiert.
PHP Code:
#include <Winapi.au3> #include <array.au3>
$pid = ProcessExists("Engine.exe") $Base = 0x00000010 $Size = 0x0 Global $Addresses[1500][2]
For $i = 1 To 1499 If $Base > 0x7ffe0001 Then $Addresses[0][0] = $i-1 ExitLoop EndIf $Region = _ProcessMemoryVirtualQuery($pid,$Base+$Size) if IsArray($Region) Then $Base = $Region[0] $Size = "0x"&Hex($Region[3]) $Addresses[$i][0] = $Region[0] $Addresses[$i][1] = GetMappedFileName($pid,$Region[0]) EndIf Next
_ArrayDisplay($Addresses)
Func GetMappedFileName($PID, $Address) Local Const $PROCESS_QUERY_INFORMATION=0x0400 Local Const $PROCESS_VM_READ=0x0010 Local $hprocess $Psapi = DllOpen("Psapi.dll")
$hProcess=_WinAPI_OpenProcess(BitOR($PROCESS_QUERY_INFORMATION,$PROCESS_VM_READ),False,$PID) If Not $hProcess Then Return 0
$Filename = DllStructCreate("char[255]") DllCall($Psapi, "DWORD", "GetMappedFileNameA", "ptr", $hProcess, "DWORD", $Address, "ptr", DllStructGetPtr($Filename), "DWORD", 255) _WinAPI_CloseHandle($hProcess) DllClose($Psapi) Return DllStructGetData($Filename, 1) EndFunc
Func _ProcessMemoryVirtualQuery($PID,$pAddress,$iInfo=-1) $_COMMON_KERNEL32DLL = DllOpen("Kernel32.dll") Local $hProcess = _WinAPI_OpenProcess(0x400,False,$PID) If Not IsPtr($hProcess) Or Ptr($pAddress)=0 Or $iInfo>6 Then Return SetError(1,0,-1)
Local $aRet,$stMemInfo=DllStructCreate("ptr;ptr;dword;ulong_ptr;dword;dword;dword"),$iStrSz=DllStructGetSize($stMemInfo)
$aRet=DllCall($_COMMON_KERNEL32DLL,"ulong_ptr","VirtualQueryEx","handle",$hProcess,"ptr",$pAddress,"ptr",DllStructGetPtr($stMemInfo),"ulong_ptr",$iStrSz)
If $iInfo<0 Then Dim $aMemInfo[7] For $i=0 To 6 $aMemInfo[$i]=DllStructGetData($stMemInfo,$i+1) Next Return $aMemInfo EndIf Return DllStructGetData($stMemInfo,$iInfo+1) EndFunc
|
|
|
 |
Similar Threads
|
AutoIT Memory 2
04/23/2012 - AutoIt - 2 Replies
Kann mir wer die Memory 2 schicken also ihr wisst schon
# include Memory 2 das ding =)
|
[Help]Memory Read with Autoit
01/22/2011 - AutoIt - 4 Replies
Im trying to do a program that reads a memory from one aplication and send a comand depending on memory value from the aplication.
The problem is that Im not expert interpreting the memory value, and I dont know how to filter them.
Here are some printscreens from the memory value changing...
http://img80.imageshack.us/img80/5039/ce1.png
http://img593.imageshack.us/img593/2386/ce2.png
|
AutoIT Memory Functions
11/14/2009 - AutoIt - 2 Replies
Hi^^
Also, ich bin im moment nen bisschen dabei mit AutoIT rumzuspielen, da ich noch keinen wirklichwn Plan hab was ich damit anfangen will :P (zu viel Noob für Bots, bzw. Hacks)
Allerdings hatte ich jetz ma die Idee das ich für Cs nen kleinen Memory Bot erstell ;)
Der soll per Hotkey die Munition im Magazin auf dem maximalen stand halten ;)
Funzt auch alles prima^^
Nur jetz hab ich das Probelm, dass ich nur einmal Funktion ausführen kann :(
|
Memory Read in autoit
01/02/2009 - CO2 Programming - 2 Replies
Something is wrong when I use this macro. AutoIt alwais get a positive answer for every memory read, even if the answer is negative. #include <NomadMemory.au3>
$paused1 = 1
While $paused1 = 1
$pos2 = MouseGetPos()
$sleep = 350
$Mem_Answer1 = 0x0168DFBC
$Mem_Answer2 = 0x0168E0F4
$Mem_Answer3 = 0x0168E22C
$Mem_Answer4 = 0x0168E364
$Process1 = WinGetProcess("")
|
All times are GMT +1. The time now is 19:44.
|
|