I am 开发者_开发技巧looking for a python script that can dump ELF file (of type core-dump).
Any pointers to existing scripts ?
I suggest you use GDB to look at the core dump file. You can control GDB from Python:
Invoke and control GDB from Python
But recent versions of GDB have Python built in! You might be able to to what you want from within GDB, rather than running GDB from within Python.
http://sourceware.org/gdb/wiki/PythonGdb
P.S. You would probably be interested in the book Gray Hat Python:
http://nostarch.com/ghpython.htm
精彩评论