A minimal setup honeypot tool that supports multiple protocols, written in Python3.
Note: The following steps pertain to installation on a Linux/Unix machine. It also requires Python 3.5+.
-
Clone the repository on your local machine
git clone https://github.com/DeveshChande/SSHHoneypot
-
Create a virtual environment.
virtualenv venv
-
Activate the virtual environment.
source venv/bin/activate
-
Create a empty folder named 'sshlogs'.
mkdir sshlogs
-
Run main.py with the appropriate option. (--password for using password authentication and --key for using public key authentication)
python main.py [--password]/[--key]
-
Set a termination timeout according to your need by modifiying the value of
(t1-t0) >
in bothPasswordServer
andPublicKeyServer
classes. -
After termination of
main.py
, runpython log-parser.py
to parse generated log file. This will create additional log files insshlogs
directory.