I am trying to use python and python ptrace to read the memory of an external process. I need to fully work on python, and I was trying to read and print process memory on Linux.
So, for example, I tried the following code, which continues to give me I / O errors:
proc_mem = open("/proc/%i/mem" % process.pid, "r") print proc_mem.read() proc_mem.close()
Basically, I just want to unload the process memory many times and look for changes over time. If this is the right way to do this, then what is my problem? OR is there a better way to do this?
rvorderm
source share