diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..1ad4efc --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License + +Copyright (c) 2015 internetwache.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c94ee15 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +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``` + +#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 \ No newline at end of file