miasm
Reverse engineering framework
|
Variables | |
string | text |
base_types = CTypeAMD64_unk() | |
types_ast = CAstTypes() | |
types_mngr = CTypesManagerNotPacked(types_ast, base_types) | |
ptr_rectangle = types_mngr.get_objc(CTypePtr(CTypeStruct('rectangle'))) | |
ptr = ExprId('ptr', 64) | |
dictionary | c_context = {ptr.name: ptr_rectangle} |
mychandler = CHandler(types_mngr, C_types=c_context) | |
list | c_acceses |
expr = mychandler.c_to_expr(c_str) | |
c_type = mychandler.c_to_type(c_str) | |
Parse C expression to access variables and retrieve information: * Miasm expression to access this variable * variable type
expr_c.base_types = CTypeAMD64_unk() |
list expr_c.c_acceses |
dictionary expr_c.c_context = {ptr.name: ptr_rectangle} |
expr_c.c_type = mychandler.c_to_type(c_str) |
expr_c.expr = mychandler.c_to_expr(c_str) |
expr_c.mychandler = CHandler(types_mngr, C_types=c_context) |
expr_c.ptr = ExprId('ptr', 64) |
expr_c.ptr_rectangle = types_mngr.get_objc(CTypePtr(CTypeStruct('rectangle'))) |
string expr_c.text |
expr_c.types_ast = CAstTypes() |
expr_c.types_mngr = CTypesManagerNotPacked(types_ast, base_types) |