Writing Memory to File

Nick Craig-Wood nick at craig-wood.com
Mon Mar 10 10:30:03 EDT 2008


Stefan Wagner <ffm.stefan at googlemail.com> wrote:
>  I'm trying to do some memory analyzing stuff, i wrote me a small .c so
>  far to dump the memory to a file for later analysis,
>  the analyzing part itself is python code.
>  I wonder if any of you has an idea how to dump the whole memory in
>  Linux/Windows from python ?
>  Using the .c for this somehow doesn't look right and comfy ;-)

The whole memory of what?

Under linux :

  If you want the whole physical memory of the system then
  you can dump /dev/mem

  You can dump the memory of an individual process using the ptrace
  interface.

Both those things will require the relevant rights and neither is
quite as easy as you might hope for!

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list