miasm
Reverse engineering framework
miasm.analysis.sandbox.Sandbox Class Reference
Inheritance diagram for miasm.analysis.sandbox.Sandbox:
Collaboration diagram for miasm.analysis.sandbox.Sandbox:

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_())
 

Detailed Description

Parent class for Sandbox abstraction

Constructor & Destructor Documentation

◆ __init__()

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

Member Function Documentation

◆ call()

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
Here is the call graph for this function:

◆ code_sentinelle()

def miasm.analysis.sandbox.Sandbox.code_sentinelle (   jitter)
static
Here is the caller graph for this function:

◆ parser()

def miasm.analysis.sandbox.Sandbox.parser (   cls,
args,
**  kwargs 
)
Return instance of instance parser with expecting options.
Extra parameters are passed to parser initialisation.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

Member Data Documentation

◆ CALL_FINISH_ADDR

int miasm.analysis.sandbox.Sandbox.CALL_FINISH_ADDR = 0x13371acc
static

◆ cmd

miasm.analysis.sandbox.Sandbox.cmd

◆ dbg

miasm.analysis.sandbox.Sandbox.dbg

◆ fname

miasm.analysis.sandbox.Sandbox.fname

◆ gdb

miasm.analysis.sandbox.Sandbox.gdb

◆ loc_db

miasm.analysis.sandbox.Sandbox.loc_db

◆ options

miasm.analysis.sandbox.Sandbox.options

Property Documentation

◆ classes

miasm.analysis.sandbox.Sandbox.classes = property(lambda x: x.__class__._classes_())
static

The documentation for this class was generated from the following file: