ben-hawks / BadOS

CircuitPython Mini Operating System for Pimoroni Badger2040 Electronic Badge
GNU General Public License v3.0
1 stars 2 forks source link

Finish USB Rubber Ducky/HID Keyboard Emulation mode #3

Open ben-hawks opened 11 months ago

ben-hawks commented 11 months ago

Finish the intended USB Rubber Ducky mode from BadOS upstream. Current intended implementation plan is as follows:

  1. User opens Ducky app
  2. List scripts in /ducky
  3. user selects a specific script
  4. write selected file to NVmem? File? Something??
  5. reboot pico
  6. boot.py checks for ducky mode flag, unsets flag, if true configures USB as a keyboard, else boots into normal mode
  7. duck_main.py sets USB Device Descriptor, manu, product, etc. to a keyboard
  8. try/except loop trying to open a USB_HID connection, waiting for user to plug in USB
  9. once USB is plugged in, have present a "Run" "Stop" and "Exit" option
  10. run script when RUN pressed (calls apps/ducky/... functions)
  11. stop when STOP pressed twice rapidly, change option to "Run" "Restart" "Exit"
  12. when "restart" pressed, start from the top of the script, "run" continues from where left off
  13. when EXIT pressed three times rapidly (while running or stopped) or once (once done or before running), reboot board
ben-hawks commented 1 month ago

@gitemanuel has a version this?