Skip to content

Deploying Dionaea on a Raspberry Pi

Sean Maloney edited this page Oct 1, 2019 · 7 revisions

Deploying Dionaea on a Raspberry Pi using MHN

by nathanmyee

For questions regarding this article, please contact modern-honey-network@googlegroups.com.

Requirements

  • 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)

Deployment Steps

Downloading Software

  1. Insert the SD card into the card reader.

  2. 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.

screen shot 2014-07-18 at 9 51 38 am

  1. 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

screen shot 2014-07-18 at 9 52 48 am

  1. Copy the extracted files (approximately 23MB) to the SD card.

screen shot 2014-07-18 at 9 55 11 am

  1. Safely eject your SD card.

Installing Raspbian

  1. Plug the USB keyboard, HDMI monitor, and ethernet cable into the Raspberry Pi. (Note: the USB mouse is optional.)

  2. Plug the micro USB cable into the Raspberry Pi to power it on.

  3. 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 select Raspbian [RECOMMENDED]. Click on the Install (i) icon or press the "i" key to install Raspbian.

dsc_0975

dsc_0976

  1. Click "Yes" or press "Enter" to confirm that all of the data will be overwritten on the SD card.

dsc_0977

  1. 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.

dsc_0978

  1. Click "Yes" or press "Enter" to confirm that the OS(es) installed successfully.

dsc_0979

  1. 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.

dsc_0982

dsc_0983

  1. 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.

dsc_0984

  1. Retype your password. Once you're done, press "Enter."

dsc_0985

  1. Press "Enter" to confirm that you've successfully changed your password.

dsc_0986

  1. Press the down arrow key until 8 Advanced Options is highlighted. Press "Enter." Press the down arrow key until A4 SSH is highlighted. Press "Enter."

dsc_0987

dsc_0988

  1. Press "Enter" to enable SSH access. Press "Enter" to confirm that SSH access has been enabled.

dsc_0989

dsc_0990

  1. Press the right arrow key twice. "Finish" should be highlighted. Press "Enter."

dsc_0991

Installing Dionaea

  1. Run ifconfig and press "Enter." Look at the second line, which should look something like inet addr:192.168.15.150 Bcast: 192.168.15.255 Mask:255.255.255.0. Take note of the IP address after inet addr.

dsc_0992

  1. 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 ran ssh pi@192.168.15.150. You will receive a warning about the authenticity of the host. Type yes 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.

screen shot 2014-07-18 at 10 43 21 am

  1. Type your password and press "Enter."

screen shot 2014-07-18 at 10 43 35 am

  1. 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.

pi

  1. 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.

screen shot 2014-07-18 at 11 08 40 am

screen shot 2014-07-18 at 11 09 05 am

  1. 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!

screen shot 2014-07-18 at 11 39 27 am

screen shot 2014-07-18 at 11 40 00 am

Notes

  • The steps for installing Dionaea on the Raspberry Pi can be found on this blog post.
  • If you're deploying on an internal network, please follow our guide.