Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #AutoIt3Wrapper_Compression=4
- #AutoIt3Wrapper_UseUpx=n
- #AutoIt3Wrapper_UseX64=n
- #RequireAdmin ; wird bei windows vista/7 benötigt.
- #include <Pointer.au3>
- Global $Offset[3], $iPID, $StaticOffset, $hOpen, $iBase, $iFinal, $aValue
- $iPID = ProcessExists("NostaleX.dat")
- If $iPID = 0 Then
- MsgBox (0, "","Process nicht gefunden.")
- Exit
- EndIf
- SetPrivilege("SeDebugPrivilege", 1)
- $iBase = _MemoryModuleGetBaseAddress($iPid,"NostaleX.dat")
- $base1 = $iBase + 0x003D3500
- $base2 = _MemoryRead($base1) + 0xAC
- $base3 = _MemoryRead($base2) + 0x4C
- $value = _MemoryRead($base3)
- $hOpen = _MemoryOpen($iPID)
- msgbox(0,"",$iBase)
- $iFinal = "0x" & Hex($iBase + $StaticOffset)
- $aValue = _MemoryPointerRead($iFinal, $hOpen, $Offset)
- Msgbox(0,"","Address = " & $aValue[0] & @CRLF & "Value = " & $aValue[1] & @CRLF)
- _memoryclose($hOpen)
Add Comment
Please, Sign In to add comment