Skip to content

Commit

Permalink
update documetation
Browse files Browse the repository at this point in the history
  • Loading branch information
joelferrier committed Sep 3, 2016
1 parent f25d592 commit cb0b7db
Show file tree
Hide file tree
Showing 8 changed files with 214 additions and 174 deletions.
133 changes: 0 additions & 133 deletions README.md

This file was deleted.

108 changes: 108 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
Margarita Shotgun
=================

Python Remote Memory Aquisition

Documentation
-------------

Read the full documentation on `read the docs <https://margaritashotgun.readthedocs.io/en/latest/>`__.

Quickstart
**********

For more information see the `user guide <https://margaritashotgun.readthedocs.io/en/latest/user_guide.html/>`__.

Installation
~~~~~~~~~~~~

``pip install git+ssh://git@github.com/ThreatResponse/margaritashotgun.git@master``

Or see `installing <https://margaritashotgun.readthedocs.io/en/latest/installing.html>`__.

Capture A Single Machine
************************

A single machine can be captured using only the command line arguments for margaritashotgun.
First specify the server and user with the ``-s`` and ``-u`` flags respectively.
Next provide a path to an ssh key with ``-k`` (or use a password with the ``-p`` flag).
Finally provide a lime kernel module with ``-m`` and specify an output file with ``-f``

::

margaritashotgun -s 172.16.20.10 -u root -k root_access.pem -m lime-3.13.0-74-generic.ko -f 172.16.20.10-mem.lime

Save Memory In S3
*****************

To save a file to s3 simply replace the ``-f`` or ``filename`` flags with ``-b`` or ``--bucket``. Ensure that you have aws credentials configured prior to executing the following command.

::

margaritashotgun -s 172.16.20.10 -u root -k root_access.pem -m lime-3.13.0-74-generic.ko -b memory_capture_bucket``

Capture Multiple Machines
*************************

Run margaritashotgun with a configuration file like ``parallel_config.yml.example``

.. code-block:: bah
aws:
bucket: memory_dump_example
hosts:
- addr: 52.36.191.XXX
port: 22
username: ec2-user
key: access.pem
module: lime-4.1.19-24.31.amzn1.x86_64.ko
- addr: 52.36.170.XXX
port: 22
username: ec2-user
key: access.pem
module: lime-4.1.19-24.31.amzn1.x86_64.ko
- addr: 52.36.210.XXX
port: 22
username: ubuntu
key: dev.pem
module: lime-3.13.0-74-generic.ko
- addr: 52.36.90.XXX
port: 22
username: ubuntu
key: dev.pem
module: lime-3.13.0-74-generic.ko
workers: 2
Here parallelism is limited to 2 workers.

Run the capture with:

::

margaritashotgun -c your_custom_config.yml.

License
-------

The MIT License (MIT)

Copyright (c) 2016 Joel Ferrier

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6 changes: 6 additions & 0 deletions docs/architecture.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

Architecture
============


An Overview of margaritashotugn's architecture Coming Soon!
6 changes: 4 additions & 2 deletions docs/development.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

===========
Development
===========

TODO
Tests
-----

The test suite is written with pytest and can be run with ``py.test --cov=margaritashotgun``
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Python Remote Memory Aquisition
installing
user_guide
reference_guide
architecture
development
about

18 changes: 12 additions & 6 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,21 @@ Currently only linux is a supported platform. Running on OSX or Windows may be

While margaritashotgun is written purely in python, some of the libraries used require additional system packages.

Fedora / REHL Derivatives
-------------------------
Fedora / REHL Distributions
---------------------------

TODO
* python-devel (2.X or 3.X)
* python-pip
* libffi-devel
* openssl-devel

Debian Derivates
----------------
Debian Distributions
--------------------

TODO
* python-dev (2.X or 3.X)
* python-pip
* libffi-dev
* libssl-dev

Install From PyPi
*****************
Expand Down
54 changes: 47 additions & 7 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

===========
Quick Start
===========

Expand All @@ -8,19 +7,60 @@ First, :doc:`Install margaritashotgun <installing>`.
Capture A Single Machine
************************

TODO
A single machine can be captured using only the command line arguments for margaritashotgun.
First specify the server and user with the ``-s`` and ``-u`` flags respectively.
Next provide a path to an ssh key with ``-k`` (or use a password with the ``-p`` flag).
Finally provide a lime kernel module with ``-m`` and specify an output file with ``-f``

Save Memory Locally
*******************
.. code-block:: bash
TODO
margaritashotgun -s 172.16.20.10 -u root -k root_access.pem -m lime-3.13.0-74-generic.ko -f 172.16.20.10-mem.lime
Save Memory In S3
*****************

TODO
To save a file to s3 simply replace the ``-f`` or ``filename`` flags with ``-b`` or ``--bucket``. Ensure that you have aws credentials configured prior to executing the following command.

.. code-block:: bash
margaritashotgun -s 172.16.20.10 -u root -k root_access.pem -m lime-3.13.0-74-generic.ko -b memory_capture_bucket
Capture Multiple Machines
*************************

TODO
Run margaritashotgun with a configuration file like ``parallel_config.yml.example``

.. code-block:: bah
aws:
bucket: memory_dump_example
hosts:
- addr: 52.36.191.XXX
port: 22
username: ec2-user
key: access.pem
module: lime-4.1.19-24.31.amzn1.x86_64.ko
- addr: 52.36.170.XXX
port: 22
username: ec2-user
key: access.pem
module: lime-4.1.19-24.31.amzn1.x86_64.ko
- addr: 52.36.210.XXX
port: 22
username: ubuntu
key: dev.pem
module: lime-3.13.0-74-generic.ko
- addr: 52.36.90.XXX
port: 22
username: ubuntu
key: dev.pem
module: lime-3.13.0-74-generic.ko
workers: 2
Here parallelism is limited to 2 workers.

Run the capture with:

.. code-block:: bash
margaritashotgun -c your_custom_config.yml.

0 comments on commit cb0b7db

Please sign in to comment.