He who flays the hide
TANNER is a remote data analysis, and classification service, to evaluate HTTP requests and composing the response then served by SNARE events.
The documentation can be found here.
- Evaluating SNARE events.
- Serve dorks.
- Adopt and change the responses.
- You need Python3. We tested primarily with python 3.5
- This was tested with a recent Ubuntu based Linux.
- Install the Redis:
sudo apt-get install redis-server
- Start it on
localhost
with defaultport
:redis-server
- For PHP Sandbox setup, see sandbox manual
- In PHP Sandbox directory, run sandbox:
sudo python3 sandbox.py
- Install docker
- Pull the required image to use [default :
busybox:latest
]
- Get TANNER:
git clone https://github.com/mushorg/tanner.git
- Go to the TANNER source directory:
cd tanner
- Install requirements:
pip3 install -r requirements.txt
- Install TANNER:
sudo python3 setup.py install
- Run TANNER:
sudo tanner
Run sudo tannerapi
Run sudo tannerweb
You obviously want to bind to 0.0.0.0 when running in production and on a different host than SNARE (recommended).
- Change current directory to
tanner/docker
docker-compose build
docker-compose up
More information about running docker-compose
can be found here.
In order to run the tests and receive a test coverage report, we recommend running pytest
:
pip install pytest pytest-cov
sudo pytest --cov-report term-missing --cov=tanner tanner/tests/
# sudo tanner
_________ _ ___ ____________
/_ __/ | / | / / | / / ____/ __ \
/ / / /| | / |/ / |/ / __/ / /_/ /
/ / / ___ |/ /| / /| / /___/ _, _/
/_/ /_/ |_/_/ |_/_/ |_/_____/_/ |_|
Debug logs will be stored in /opt/tanner/tanner.log
Error logs will be stored in /opt/tanner/tanner.err
======== Running on http://0.0.0.0:8090 ========
(Press CTRL+C to quit)