The Raspberry Pi Pico W is a microcontroller board based on the RP2040 chip, with built-in WiFi support. It's lightweight, affordable, and perfect for DIY projects and automation.
A Rubber Ducky is a USB device that acts like a keyboard to execute pre-written scripts (Ducky Scripts) on a target device, automating tasks or running payloads.
Follow these 5 simple steps to turn your Raspberry Pi Pico W into a Rubber Ducky:
- Connect the Raspberry Pi Pico W to your PC in setup mode:
- Hold the BOOTSEL button while plugging it into the PC.
- Open the
01 NUKE IT
folder. - Copy and paste the
flash_nuke.uf2
file onto the Pico W.- This will reset the board automatically.
- Open the
Step 1
folder. - Copy and paste the
adafruit-circuitpython-raspberry_pi_pico_w-en_GB-9.2.1.uf2
file onto the Pico W.- This installs CircuitPython.
- After installation, the device name will change from RPI-RP2 to CIRCUITPY.
- Open the
Step 2/Lib folder paste
folder. - Copy the following files:
adafruit_hid
adafruit_wsgi
asyncio
adafruit_debouncer.mpy
adafruit_ticks.mpy
- Paste these files into the
lib
folder on the CIRCUITPY drive.
- Open the
Step 3/Root folder paste
folder. - Copy the following files:
boot.py
code.py
duckyinpython.py
secrets.py
webapp.py
wsgiserver.py
- Paste these files into the root folder of the CIRCUITPY drive.
- Note: Do not modify any other files in the root folder.
- Open the
Step 4/Add payload.dd file
folder. - Copy your
payload.dd
file to the root folder of the CIRCUITPY drive.- Payload.dd: This file contains the Ducky Script that will execute on the target device.
- You can create your own Ducky Script by referring to the Hak5 Documentation.
- Alternatively, use example payloads from the
Step 5 (Example Payloads)
folder.
- Plug the Raspberry Pi Pico W into the target device.
- The Rubber Ducky script will execute automatically.
This project is for educational purposes only. Use responsibly and ensure you have permission to test devices.
Note: Some of the files in this repository are not owned by me and belong to their respective owners.