miasm
Reverse engineering framework
|
Public Member Functions | |
def | __init__ (self, loc_db, fname, options, custom_methods=None, **kwargs) |
def | parser (cls, *args, **kwargs) |
def | run (self, addr=None) |
def | call (self, prepare_cb, addr, *args) |
Static Public Member Functions | |
def | code_sentinelle (jitter) |
Public Attributes | |
fname | |
options | |
loc_db | |
dbg | |
gdb | |
cmd | |
Static Public Attributes | |
int | CALL_FINISH_ADDR = 0x13371acc |
Properties | |
classes = property(lambda x: x.__class__._classes_()) | |
Parent class for Sandbox abstraction
def miasm.analysis.sandbox.Sandbox.__init__ | ( | self, | |
loc_db, | |||
fname, | |||
options, | |||
custom_methods = None , |
|||
** | kwargs | ||
) |
Initialize a sandbox @fname: str file name @options: namespace instance of specific options @custom_methods: { str => func } for custom API implementations
def miasm.analysis.sandbox.Sandbox.call | ( | self, | |
prepare_cb, | |||
addr, | |||
* | args | ||
) |
Direct call of the function at @addr, with arguments @args prepare in calling convention implemented by @prepare_cb @prepare_cb: func(ret_addr, *args) @addr: address of the target function @args: arguments
|
static |
def miasm.analysis.sandbox.Sandbox.parser | ( | cls, | |
* | args, | ||
** | kwargs | ||
) |
Return instance of instance parser with expecting options. Extra parameters are passed to parser initialisation.
def miasm.analysis.sandbox.Sandbox.run | ( | self, | |
addr = None |
|||
) |
Launch emulation (gdbserver, debugging, basic JIT). @addr: (int) start address
Reimplemented in miasm.analysis.sandbox.Sandbox_Linux_ppc32b, miasm.analysis.sandbox.Sandbox_Linux_aarch64l, miasm.analysis.sandbox.Sandbox_Linux_arml_str, miasm.analysis.sandbox.Sandbox_Linux_armb_str, miasm.analysis.sandbox.Sandbox_Linux_mips32b, miasm.analysis.sandbox.Sandbox_Linux_armtl, miasm.analysis.sandbox.Sandbox_Linux_arml, miasm.analysis.sandbox.Sandbox_Linux_x86_64, miasm.analysis.sandbox.Sandbox_Linux_x86_32, miasm.analysis.sandbox.Sandbox_Win_x86_64, and miasm.analysis.sandbox.Sandbox_Win_x86_32.
|
static |
miasm.analysis.sandbox.Sandbox.cmd |
miasm.analysis.sandbox.Sandbox.dbg |
miasm.analysis.sandbox.Sandbox.fname |
miasm.analysis.sandbox.Sandbox.gdb |
miasm.analysis.sandbox.Sandbox.loc_db |
miasm.analysis.sandbox.Sandbox.options |
|
static |