- edit the
Makefile - build libopencm3
make -C libopencm3 # (Only needed once) - build the project
make
- build
- flash the firwmare
- hold the builtin button while ressetting to enter programming mode
- flash the script
dd if=script.txt of=/dev/sdx bs=4k conv=sync
- press the built-in button to test the attack
- if good, then press the button for ~2 seconds, to burn it into flash, (led should blink twice)
- next reset, the script will run automaticaly (unless prevented by entering programming mode)
This project was built using the stm32f401rc based black pill board, featuring a builtin usb connector (with pa9, aka vsense not connected to it) and an hse crystal of 25MHz
- "USB in a NutShell"
- "libopencm3 examples"
- "Ben Eater USB Videos"
- "Usb.org"
- "stm32_HID_keyboard repo"
- adafruit duckyscript parser