Created
January 7, 2012 18:22
-
-
Save mnem/1575555 to your computer and use it in GitHub Desktop.
Spammer takes over friends account, utilise scripting for minor lulz
This file contains 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
# One `brew install watch` later... | |
watch -n 5 ./pester.sh |
This file contains 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 | |
PESTER_STRING=`curl -s 'http://baconipsum.com/api/?type=meat-and-filler¶s=1' | sed -e 's/\[//' -e 's/\]//' -e 's/"//g'` | |
echo Pestering with: \'$PESTER_STRING\' | |
osascript test.applescript "$PESTER_STRING" |
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
say_something.applescript
and makepester.sh
executablebrew install watch
watch -n 5 ./pester.sh