Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/internetwache/ssh-honeypot
Simple SSH Honeypot in Python
https://github.com/internetwache/ssh-honeypot
Last synced: 2 months ago
JSON representation
Simple SSH Honeypot in Python
- Host: GitHub
- URL: https://github.com/internetwache/ssh-honeypot
- Owner: internetwache
- License: mit
- Created: 2015-01-04T11:27:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T09:15:56.000Z (over 1 year ago)
- Last Synced: 2024-08-04T23:09:59.756Z (6 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 65
- Watchers: 7
- Forks: 33
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-honeypot - **38**星
README
SSH-Honeypot
==============This tool is a simple SSH server in Python which logs all username/password combinations into a logfile.
#Requirements
* ssh-keygen
* python (2.7 or 3.0)
* python-setuptools
* (iptables)#Installation
* You need to install the ```paramiko``` module. (e.g. ```sudo easy_install paramiko```)
* Clone the repository. ```git clone https://github.com/internetwache/SSH-Honeypot.git``` and switch into the directory ```cd SSH-Honeypot```
* Generate the keypair: ```ssh-keygen -t rsa -f server.key``` and rename the server.key.pub to server.pub (```mv server.key.pub server.pub```)#Configuration
* To change the ssh port, edit ```SSH_PORT = 2222```
* To change the logfile name, edit ```LOGFILE = 'logins.txt'```You should use iptables to redirect the SSH traffic from port 22 to 2222 instead of running the script with root privileges.
```/sbin/iptables -A PREROUTING -t nat -p tcp --dport 22 -j REDIRECT --to-port 2222```
#License
This piece of software is lincensed under MIT. See LICENSE.md for more information