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
24814a79
Commit
24814a79
authored
Mar 21, 2012
by
Luke Macken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more documentation cleanups and reorgs
parent
b8643e1d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
32 deletions
+36
-32
docs/CLI.rst
docs/CLI.rst
+1
-25
docs/Payloads.rst
docs/Payloads.rst
+3
-5
docs/Shell.rst
docs/Shell.rst
+29
-0
docs/index.rst
docs/index.rst
+3
-2
No files found.
docs/CLI.rst
View file @
24814a79
pyrasite - A command-line interface for injecting code into
running Python processe
s
pyrasite - A command-line interface for injecting code into
a running Python proces
s
====================================================================================
::
...
...
@@ -19,28 +19,4 @@ pyrasite - A command-line interface for injecting code into running Python proce
For updates, visit https://github.com/lmacken/pyrasite
pyrasite-shell
--------------
You can easily open up a shell and execute commands in a running process using
the `pyrasite-shell`.
.. code-block:: bash
$ pyrasite-shell
Usage: pyrasite-shell <PID>
.. code-block:: bash
$ pyrasite-shell $(pgrep -f "python -v")
Pyrasite Shell 2.0beta7
Python 2.7.2 (default, Oct 27 2011, 01:40:22)
[GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
>>> print(x)
foo
>>> globals()['x'] = 'bar'
.. seealso:: :doc:`Payloads`
docs/Payloads.rst
View file @
24814a79
...
...
@@ -5,9 +5,7 @@ Reverse Python Shell
--------------------
.. deprecated:: 2.0
Use the `pyrasite-shell
<http://readthedocs.org/docs/pyrasite/en/latest/CLI.html#pyrasite-shell>`_
tool instead.
Use the `pyrasite-shell <http://readthedocs.org/docs/pyrasite/en/latest/Shell.html>`_ instead
This lets you easily introspect or alter any objects in your running process.
...
...
@@ -67,8 +65,8 @@ installed.
.. image:: http://lewk.org/img/pyrasite-memory-viewer.png
Reverse Shell
-------------
Reverse S
ubprocess S
hell
-------------
-----------
.. literalinclude:: ../pyrasite/payloads/reverse_shell.py
:language: python
...
...
docs/Shell.rst
0 → 100644
View file @
24814a79
pyrasite-shell - Give it a pid, get a shell
===========================================
You can easily drop into a shell and execute commands in a running process
using the ``pyrasite-shell``.
.. code-block:: bash
$ pyrasite-shell
Usage: pyrasite-shell <PID>
.. code-block:: bash
$ pyrasite-shell $(pgrep -f "python -v")
pyrasite shell 2.0beta7
Python 2.7.2 (default, Oct 27 2011, 01:40:22)
[GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
>>> print(x)
foo
>>> globals()['x'] = 'bar'
Source
------
.. literalinclude:: ../pyrasite/tools/shell.py
:language: python
:start-after: Copyright
docs/index.rst
View file @
24814a79
...
...
@@ -14,10 +14,11 @@ Contents
---------
.. toctree::
:maxdepth:
2
:maxdepth:
1
Installing
GUI
CLI
Shell
GUI
Payloads
API
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