Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions applications/main/bad_usb/resources/badusb/open_CLI_linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ID 1d50:614e Flipper Devices Inc.:Keyboard
REM Author: 47LeCoste
REM Version: 1.0 (Flipper Ducky)
REM Target: Linux (Debian/Ubuntu based)

REM ⚠️ Ensure you've 'screen' installed before running this script
REM Otherwise install it manually typing:
REM sudo apt install screen -y (Debian/Ubuntu)
REM sudo pacman -S --noconfirm screen (Arch Linux)
REM sudo dnf install -y screen (Fedora)

REM To exit the screen session press: "CTRL + a", then "k", and finally "y"

DELAY 1000
CTRL ALT T
DELAY 1000

STRING pgrep -af qFlipper | awk '{print $1}' | xargs -r kill -9
DELAY 500
ENTER
DELAY 3000

STRING sudo screen "$(find /dev/serial/by-id/ -name 'usb-Flipper_Devices*' -print -quit | xargs readlink -f)"
DELAY 500
ENTER
29 changes: 29 additions & 0 deletions applications/main/bad_usb/resources/badusb/open_CLI_macOS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ID 05ac:021e Apple:Keyboards
REM Keep these 3 lines only if it's the first time you are performing a badKB attack against a specific macOS target.
REM In fact, it helps Flipper Zero bypass the macOS keyboard setup assistant. Otherwise the attack will not start.

REM Author: 47LeCoste
REM Version: 1.0 (Flipper Ducky)
REM Target: macOS

REM ⚠️ Ensure that 'screen' is installed (usually macOS does by default)

REM To exit the screen session, press: "CTRL + a", then "k", and finally "y"

DELAY 3000
F4
DELAY 1000
STRING Terminal
DELAY 500
ENTER
DELAY 1000

STRING pkill qFlipper
DELAY 1500
ENTER
DELAY 3000

STRING screen "$(find /dev/serial/by-id/ -name 'usb-Flipper_Devices*' -print -quit | xargs readlink -f)"
DELAY 500
ENTER
DELAY 500