![]() |
|
Tutorial SSH Honeynet: Kippo, Kali and Raspberry-PI - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Hacking (https://sinister.li/Forum-Hacking) +--- Forum: Network Hacking (https://sinister.li/Forum-Network-Hacking) +--- Thread: Tutorial SSH Honeynet: Kippo, Kali and Raspberry-PI (/Thread-Tutorial-SSH-Honeynet-Kippo-Kali-and-Raspberry-PI) Pages:
1
2
|
SSH Honeynet: Kippo, Kali and Raspberry-PI - phe0nix404 - 04-27-2016 Hello folks, I'm quite new here and I came here with a motive to grasp and share knowledge with like minded people. Therefore here I'm making my first thread about how to setup SSH Honeypot. This tutorial is for educational purpose only and I'm totally not responsible what you do with this information. Original source: SSH Honeypot: Kippo, Kali, and Raspberry-PI by Javier Nieto First Kippo is a SSH Honeypot. Kippo is designed to log SSH brute force attacks and the entire shell interaction performed by an attacker when the attack is successful. The main features of this software are:
Things needed for this setup:
Step 1 Installing Kali Linux in a Raspberry-PI For this first you need to buy a Raspberry-PI which you can get it around 50$ which is quite cheap. Now, a HoneyNet should be available 24x7x365 because the longer it is available, the more events will be captured. Currently, Kali Linux is available for Raspberry-PI. I think is a good idea to install our HoneyNet on it. We will have the opportunity to use all tools hosted in this distribution at the same time our Kippo is running. You can download Kali Linux for Raspberry-PI here: Kali linux image(Choose as per you device) To install the Kali Linux version connect the SD mem to your computer. In my case I have a 8gb SD mem and I can detect where it is mounted by using the command below. Quote:sudo fdisk -l ![]() When you already know where your SD mem is mounted, execute this command to copy Kali Linux to the mem and wait for a while (the time estimated to copy it will depend on how speedy your mem is). Quote:sudo dd if=kali-linux-2.0-armel-rpi.img of=/dev/sdb bs=512k Step 2 Install Kippo We won't only install Kippo, we will also install a MySQL database to save the events and Kippo-Graph to look at these events in a Web interface. Please, follow the next steps to install Kippo. Quote:sudo apt-get install subversion python-twisted python-mysqldb apache2 1. Install MySQL
Quote:root@kali:/# apt-get install mysql-server 2. Create the database and a user named Kippo with all privileges.
Quote:root@kali:/# mysql -h localhost -u root -p 3. Download Kippo and uncompress it at /usr/local/src/.
Kippo direct download link 4. Create the tables using the user just created.
Quote:root@kali:/# cd /usr/local/src/kippo-0.8/doc/sql/ ![]() 5. Add to kippo.cfg the lines bellow.
Quote:[database_mysql] 6. Create an unprivileged user to start Kippo and give him access to the folder.
Quote:root@kali: useradd -d /home/kippo -s /bin/bash -m kippo -g sudo 7. Install the packages required for Kippo-Graph.
Quote:sudo apt-get update 8. Download Kippo-Graph
Quote:root@kali:/# wget http://bruteforce.gr/wp-content/uploads/kippo-graph-0.8.tar 9. Start Kippo
Quote:root@kali:/usr/local/src/kippo-0.8# su kippo With Kippo just installed, you need to publish the service in the Internet. By default, Kippo listens in the port 2222. You can publish it by setting a PAT, I mean, redirecting in your router the port 22 from the external IP to the port 2222 of the Kippo's internal (private) IP. Looking at the graphs
To see the graphics, just get access to http://Raspberry-Pi_IP_Address/kippo-graph/ You will see these graphics:
Here are some example images:
![]() ![]() ![]() The best feature in my opinion. In my opinion, the best Kippo feature is the capability of offering the attacker a fake filesystem and saving the commands which were executed by the intruder by just allowing him to get access to the system when the "successful" attack was produced. Here you can get several malware samples and new scripts created by hackers. You will have a great opportunity to learn new hacker trends!!! In the file "/usr/local/src/kippo-0.8/data/userdb.txt" you can set the username/password "allowed" to get access to the fake system. You could set the password "root:0:root" or whatever you want to allow the hacker get access to. Thank you very much for reading this and I'll be happy if this could be of use to any of you.
RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - insidious - 04-27-2016 This is pretty cool. If i still ran a dynamic site with a server that used PHP rather than a static HTML/CSS site, I would probably implement something like this to get back at those attackers ![]() nice job though. Thanks for sharing. RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - phe0nix404 - 04-27-2016 (04-27-2016, 05:19 PM)insidious15 Wrote: This is pretty cool. If i still ran a dynamic site with a server that used PHP rather than a static HTML/CSS site, I would probably implement something like this to get back at those attackers Totally my pleasure
RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - haccur - 04-30-2016 Very nice guide but here is my "tips" of this guide: Don't use Kippo is old and when the attacker try to login it to access to the shell is like 35/40 seconds for access to it so maybe the bruteforce script they using detect the shell as pinged out so you don't can collect anything of the attacker only failed logins use Cowrie instead here's the link Use the ultimate version of kippo-graph i don't try it with cowrie but i think is working well since cowrie is a fork of kippo Change the SSH banner to something "new" a box running debian 5.0 on 2016 is suspicious as hell so maybe the attacker skip that boxes since is kippo default banner Kali Linux is not necessary at all just use raspbian lite of other distro you like RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - phe0nix404 - 04-30-2016 (04-30-2016, 12:51 PM)haccur Wrote: Very nice guide but here is my "tips" of this guide: Thanks mate for the link and the tip. I'll definitely look into that and yeah kali is not necessary but people often use kali for pen testing so made the tutorial on that.
RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - The High Roller - 04-30-2016 He reworded this whole tutorial http://www.behindthefirewalls.com/2014/02/ssh-honeynet-kippo-kali-and-raspberry-pi.html Please give credit to the real author: Javier Nieto RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - phe0nix404 - 05-02-2016 Sorry folks I missed out the source to mansion!! Was just wanted to be helpful.. RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - Astroz - 05-06-2016 Thanks for all the help xD RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - Pirate - 05-06-2016 We need more HQ tutorials like this. Thank's for your contribution sir. RE: SSH Honeynet: Kippo, Kali and Raspberry-PI - phe0nix404 - 05-07-2016 (05-06-2016, 10:00 PM)Pirate Wrote: We need more HQ tutorials like this. My pleasure and please don't call me sir, I don't deserve to have that reputation yet..
|