diff --git a/applications/main/bad_usb/resources/badusb/open_CLI_linux.txt b/applications/main/bad_usb/resources/badusb/open_CLI_linux.txt new file mode 100644 index 00000000000..1e585f68c10 --- /dev/null +++ b/applications/main/bad_usb/resources/badusb/open_CLI_linux.txt @@ -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 diff --git a/applications/main/bad_usb/resources/badusb/open_CLI_macOS.txt b/applications/main/bad_usb/resources/badusb/open_CLI_macOS.txt new file mode 100644 index 00000000000..d2a294bbc70 --- /dev/null +++ b/applications/main/bad_usb/resources/badusb/open_CLI_macOS.txt @@ -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