miasm
Reverse engineering framework
|
Public Member Functions | |
def | __init__ (self, expr, var_prefix="v") |
def | is_var_identifier (self, expr) |
def | find_variables_rec (self, expr) |
def | vars (self) |
def | equation (self) |
def | __str__ (self) |
Public Attributes | |
var_indice | |
var_asked | |
var_prefix | |
Identify variables in an expression. Returns: - variables with their corresponding values - original expression with variables translated
def miasm.expression.expression_helper.Variables_Identifier.__init__ | ( | self, | |
expr, | |||
var_prefix = "v" |
|||
) |
Set the expression @expr to handle and launch variable identification process @expr: Expr instance @var_prefix: (optional) prefix of the variable name, default is 'v'
def miasm.expression.expression_helper.Variables_Identifier.__str__ | ( | self | ) |
def miasm.expression.expression_helper.Variables_Identifier.equation | ( | self | ) |
def miasm.expression.expression_helper.Variables_Identifier.find_variables_rec | ( | self, | |
expr | |||
) |
Recursive method called by find_variable to expand @expr. Set @var_names and @var_values. This implementation is faster than an expression visitor because we do not rebuild each expression.
def miasm.expression.expression_helper.Variables_Identifier.is_var_identifier | ( | self, | |
expr | |||
) |
def miasm.expression.expression_helper.Variables_Identifier.vars | ( | self | ) |
miasm.expression.expression_helper.Variables_Identifier.var_asked |
miasm.expression.expression_helper.Variables_Identifier.var_indice |
miasm.expression.expression_helper.Variables_Identifier.var_prefix |