/BadPico

Raspberry Pi Pico BadUSB. Working with ducky script.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

BadPico 👹

Ducky script emulator running on Raspberry Pi Pico. Written in Circuit Python 🐍

GPLv3 License CircuitPython

Requirements

CircuitPython
Adafruit_CircuitPython_HID

Setup

  1. Install CicuitPython like so

  2. Install the Adafruit_CircuitPython_HID libraries.(You can use minipip or install by IDE like Thonny)

  3. clone this repository and upload the code

  • on Windows (ampy)
$ pip install adafruit-ampy 
$ git clone https://github.com/EvgeniGenchev/BadPico
$ cd BadPico 
$ rename main.py code.py
$ ampy --port COM<device_number> put code.py
  • on Linux (ampy)
$ sudo pip3 install adafruit-ampy 
$ git clone https://github.com/EvgeniGenchev/BadPico
$ cd BadPico 
$ mv main.py code.py
$ sudo ampy --port /dev/<device_name> put code.py

Usage

Create a file script.txt with your ducky script on it and upload it to the RaspberryPi Pico

# Linux
$ sudo ampy --port /dev/<device_name> put script.txt
# Windows
$ ampy --port COM<device_number> put script.txt

Supported commands

  • DEFAULT_DELAY \ DEFAULTDELAY
  • DELAY
  • STRING
  • CAPS_LOCK \ CAPSLOCK
  • BREAK \ PAUSE
  • F1, F2 ..., F12
  • DELETE \ DEL
  • END
  • HOME
  • NUMLOCK
  • PAGEUP, PAGEDOWN, PRINTSCREEN
  • SCROLLOCK
  • SPACE \ SPC
  • TAB
  • GUI \ WINDOWS
  • ALT \ OPTION
  • INSERT \ INS
  • ESCAPR \ ESC
  • CTRL \ CONTROL
  • SHIFT
  • MENU \ APP
  • ENTER

What to expect

  • Support for loops