Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyrasite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pyrasite
Commits
2bfb8582
Commit
2bfb8582
authored
Jan 30, 2012
by
Luke Macken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new payload for generating call graphs
parent
666e95b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
README.rst
README.rst
+16
-0
payloads/start_callgraph.py
payloads/start_callgraph.py
+3
-0
payloads/stop_callgraph.py
payloads/stop_callgraph.py
+3
-0
No files found.
README.rst
View file @
2bfb8582
...
...
@@ -105,6 +105,22 @@ Reverse Shell
Type 'quit' to exit.
% 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
--------------------------------------------------------------
...
...
payloads/start_callgraph.py
0 → 100644
View file @
2bfb8582
# http://pycallgraph.slowchop.com/pycallgraph/wiki/documentation/
import
pycallgraph
pycallgraph
.
start_trace
()
payloads/stop_callgraph.py
0 → 100644
View file @
2bfb8582
# http://pycallgraph.slowchop.com/pycallgraph/wiki/documentation/
import
pycallgraph
pycallgraph
.
make_dot_graph
(
'callgraph.png'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment