Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chipxsd
Created April 8, 2013 11:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chipxsd/5335962 to your computer and use it in GitHub Desktop.
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.
#!/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
@chipxsd
Copy link
Author

chipxsd commented Aug 8, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment