Skip to content

Instantly share code, notes, and snippets.

@savanovich
Last active February 18, 2020 09:18
Show Gist options
  • Save savanovich/4775088e466cca739be0 to your computer and use it in GitHub Desktop.
Save savanovich/4775088e466cca739be0 to your computer and use it in GitHub Desktop.
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...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment