Skip to content

Instantly share code, notes, and snippets.

@mnem
Created January 7, 2012 18:22
Show Gist options
  • Save mnem/1575555 to your computer and use it in GitHub Desktop.
Save mnem/1575555 to your computer and use it in GitHub Desktop.
Spammer takes over friends account, utilise scripting for minor lulz
# One `brew install watch` later...
watch -n 5 ./pester.sh
#!/bin/bash
PESTER_STRING=`curl -s 'http://baconipsum.com/api/?type=meat-and-filler&paras=1' | sed -e 's/\[//' -e 's/\]//' -e 's/"//g'`
echo Pestering with: \'$PESTER_STRING\'
osascript test.applescript "$PESTER_STRING"
on run argv
tell application "Adium"
-- If I have to mention these are fake account details, you fail.
tell account "foo@hotmale.com" to set theChat to make new chat with contacts {contact "bar@hotmale"} with new chat window
send theChat message item 1 of argv
close theChat
end tell
end run
@mnem
Copy link
Author

mnem commented Jan 7, 2012

  1. Fill in details in say_something.applescript and make pester.sh executable
  2. Install watch: brew install watch
  3. watch -n 5 ./pester.sh
  4. ...
  5. Profit!

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