Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
miasm2.analysis.sandbox.Sandbox_Linux_arml_str Class Reference
+ Inheritance diagram for miasm2.analysis.sandbox.Sandbox_Linux_arml_str:
+ Collaboration diagram for miasm2.analysis.sandbox.Sandbox_Linux_arml_str:

Public Member Functions

def __init__
 
def run
 
def parser
 
def update_parser
 
def update_parser
 

Static Public Member Functions

def code_sentinelle
 

Public Attributes

 fname
 
 options
 
 dbg
 
 gdb
 
 cmd
 
 machine
 
 jitter
 
 libs
 

Static Public Attributes

int STACK_SIZE = 0x100000
 
int STACK_BASE = 0x100000
 

Properties

 classes = property(lambda x:x.__class__._classes_())
 

Detailed Description

Definition at line 486 of file sandbox.py.

Constructor & Destructor Documentation

def miasm2.analysis.sandbox.Sandbox_Linux_arml_str.__init__ (   self,
  args,
  kwargs 
)

Definition at line 488 of file sandbox.py.

489  def __init__(self, *args, **kwargs):
490  Sandbox.__init__(self, *args, **kwargs)
491 
492  self.jitter.cpu.LR = 0x1337beef
493 
494  # Set the runtime guard
495  self.jitter.add_breakpoint(0x1337beef, self.__class__.code_sentinelle)
496 

Member Function Documentation

def miasm2.analysis.sandbox.Sandbox.code_sentinelle (   jitter)
staticinherited

Definition at line 16 of file sandbox.py.

16 
17  def code_sentinelle(jitter):
18  jitter.run = False
19  return False
def miasm2.analysis.sandbox.Sandbox.parser (   cls,
  args,
  kwargs 
)
inherited
Return instance of instance parser with expecting options.
Extra parameters are passed to parser initialisation.

Definition at line 65 of file sandbox.py.

65 
66  def parser(cls, *args, **kwargs):
67  """
68  Return instance of instance parser with expecting options.
69  Extra parameters are passed to parser initialisation.
70  """
71 
72  parser = ArgumentParser(*args, **kwargs)
73  parser.add_argument('-a', "--address",
74  help="Force entry point address", default=None)
75  parser.add_argument('-x', "--dumpall", action="store_true",
76  help="Load base dll")
77  parser.add_argument('-b', "--dumpblocs", action="store_true",
78  help="Log disasm blocks")
79  parser.add_argument('-z', "--singlestep", action="store_true",
80  help="Log single step")
81  parser.add_argument('-d', "--debugging", action="store_true",
82  help="Debug shell")
83  parser.add_argument('-g', "--gdbserver", type=int,
84  help="Listen on port @port")
85  parser.add_argument("-j", "--jitter",
86  help="Jitter engine. Possible values are: tcc (default), llvm, python",
87  default="tcc")
88  parser.add_argument('-q', "--quiet-function-calls", action="store_true",
89  help="Don't log function calls")
90 
91  for base_cls in cls._classes_():
92  base_cls.update_parser(parser)
93  return parser

+ Here is the caller graph for this function:

def miasm2.analysis.sandbox.Sandbox_Linux_arml_str.run (   self,
  addr = None 
)

Definition at line 497 of file sandbox.py.

498  def run(self, addr = None):
499  if addr is None and self.options.address is not None:
500  addr = int(self.options.address, 0)
501  super(Sandbox_Linux_arml_str, self).run(addr)
502 
def miasm2.analysis.sandbox.Arch.update_parser (   cls,
  parser 
)
inherited

Definition at line 148 of file sandbox.py.

149  def update_parser(cls, parser):
150  pass
151 
def miasm2.analysis.sandbox.OS_Linux_str.update_parser (   cls,
  parser 
)
inherited

Definition at line 262 of file sandbox.py.

263  def update_parser(cls, parser):
264  parser.add_argument("load_base_addr", help="load base address")
265 

Member Data Documentation

miasm2.analysis.sandbox.Sandbox.cmd
inherited

Definition at line 115 of file sandbox.py.

miasm2.analysis.sandbox.Sandbox.dbg
inherited

Definition at line 104 of file sandbox.py.

miasm2.analysis.sandbox.Sandbox.fname
inherited

Definition at line 43 of file sandbox.py.

miasm2.analysis.sandbox.Sandbox.gdb
inherited

Definition at line 111 of file sandbox.py.

miasm2.analysis.sandbox.Arch.jitter
inherited

Definition at line 145 of file sandbox.py.

miasm2.analysis.sandbox.OS_Linux_str.libs
inherited

Definition at line 252 of file sandbox.py.

miasm2.analysis.sandbox.Arch.machine
inherited

Definition at line 144 of file sandbox.py.

miasm2.analysis.sandbox.Sandbox.options
inherited

Definition at line 44 of file sandbox.py.

int miasm2.analysis.sandbox.Arch_arml.STACK_BASE = 0x100000
staticinherited

Definition at line 303 of file sandbox.py.

int miasm2.analysis.sandbox.Arch_arml.STACK_SIZE = 0x100000
staticinherited

Definition at line 302 of file sandbox.py.

Property Documentation

miasm2.analysis.sandbox.Sandbox.classes = property(lambda x:x.__class__._classes_())
staticinherited

Definition at line 32 of file sandbox.py.


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