Created
July 27, 2012 14:09
-
-
Save thedanielhanke/3188217 to your computer and use it in GitHub Desktop.
spaming via iMessage
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
MessagesApplication *imessage = [SBApplication applicationWithURL:[NSURL URLWithString:@"file:///Applications/Messages.app"]]; | |
MessagesTextChat *target = nil; | |
NSString *targetid = @"iMessage;-;"; //append phone or email .. | |
for( MessagesTextChat *chat in [[imessage chats] get]) | |
{ | |
if([[chat.id description] isEqualToString:targetid]) | |
{ | |
target = chat; | |
} | |
} | |
for(int i =0; i< 500; i++) | |
[imessage send:@"spam!" to:target]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment