Awesome
TANNER
<b><i>He who flays the hide</b></i>
About
TANNER is a remote data analysis and classification service to evaluate HTTP requests and composing the response then served by SNARE. TANNER uses multiple application vulnerability type emulation techniques when providing responses for SNARE. In addition, TANNER provides Dorks for SNARE powering its luring capabilities.
Documentation
The documentation can be found here.
Basic Concept
- Evaluating SNARE events.
- Serve dorks.
- Emulate vulnerabilities and provide responses.
Getting Started
- You need Python3.7 and above for installing tanner.
- This was tested with a recent Ubuntu-based Linux.
Steps to install TANNER
Step 1: Setup Redis
- Install the Redis:
sudo apt-get install redis-server
- Run
redis-server
(to start it onlocalhost
with defaultport
)
Step 2: Setup PHP Sandbox
- For PHP Sandbox setup, see sandbox manual
- In PHP Sandbox directory, run sandbox:
sudo python3 sandbox.py
Step 3: Setup Docker
- Run
sudo apt-get install docker-ce docker-ce-cli containerd.io
For more info please see the detailed installation guide here.
Step 4: Setup and run TANNER
- Get TANNER:
git clone https://github.com/mushorg/tanner.git
- Go to the TANNER source directory:
cd tanner
- Install requirements:
sudo pip3 install -r requirements.txt
- Install TANNER:
sudo python3 setup.py install
- Run TANNER:
sudo tanner
- (Optional) For runnning TANNER Api
sudo tannerapi
- (Optional) For runnning TANNER Web
sudo tannerweb
Note:- Make sure you have python3-dev
incase you are facing problem with installing some requirments.
sudo apt-get install python3-dev
(Recommended) You should bind to 0.0.0.0 when running in <i>production</i> and on a different host than SNARE.
Install and run TANNER using docker container
In case you want to run the TANNER service using docker or facing any problem in setting up TANNER on your machine, you can follow these steps.
Docker build instructions
- Change the current directory to
tanner/docker
sudo docker-compose build
sudo docker-compose up
More information about running docker-compose
can be found here.
Testing
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/
Sample Output
# 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)