Skip to content

search for crypto_info within code_obj.co_consts #18

@prusswan

Description

@prusswan

crypto_info = code_obj.co_consts[code[(8 if case1 else 14) + 1]]

It seems that there is only one bytes value in code_obj.co_consts, so it might be easier to search by type instead of using hardcoded positions

(may need confirmation from others, but the above worked for me when ran against v8.5 and Python 3.11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions