unleashed-firmware/wiki/applications/USB.md

32 lines
1.8 KiB
Markdown
Raw Normal View History

2020-10-13 03:01:25 +03:00
Flipper Zero can connects to host system via USB 2.0 in several possible modes. When USB connected to host, the menu for choosing USB mode appears:
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
- Serial port (Default mode)
- Firmware Update (reboot to bootloader)
- Mass storage, mount SD card filesystem **TODO: only SD Card filesystem or not?**
- Bad USB mode (HID device emulation)
- USB NFC Reader
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
# Serial port (Default mode)
Activating when Flipper Zero operates in normal mode. Allow to communicate with PC from any application or forward commands from UART/I2C/SPI interfaces from external GPIO. When `Serial Port` mode activated, the USB port icon brings shown in status bar.
![](./../../wiki_static/ui/status-bar-usb.png)
# Firmware Update (Bootloader DFU Mode)
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
![](./../../wiki_static/ui/USB-firmware-update-mode.jpg)
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
To activate `Firmware Update` mode Flipper Zero must reboot to bootloader. Firmware mode activating only when chosen from menu or triggered from desktop application via `Serial Port` mode.
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
# Bad USB mode
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
Flipper Zero can emulate a USB slave device, allowing it to be recognized by the computer as a regular input device, such as HID keyboard just as USB Rubber Ducky. You can write your own keyboard payloads to type any key sequence, as well as fuzzing USB stack on a target device.
Allow user to run scripts from menu. User should choose script before connecting to victim PC.
1. User selects payload on filesystem
2. Press on it with central button, then payload executed, if here a USB connection. Otherwise, it got message "Awaiting connection"
3. After connection established, it shows progress of execution
4. At end of execution, it says "ok", user can start script again by pressing central button, or return to list payloads by pressing "back"
2020-08-15 09:57:12 +03:00
2020-10-13 03:01:25 +03:00
- Mass storage, mount SD card filesystem