Commit 24814a79 authored by Luke Macken's avatar Luke Macken

Some more documentation cleanups and reorgs

parent b8643e1d
pyrasite - A command-line interface for injecting code into running Python processes pyrasite - A command-line interface for injecting code into a running Python process
==================================================================================== ====================================================================================
:: ::
...@@ -19,28 +19,4 @@ pyrasite - A command-line interface for injecting code into running Python proce ...@@ -19,28 +19,4 @@ pyrasite - A command-line interface for injecting code into running Python proce
For updates, visit https://github.com/lmacken/pyrasite 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` .. seealso:: :doc:`Payloads`
...@@ -5,9 +5,7 @@ Reverse Python Shell ...@@ -5,9 +5,7 @@ Reverse Python Shell
-------------------- --------------------
.. deprecated:: 2.0 .. deprecated:: 2.0
Use the `pyrasite-shell Use the `pyrasite-shell <http://readthedocs.org/docs/pyrasite/en/latest/Shell.html>`_ instead
<http://readthedocs.org/docs/pyrasite/en/latest/CLI.html#pyrasite-shell>`_
tool instead.
This lets you easily introspect or alter any objects in your running process. This lets you easily introspect or alter any objects in your running process.
...@@ -67,8 +65,8 @@ installed. ...@@ -67,8 +65,8 @@ installed.
.. image:: http://lewk.org/img/pyrasite-memory-viewer.png .. image:: http://lewk.org/img/pyrasite-memory-viewer.png
Reverse Shell Reverse Subprocess Shell
------------- ------------------------
.. literalinclude:: ../pyrasite/payloads/reverse_shell.py .. literalinclude:: ../pyrasite/payloads/reverse_shell.py
:language: python :language: python
......
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
...@@ -14,10 +14,11 @@ Contents ...@@ -14,10 +14,11 @@ Contents
--------- ---------
.. toctree:: .. toctree::
:maxdepth: 2 :maxdepth: 1
Installing Installing
GUI
CLI CLI
Shell
GUI
Payloads Payloads
API API
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