-
Notifications
You must be signed in to change notification settings - Fork 630
Deploying Dionaea on a Raspberry Pi
by nathanmyee
For questions regarding this article, please contact [email protected].
- Raspberry Pi (obviously!)
- SD card (4GB or larger)
- HDMI cable
- Monitor with HDMI input
- Ethernet cable
- Router or switch with an Ethernet port
- USB keyboard
- USB mouse (optional)
- Micro USB power adapter (at least 700mA at 5V)
-
Insert the SD card into the card reader.
-
Format the SD card. We recommend using SD Formatter 4.0 which is compatible with a Mac or Windows computer. IMPORTANT: formatting the the SD card will remove all of the files currently on the SD card.
-
Download NOOBS LITE, which will assist with the installation of Raspian. Extract the ZIP file by double-clicking on the ZIP file.
Alternatively, run the following commands:
curl -L 'http://downloads.raspberrypi.org/NOOBS_lite_latest' > noobs_pi.zip
unzip noobs_pi.zip
- Copy the extracted files (approximately 23MB) to the SD card.
- Safely eject your SD card.
-
Plug the USB keyboard, HDMI monitor, and ethernet cable into the Raspberry Pi. (Note: the USB mouse is optional.)
-
Plug the micro USB cable into the Raspberry Pi to power it on.
-
Upon booting, you will see a list of operating systems. If you're using a mouse, check the box next to
Raspbian [RECOMMENDED]
. If you're using a keyboard, press the spacebar to selectRaspbian [RECOMMENDED]
. Click on theInstall (i)
icon or press the "i" key to install Raspbian.
- Click "Yes" or press "Enter" to confirm that all of the data will be overwritten on the SD card.
- Depending on the speed of your Internet connection and SD card, this process can take somewhere between 5 minutes to several hours, days or months.
- Click "Yes" or press "Enter" to confirm that the OS(es) installed successfully.
- Press the down arrow key once.
2 Change User Password
should be highlighted. Press "Enter". Press "Enter" again to confirm that you will enter a new password.
- Type in your new password. (Note: even though you won't see anything, your password is still being entered.) Press "Enter" once you're done typing your password.
- Retype your password. Once you're done, press "Enter."
- Press "Enter" to confirm that you've successfully changed your password.
- Press the down arrow key until
8 Advanced Options
is highlighted. Press "Enter." Press the down arrow key untilA4 SSH
is highlighted. Press "Enter."
- Press "Enter" to enable SSH access. Press "Enter" to confirm that SSH access has been enabled.
- Press the right arrow key twice. "Finish" should be highlighted. Press "Enter."
- Run
ifconfig
and press "Enter." Look at the second line, which should look something likeinet addr:192.168.15.150 Bcast: 192.168.15.255 Mask:255.255.255.0
. Take note of the IP address afterinet addr
.
- We're done with the Raspberry Pi for now. On your host machine with MHN installed, open a new terminal window and run
ssh pi@{IP address from step 1}
. In my case, I ranssh [email protected]
. You will receive a warning about the authenticity of the host. Typeyes
and press "Enter". This will only happen once since this is the first time that your host machine has SSH'ed into the Raspberry Pi.
- Type your password and press "Enter."
- Go to the MHN web interface. For example, if I followed this guide, I would type in
http://10.254.254.100
into my web browser. Click on the "Deploy" tab and select "Raspberry Pi Dionaea" from the drop down menu.
- Copy the deploy command and run it in your terminal window. Since you're SSH'ed into your Raspberry Pi, you are executing this command on the Raspberry Pi. The script should take approximately 5-10 minutes to run.
- Once the script is done executing, click on the "Sensors" tab. If you see the Raspberry Pi in the list of sensors, you've successfully deployed your Raspberry Pi as a Dionaea honeypot. Congratulations!