Skip to content

Commit

Permalink
dsdump doesn't like protected executables #6, tmp bandaid
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekSelander committed Dec 9, 2019
1 parent 93bac29 commit c8b7126
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dsdump/XRMachOLibrary.mm
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ - (instancetype)initWithPath:(NSString*)path {
char seg_name[17] = {};
memcpy(seg_name, cmd->segname, 16);
NSString *segmentKey = [NSString stringWithUTF8String:seg_name];
if (cmd->flags & SG_PROTECTED_VERSION_1) {
// FIXME, implement protected executables
// https://github.com/DerekSelander/dsdump/issues/6
printf("%s is protected, come again at a later beta\n", cmd->segname);
exit(1);
}
self.segmentCommandsDictionary[segmentKey] = @((uintptr_t)cmd);

for (int j = 0; j < cmd->nsects; j++) {
Expand Down

0 comments on commit c8b7126

Please sign in to comment.