I'm new to this whole memory thing... I understand memory concepts pretty well, I've taken some comp sci classes and in the IT field.
I'm running in to trouble trying to read memory from classic client under linux wine. Search terms yield not much around this.
Just trying to get my feet wet and read basic info, but whenever I do, the client stops responding. What could be the cause of this?
I've disabled apparmor thinking that might be it, but to no avail.
Any tips?
code for those interested..
```
#!/usr/bin/env python
from ptrace.debugger.debugger import PtraceDebugger
from ptrace.debugger.process import PtraceProcess
from struct import unpack
from os import popen
# read Word, or ByteArray if size is provided
def read(address, size=None):
global tracer
if not size:
return tracer.readWord(address)
return tracer.readBytes(address, size)
# read unsigned int
def readInt4(address):
return unpack("I", read(address, 4))[0]
# get pid and instantiate ptrace wrapper
#pid = int(popen("pidof Wow.exe", "r").read().strip())
pid = 22688
tracer = PtraceProcess(PtraceDebugger(), pid, False)
print(read(0x00C79D18, 12))
print("read_x_offset --- " + str(read(0x853D40 + 0x7D0,4)))
print(read(0x00468580,12))
print(read(0x853D40,12))
```