Skip to content

Commit

Permalink
Make it get the offsets from the jailbreak's offset cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pwn20wndstuff committed Feb 27, 2019
1 parent bac991a commit 7b2f81f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ int main(int argc, char* argv[]) {
(kernel_base = dyld_info.all_image_info_addr) == 0) {
return -3;
}
init_kernel(kread, kernel_base, NULL);
uint64_t trust_chain = find_trustcache();
term_kernel();
printf("Injecting to trust cache...\n");
@autoreleasepool {
NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithContentsOfFile:@"/jb/offsets.plist"];
uint64_t trust_chain = [dictionary[@"TrustChain"] unsignedLongLongValue];
printf("Injecting to trust cache...\n");
NSMutableArray *files = [NSMutableArray new];
for (int i=1; i<argc; i++) {
[files addObject:@( argv[i] )];
Expand Down

0 comments on commit 7b2f81f

Please sign in to comment.