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.
14 lines
437 B
Bash
14 lines
437 B
Bash
#! /bin/bash
|
|
|
|
sleep 3
|
|
inactive=$(osascript -e 'tell application "System Events" to tell (first process whose frontmost is true) to return name')
|
|
|
|
while [[ ${inactive} = $(osascript -e 'tell application "System Events" to tell (first process whose frontmost is true) to return name') ]]; do
|
|
sleep 0.5
|
|
done
|
|
|
|
osascript -e "set volume output volume 100"
|
|
open -u "https://www.youtube.com/watch?v=xvFZjo5PgG0"
|
|
|
|
# Self destruct
|
|
rm /tmp/rick.sh |