How to use the lief.MachO.SECTION_TYPES function in lief

To help you get started, we’ve selected a few lief examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_WATCHOS       :   "VERSION_MIN_WATCHOS"
}


MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_MACOSX        :   "VERSION_MIN_MACOSX",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_TVOS          :   "VERSION_MIN_TVOS",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_WATCHOS       :   "VERSION_MIN_WATCHOS"
}


MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.LOAD_COMMAND_TYPES.UUID                      :   "UUID",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_IPHONEOS      :   "VERSION_MIN_IPHONEOS",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_MACOSX        :   "VERSION_MIN_MACOSX",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_TVOS          :   "VERSION_MIN_TVOS",
    lief.MachO.LOAD_COMMAND_TYPES.VERSION_MIN_WATCHOS       :   "VERSION_MIN_WATCHOS"
}


MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
}


MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}

MACHO_SECTION_TYPES = {
    lief.MachO.SECTION_TYPES.COALESCED                              :   "COALESCED",
    lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
github viper-framework / viper / viper / modules / lief_imports / macho.py View on Github external
lief.MachO.SECTION_TYPES.CSTRING_LITERALS                       :   "CSTRING_LITERALS",
    lief.MachO.SECTION_TYPES.DTRACE_DOF                             :   "DTRACE_DOF",
    lief.MachO.SECTION_TYPES.GB_ZEROFILL                            :   "GB_ZEROFILL",
    lief.MachO.SECTION_TYPES.INTERPOSING                            :   "INTERPOSING",
    lief.MachO.SECTION_TYPES.LAZY_DYLIB_SYMBOL_POINTERS             :   "LAZY_DYLIB_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LAZY_SYMBOL_POINTERS                   :   "LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.LITERAL_POINTERS                       :   "LITERAL_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_INIT_FUNC_POINTERS                 :   "MOD_INIT_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.MOD_TERM_FUNC_POINTERS                 :   "MOD_TERM_FUNC_POINTERS",
    lief.MachO.SECTION_TYPES.NON_LAZY_SYMBOL_POINTERS               :   "NON_LAZY_SYMBOL_POINTERS",
    lief.MachO.SECTION_TYPES.REGULAR                                :   "REGULAR",
    lief.MachO.SECTION_TYPES.SYMBOL_STUBS                           :   "SYMBOL_STUBS",
    lief.MachO.SECTION_TYPES.S_16BYTE_LITERALS                      :   "S_16BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_4BYTE_LITERALS                       :   "S_4BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.S_8BYTE_LITERALS                       :   "S_8BYTE_LITERALS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_INIT_FUNCTION_POINTERS    :   "THREAD_LOCAL_INIT_FUNCTION_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_REGULAR                   :   "THREAD_LOCAL_REGULAR",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLES                 :   "THREAD_LOCAL_VARIABLES",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_VARIABLE_POINTERS         :   "THREAD_LOCAL_VARIABLE_POINTERS",
    lief.MachO.SECTION_TYPES.THREAD_LOCAL_ZEROFILL                  :   "THREAD_LOCAL_ZEROFILL",
    lief.MachO.SECTION_TYPES.ZEROFILL                               :   "ZEROFILL"
}

MACHO_SYMBOL_ORIGINS = {
    lief.MachO.SYMBOL_ORIGINS.DYLD_EXPORT   :   "DYLD_EXPORT",
    lief.MachO.SYMBOL_ORIGINS.LC_SYMTAB     :   "LC_SYMTAB",
    lief.MachO.SYMBOL_ORIGINS.UNKNOWN       :   "UNKNOWN"
}