Commit 2bfb8582 authored by Luke Macken's avatar Luke Macken

Add a new payload for generating call graphs

parent 666e95b2
...@@ -105,6 +105,22 @@ Reverse Shell ...@@ -105,6 +105,22 @@ Reverse Shell
Type 'quit' to exit. Type 'quit' to exit.
% ls % ls
Call Graph
----------
Pyrasite comes with a payload that generates an image of your processes call
graph using `pycallgraph <http://pycallgraph.slowchop.com>`_.
::
$ pyrasite <PID> payloads/start_callgraph.py
$ pyrasite <PID> payloads/stop_callgraph.py
The callgraph is then generated using `graphviz <http://www.graphviz.org>`_ and
saved to `callgraph.png`. You can see an example callgraph `here <http://pycallgraph.slowchop.com/pycallgraph/wiki/RegExpExample>`_.
Dumping modules, thread stacks, and forcing garbage collection Dumping modules, thread stacks, and forcing garbage collection
-------------------------------------------------------------- --------------------------------------------------------------
......
# http://pycallgraph.slowchop.com/pycallgraph/wiki/documentation/
import pycallgraph
pycallgraph.start_trace()
# http://pycallgraph.slowchop.com/pycallgraph/wiki/documentation/
import pycallgraph
pycallgraph.make_dot_graph('callgraph.png')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment