Lab #2 Configure Raspberry PI for USB Rubber Ducky Configuration

Submit Report

This is a simple write-up about your experience with this lab. Place a screenshot of the web page opened from the result of the script.

Setting up the USB “Rubber Ducky”

  1. Change g_ether to g_hid in cmdline.txt in the boot partition.
  2. Add dwc2 at the end of /etc/modules file, must be booted into Raspberry Pi OS to accomplish this task.
  3. Download the RubberDucky  Download RubberDucky archive and load onto the Raspberry Pi (by default the everything will be loaded into a folder called Rubber Ducky. This has a space in it so when using the name in the command line you need the character to “escape” the space and allow Linux to use the space.
  4. Extract the contents with tar -xzf RubberDucky.tar.gz
  5. Add the following code to /etc/rc.local before the line exit 0
    sudo /home/pi/Rubber Ducky/enableHID.sh
    sudo chmod -R ugo+rwx /dev/hidg0
  6. Reboot the Raspberry Pi
  7. You can now run any Rubber Ducky script using the BashDucky.sh script in the Rubber Ducky folder (change to the Rubber Ducky folder cd Rubber/ Ducky). Some pre-made payloads are located here (Links to an external site.). There is an included Rubber Ducky script: OpenWebPage.dd in the folder that was extracted from the archive.