Created
April 8, 2013 11:04
-
-
Save chipxsd/5335962 to your computer and use it in GitHub Desktop.
Have you ever found an unlocked MacBook in your office? Download this on your victim's MacBook, chmod +x it and run it in a screen session.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [ 1 ] | |
do | |
afplay /System/Library/Sounds/Funk.aiff | |
seconds=$(((RANDOM%120+1))) | |
echo 'alert and wait for '$seconds' seconds' | |
sleep $seconds | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or better yet, do this:
screen -d -m sh -c "while :; do afplay /System/Library/Sounds/Funk.aiff && seconds=$(((RANDOM%120+1))) && echo 'alert and wait for '$seconds' seconds' && sleep $seconds; done;"
Keywords: trolling, spontaneous, sound, alerts, troll, prank, osx, mac, terminal