Skip to content

Commit

Permalink
last min fix
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Nov 12, 2022
1 parent 7adea7e commit 7b1955a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions noncehelper/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,15 @@ int main(int argc, char *argv[], char *envp[]) {
NSLog(@"exploiting using weightBufs");

// Find some precompiled model and get the cpusubtype of it because we need it in the exploit
// Accessing this path is only possible thanks to several entitlements
NSURL* anedCrap = [NSURL fileURLWithPath:@"/var/mobile/Library/Caches/com.apple.aned"];
NSURL* anedCrap = [NSURL fileURLWithPath:@"/System/Library/ImagingNetworks"];
NSDirectoryEnumerator<NSURL*>* enumerator = [[NSFileManager defaultManager] enumeratorAtURL:anedCrap
includingPropertiesForKeys:nil
options:0
errorHandler:nil];
NSURL* file;
while(file = [enumerator nextObject])
{
if([file.lastPathComponent isEqualToString:@"model.hwx"])
if([file.pathExtension isEqualToString:@"hwx"])
{
struct mach_header header;
FILE* f = fopen(file.fileSystemRepresentation, "r");
Expand Down

0 comments on commit 7b1955a

Please sign in to comment.