Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate code directory #24

Open
KasperskyZiv opened this issue Jun 4, 2019 · 0 comments
Open

Alternate code directory #24

KasperskyZiv opened this issue Jun 4, 2019 · 0 comments
Assignees

Comments

@KasperskyZiv
Copy link

KasperskyZiv commented Jun 4, 2019

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants