Sep 4, 2015

Memory Dump with Python

# http://lwn.net/Articles/655992/
# https://github.com/mfleming/bits/blob/master/python/bits/__init__.py
import bits
from ctypes import *
mem = (c_char * 128).from_address(0xf1390)
print bits.dumpmem(mem)
# 00000000: 2f 68 6f 6d 65 2f 6a 6f 73 68 ... /home/josh...
view raw mem_dump.py hosted with ❤ by GitHub