Created
May 27, 2012 03:04
-
-
Save kmcallister/2799304 to your computer and use it in GitHub Desktop.
dump vdso
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from ctypes import * | |
for ln in open('/proc/self/maps'): | |
if "[vdso]" in ln: | |
start, end = [int(x,16) for x in ln.split()[0].split('-')] | |
CDLL("libc.so.6").write(1, c_void_p(start), end-start) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment