Created
November 17, 2015 23:39
-
-
Save JburkeRSAC/397c619ebe33fc2f4c79 to your computer and use it in GitHub Desktop.
kippo honeypot ftw!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get install openssh-server lxde tmux vim python-dev openssl python-openssl python-pyasn1 python-twisted subversion authbind -y | |
apt-get update -y && apt-get upgrade -y | |
sed -i '5s/22/8925/' /etc/ssh/sshd_config | |
reload ssh | |
useradd -d /home/kippo -s /bin/bash -m kippo -g sudo | |
touch /etc/authbind/byport/22 | |
chmod 777 /etc/authbind/byport/22 | |
su kippo<<'EOF' | |
cd | |
svn checkout http://kippo.googlecode.com/svn/trunk/ ./kippo | |
cd kippo | |
mv kippo.cfg.dist kippo.cfg | |
sed -i '15s/2222/22/' /home/kippo/kippo/kippo.cfg | |
sed -i "s/twistd.*/authbind --deep twistd -y kippo.tac -l log\/kippo.log --pidfile kippo.pid/g" start.sh | |
./start.sh | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment