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”
- Change g_ether to g_hid in cmdline.txt in the boot partition.
- Add dwc2 at the end of /etc/modules file, must be booted into Raspberry Pi OS to accomplish this task.
- 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.
- Extract the contents with tar -xzf RubberDucky.tar.gz
- 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 - Reboot the Raspberry Pi
- 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.