Skip to content

Alternate code directory #24

@KasperskyZiv

Description

@KasperskyZiv

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)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions