haypo / python-ptrace

python-ptrace is a debugger using ptrace (Linux, BSD and Darwin system call to trace processes) written in Python. python-ptrace is an opensource project (contribute!) written in Python under GNU GPLv2 license.

Clone this repository (size: 221.4 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/haypo/python-ptrace/
commit 121: a9923f07ab7f
parent 120: 63e14d1321aa
child 122: 9fa95da5b870
update release procedure default
ha...@marge.
4 months ago

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
python-ptrace /
filename size last modified message
cptrace  
doc  
examples  
ptrace  
tests  
.hgignore 50 B 6 months ago create hgignore
.hgtags 364 B 4 months ago Added tag python-ptrace-0.6.2 for changeset 9eee9a465aca
AUTHORS 464 B 11 months ago Create follow, showfollow, resetfollow, xray commands in…
COPYING 17.6 KB 19 months ago Import tags and trunk from Fusil svn
ChangeLog 4.1 KB 4 months ago prepare 0.6.2 release
INSTALL 437 B 13 months ago INSTALL: update for python 2.5, document cptrace installatio
README 970 B 8 months ago Set the new website
README.cptrace 372 B 19 months ago Import tags and trunk from Fusil svn
TODO 1.6 KB 6 months ago udpate TODO
conv_python3.0.sh 77 B 16 months ago Use directly 2to3 -w instead of 2to3+patch
gdb.py 27.3 KB 4 months ago gdb.py: use raw string for follow help
pyflakes.sh 103 B 13 months ago Create pyflakes.sh script
python3.0.patch 3.2 KB 15 months ago Update python3.0.patch (fix line numbers)
setup.py 1.9 KB 4 months ago update release procedure
setup_cptrace.py 1.3 KB 19 months ago Import tags and trunk from Fusil svn
strace.py 9.7 KB 14 months ago Refix strace.py for --show-ip :-/
test_doc.py 1.2 KB 19 months ago Document last ptrace/*.py modules

README

python-ptrace is a Python binding of ptrace library.

The binding works on:

 * Linux version 2.6.20 on i386, x86_64, PPC (may works on Linux 2.4.x
   and 2.6.x)
 * Linux version 2.4 on PPC
 * FreeBSD version 7.0RC1 on i386 (may works on FreeBSD 5.x/6.x)
 * OpenBSD version 4.2 on i386

Features:

 * High level Python object API : !PtraceDebugger and !PtraceProcess
 * Able to control multiple processes: catch fork events on Linux
 * Read/write bytes to arbitrary address: take care of memory alignment and
   split bytes to cpu word
 * Execution step by step using ptrace_singlestep() or hardware interruption 3
 * Can use distorm (http://www.ragestorm.net/distorm/) disassembler
 * Dump registers, memory mappings, stack, etc.
 * Syscall tracer and parser (strace command)

Website: http://bitbucket.org/haypo/python-ptrace/wiki/Home


Installation
============

Read INSTALL documentation file.

Documentation
=============

Browse doc/ and examples/ directories.