|
You last visited: Today at 20:25
Advertisement
Alternative to _MemoryRead/Write for 64bit
Discussion on Alternative to _MemoryRead/Write for 64bit within the AutoIt forum part of the Coders Den category.
04/05/2012, 08:54
|
#1
|
elite*gold: 0
Join Date: Mar 2009
Posts: 13
Received Thanks: 22
|
Alternative to _MemoryRead/Write for 64bit
Is there any alternative method for memory read/write on 64bit systems??i tried nomadmemory but no value is being returned and its not 64bit safe..
here is the code that i want to be 64bit compatible
Quote:
Func _GetValue($Address)
$OpenProcess = _MemOpen(0x38, False, $PID)
$byte1 = _MemRead($OpenProcess, $Address, 1)
$Address = $Address + 1
$byte2 = _MemRead($OpenProcess, $Address, 1)
$Address = $Address + 1
$byte3 = _MemRead($OpenProcess, $Address, 1)
$Address = $Address + 1
$byte4 = _MemRead($OpenProcess, $Address, 1)
$Address = $Address + 1
$byte5 = _MemRead($OpenProcess, $Address, 1)
$hex1 = Hex($byte1)
$hex2 = Hex($byte2)
$hex3 = Hex($byte3)
$hex4 = Hex($byte4)
$hex5 = Hex($byte5)
$dec1 = Dec($hex1)
$dec2 = Dec($hex2)
$dec3 = Dec($hex3)
$dec4 = Dec($hex4)
$dec5 = Dec($hex5)
$myStr = Chr($dec1)&Chr($dec2)&Chr($dec3)&Chr($dec4)&Chr($d ec5)
_MemClose($OpenProcess)
Return $myStr
EndFunc
|
any help/suggestion is greatly appreciated..
|
|
|
04/05/2012, 16:50
|
#2
|
elite*gold: 26
Join Date: Jan 2012
Posts: 3,474
Received Thanks: 18,844
|
Yeah, _WinAPI_ReadProcessMemory() and _WinAPI_WriteProcessMemory() ;<
|
|
|
04/05/2012, 17:10
|
#3
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Quote:
Originally Posted by Applecode
Yeah, _WinAPI_ReadProcessMemory() and _WinAPI_WriteProcessMemory() ;<
|
Vergleich mal die Implementierungen von _MemoryRead und _WinAPI_ReadProcessMemory.
Dabei wird dir folgendes ganz besonders auffallen:
_WinAPI_ReadProcessMemory:
PHP Code:
Local $aResult = DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $hProcess, _
"ptr", $pBaseAddress, "ptr", $pBuffer, "ulong_ptr", $iSize, "ulong_ptr*", 0)
_MemoryRead:
PHP Code:
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
|
|
|
04/05/2012, 19:13
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 13
Received Thanks: 22
|
Quote:
Originally Posted by Applecode
Yeah, _WinAPI_ReadProcessMemory() and _WinAPI_WriteProcessMemory() ;<
|
Quote:
Originally Posted by jacky919
Vergleich mal die Implementierungen von _MemoryRead und _WinAPI_ReadProcessMemory.
Dabei wird dir folgendes ganz besonders auffallen:
_WinAPI_ReadProcessMemory:
PHP Code:
Local $aResult = DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $hProcess, _
"ptr", $pBaseAddress, "ptr", $pBuffer, "ulong_ptr", $iSize, "ulong_ptr*", 0)
_MemoryRead:
PHP Code:
DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
|
wew,that works..
thanks for the info and your time.
|
|
|
 |
Similar Threads
|
How To Write New NPC ?!
12/02/2011 - Rappelz Private Server - 2 Replies
Hello ,
im need write new npc with :
Epic 7 wings
Epic 7 pieces
Epic 7 summoning scroll''s
Epic 7 cloaks ...
How To Do IT ???
Help Please ;(
Thanks
|
_memoryread mit 64bit programmen geht nicht! - winapi - profi - frage
07/28/2011 - AutoIt - 21 Replies
hallo, ich bin ganz neu hier und habe eine kniffeliges problem.
ich versuche verzweifelt mit der _memoryread - funktion aus der nomadmemory.au3 unter 64bit zu arbeiten. und zwar so, dass ich auch auf 64bit speicherbereiche benutzen kann. - leider erhalte ich nur nullwerte zurück :( ich habe schon versucht das problem zu lösen, es leider nicht geschafft.
so wie ich das sehe ist das problem, dass wie ProcessReadMemory - winapi mit int´s "versorgt" wird was ja nut 4bytes/32bit halten kann. also...
|
[only 64bit] Logtetsch Dinar Bot v.1.0.1 [only 64bit]
03/16/2011 - WarRock Hacks, Bots, Cheats & Exploits - 28 Replies
Allen ein Frohes Weinachtsfest :)
http://www.youtube.com/watch?v=Nuj4Mgpko3A
Hallo alle zusammen!
Heute präsentiere ich euch meinen neuen Logtetsch Dinar bot v.1.0.1 der mit einem automatischem "Administrator" starter eingebaut ist!
|
How to Write [GM] or [GS] tag !!!!
11/08/2010 - Shaiya - 4 Replies
I want to write for my GM characters.... But i can't do this... :S .. WHY?
|
All times are GMT +1. The time now is 20:26.
|
|