-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Description
you should add support for alternate code directory:
cs_blobs.h
CSSLOT_ALTERNATE_CODEDIRECTORIES = 0x1000, /* first alternate CodeDirectory, if any */
dictionary.py
indeces = {
0: 'CodeDirectorySlot',
1: 'InfoSlot',
2: 'RequirementsSlot',
3: 'ResourceDirSlot',
4: 'ApplicationSlot',
5: 'EntitlementSlot',
0x1000: 'AlternateCodeDirectorySlot', # <-- Add this
0x10000: 'SignatureSlot'
}
and here
parser.py
elif index_type in ['CodeDirectorySlot', 'AlternateCodeDirectorySlot']:
self.parse_codedirectory(true_offset, index_offset)