Skip to content

Commit

Permalink
Updated docs and Dockerfile for new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Plazmaz committed Jan 19, 2020
1 parent 45418ea commit 3cca69e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ WORKDIR /usr/src/pastehunter
COPY . ./
RUN pip3 install -r requirements.txt

CMD ["/usr/src/wait-for-it/wait-for-it.sh","-t", "0","172.16.10.10:9200","--", "python3", "pastehunter.py"]
CMD ["/usr/src/wait-for-it/wait-for-it.sh","-t", "0","172.16.10.10:9200","--", "python3", "pastehunter-cli"]

4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = 'Kevin Breen'

# The short X.Y version
version = '1.0'
version = '1.2.1'
# The full version, including alpha/beta/rc tags
release = '1.0'
release = '1.2.1'


# -- General configuration ---------------------------------------------------
Expand Down
14 changes: 13 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
Installation
============

There are a few ways to install
There are a few ways to install PasteHunter. Pip is the recommended route for stable releases.


Pip Installation
------------------
Pip installation is supported for versions after 1.2.1. This can easily be done using:

``pip install pastehunter``

You will then need to configure pastehunter. To do this, use:.::

mkdir -p ~/.config
wget https://raw.githubusercontent.com/kevthehermit/PasteHunter/master/settings.json.sample -O ~/.config/pastehunter.json

Then modify ~/.config/pastehunter.json to match your desired settings and run the project using ``pasthunter-cli``

Local Installation
------------------
Expand Down
30 changes: 30 additions & 0 deletions docs/migrating.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Migrating from a pre-1.2.1 config
==================================
1.2.1 introduces some breaking configuration changes due to various project structure changes. Most notably,
all module names will need to be prefixed with "pastehunter.". So for example, this part of the configuration.::

"gists": {
"enabled": true,
"module": "inputs.gists",
"api_token": "",

Will need to change to be .::

"gists": {
"enabled": true,
"module": "pastehunter.inputs.gists",
"api_token": "",


This applies to inputs, outputs, sandboxes, and post modules. There is one more change required to migrate your configuration.
You will need to change your yara configuration to look something like this:.::

"yara": {
"default_rules": true,
"custom_rules": "none",
"exclude_rules": [],
"blacklist": true,
"test_rules": false
}

If you have created any custom rules, change "none" to reflect the path to your custom rules. Finally, move your ``settings.json`` file to ``~/.config/pastehunter.json``.

0 comments on commit 3cca69e

Please sign in to comment.