Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *_filename =@"System/Library/PrivateFrameworks/MobileDevice.framework/Resources/AppleMobileDeviceHelper.app/Contents/Resources/AppleMobileBackup";
- NSArray *arguments = [NSArray arrayWithObjects: @"./ambackup",
- @"--backup", @"--target", @"BE1F74EEB98E14D426665D54105DE27821A6C0FE", nil];
- NSTask *task = [[NSTask alloc] init];
- NSPipe *pipe = [NSPipe pipe];
- NSFileHandle *readHandle = [pipe fileHandleForReading];
- NSData *temp = nil;
- NSMutableData *_data = [[NSMutableData alloc] init];
- [task setLaunchPath:_filename];
- [task setArguments:arguments];
- [task setStandardOutput:pipe];
- [task launch];
- while ((temp = [readHandle availableData]) && [temp length])
- {
- [_data appendData:temp];
- }
- [task release];
- NSString *_filename = @"System/Library/PrivateFrameworks/MobileDevice.framework/Resources/AppleMobileDeviceHelper.app/Contents/Resources/AppleMobileBackup";
- NSString *_filename = @"/System/Library/PrivateFrameworks/MobileDevice.framework/Resources/AppleMobileDeviceHelper.app/Contents/Resources/AppleMobileBackup";
Add Comment
Please, Sign In to add comment