-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.1, MUCH cleaner code and folder choose is back. This one should be …
…really stable
- Loading branch information
Showing
7 changed files
with
320 additions
and
1,054 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
TrollLock/TrollLock.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,25 +37,72 @@ - (IBAction)go:(id)sender { | |
[alertController addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) { | ||
textField.placeholder = @"URL to .zip"; | ||
}]; | ||
UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) { | ||
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
struct utsname systemInfo; | ||
uname(&systemInfo); | ||
NSString* code = [NSString stringWithCString:systemInfo.machine | ||
encoding:NSUTF8StringEncoding]; | ||
overwriteLock(code, true, [[alertController textFields][0] text]); | ||
overwriteLock(true, [[alertController textFields][0] text], @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
[alertController addAction:confirmAction]; | ||
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(true, [[alertController textFields][0] text], @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(true, [[alertController textFields][0] text], @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *fourthAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(true, [[alertController textFields][0] text], @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *fifthAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(true, [[alertController textFields][0] text], @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
[alertController addAction:firstAction]; | ||
[alertController addAction:secondAction]; | ||
[alertController addAction:thirdAction]; | ||
[alertController addAction:fourthAction]; | ||
[alertController addAction:fifthAction]; | ||
[self presentViewController:alertController animated:YES completion:nil]; | ||
} else { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
struct utsname systemInfo; | ||
uname(&systemInfo); | ||
NSString* code = [NSString stringWithCString:systemInfo.machine | ||
encoding:NSUTF8StringEncoding]; | ||
overwriteLock(code, false, @""); | ||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Select a folder" | ||
message:@"Each one is different for all devices. Try all of them and if you don't succeed, join my Discord server for support." | ||
preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(false, @"", @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(false, @"", @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(false, @"", @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *fourthAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(false, @"", @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
UIAlertAction *fifthAction = [UIAlertAction actionWithTitle:@"[email protected]" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
self->_Active.hidden = false; | ||
self->_Warning.hidden = false; | ||
overwriteLock(false, @"", @"/System/Library/PrivateFrameworks/SpringBoardUIServices.framework/[email protected]/main.caml"); | ||
}]; | ||
[alertController addAction:firstAction]; | ||
[alertController addAction:secondAction]; | ||
[alertController addAction:thirdAction]; | ||
[alertController addAction:fourthAction]; | ||
[alertController addAction:fifthAction]; | ||
[self presentViewController:alertController animated:YES completion:nil]; | ||
} | ||
}]; | ||
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"Respring" | ||
|
@@ -70,9 +117,7 @@ - (IBAction)go:(id)sender { | |
} | ||
}]; | ||
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"Cancel" | ||
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) { | ||
}]; | ||
|
||
style:UIAlertActionStyleCancel handler:nil]; | ||
[alert addAction:firstAction]; | ||
[alert addAction:thirdAction]; | ||
|
||
|
@@ -96,19 +141,18 @@ - (IBAction)info:(id)sender { | |
message:@"Made with ♡ by Nathan & haxi0. Thanks to: zhuowei, MR X, k.y., Finny, bonnie, rxfe_, PrimePlatypus, Nightinq and apricot." | ||
preferredStyle:UIAlertControllerStyleAlert]; | ||
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"Cancel" | ||
style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) { | ||
}]; | ||
style:UIAlertActionStyleCancel handler:nil]; | ||
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"Visit the Discord Server" | ||
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { | ||
[application openURL:URL options:@{} completionHandler:^(BOOL success) {}]; | ||
[application openURL:URL options:@{} completionHandler:nil]; | ||
}]; | ||
UIAlertAction *thirdAction = [UIAlertAction actionWithTitle:@"ZipArchive Project" | ||
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { | ||
[application openURL:URL2 options:@{} completionHandler:^(BOOL success) {}]; | ||
[application openURL:URL2 options:@{} completionHandler:nil]; | ||
}]; | ||
UIAlertAction *fourthAction = [UIAlertAction actionWithTitle:@"MacDirtyCow Exploit" | ||
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { | ||
[application openURL:URL3 options:@{} completionHandler:^(BOOL success) {}]; | ||
[application openURL:URL3 options:@{} completionHandler:nil]; | ||
}]; | ||
|
||
[alert addAction:firstAction]; | ||
|
@@ -121,5 +165,4 @@ - (IBAction)info:(id)sender { | |
|
||
|
||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.