Skip to content

Instantly share code, notes, and snippets.

@thedanielhanke
Created July 27, 2012 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thedanielhanke/3188217 to your computer and use it in GitHub Desktop.
Save thedanielhanke/3188217 to your computer and use it in GitHub Desktop.
spaming via iMessage
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