Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | pyc_object |
struct | pyc_code_object |
struct | pyc_context |
Typedefs | |
typedef struct pyc_context | RzBinPycObj |
Enumerations | |
enum | pyc_marshal_type { TYPE_ASCII = 'a' , TYPE_ASCII_INTERNED = 'A' , TYPE_BINARY_COMPLEX = 'y' , TYPE_BINARY_FLOAT = 'g' , TYPE_CODE_v0 = 'C' , TYPE_CODE_v1 = 'c' , TYPE_COMPLEX = 'x' , TYPE_DICT = '{' , TYPE_ELLIPSIS = '.' , TYPE_FALSE = 'F' , TYPE_FLOAT = 'f' , TYPE_FROZENSET = '>' , TYPE_INT64 = 'I' , TYPE_INTERNED = 't' , TYPE_INT = 'i' , TYPE_LIST = '[' , TYPE_LONG = 'l' , TYPE_NONE = 'N' , TYPE_NULL = '0' , TYPE_REF = 'r' , TYPE_SET = '<' , TYPE_SHORT_ASCII_INTERNED = 'Z' , TYPE_SHORT_ASCII = 'z' , TYPE_SMALL_TUPLE = ')' , TYPE_STOPITER = 'S' , TYPE_STRINGREF = 'R' , TYPE_STRING = 's' , TYPE_TRUE = 'T' , TYPE_TUPLE = '(' , TYPE_UNICODE = 'u' , TYPE_UNKNOWN = '?' } |
enum | pyc_marshal_flag { FLAG_REF = '\x80' } |
Functions | |
bool | get_sections_symbols_from_code_objects (RzBinPycObj *pyc, RzBuffer *buffer, RzList *sections, RzList *symbols, RzList *objs, ut32 magic) |
ut64 | get_code_object_addr (RzBinPycObj *pyc, RzBuffer *buffer, ut32 magic) |
typedef struct pyc_context RzBinPycObj |
enum pyc_marshal_flag |
enum pyc_marshal_type |
Definition at line 12 of file marshal.h.
ut64 get_code_object_addr | ( | RzBinPycObj * | pyc, |
RzBuffer * | buffer, | ||
ut32 | magic | ||
) |
Definition at line 981 of file marshal.c.
References pyc_object::data, free_object(), get_code_object(), pyc_context::magic_int, pyc_code_object::start_offset, and ut64().
Referenced by get_entrypoint().
bool get_sections_symbols_from_code_objects | ( | RzBinPycObj * | pyc, |
RzBuffer * | buffer, | ||
RzList * | sections, | ||
RzList * | symbols, | ||
RzList * | objs, | ||
ut32 | magic | ||
) |
Definition at line 1190 of file marshal.c.
References extract_sections_symbols(), free_object(), get_object(), pyc_context::magic_int, NULL, pyc_context::refs, rz_list_free(), rz_list_newf(), sections(), and symbols().
Referenced by pyc_get_sections_symbols().