Package winappdbg :: Module sql :: Class CrashDTO
[hide private]
[frames] | no frames]

Class CrashDTO

source code


Database mapping for crash dumps.

Instance Methods [hide private]
 
__init__(self, crash)
A simple constructor that allows initialization from kwargs.
source code
Crash
toCrash(self, getMemoryDump=False)
Returns a Crash object using the data retrieved from the database.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __tablename__ = 'crashes'
  id = Column(Integer, Sequence(__tablename__+ '_seq'), primary_...
  timestamp = Column(DateTime, nullable= False, index= True)
  exploitable = Column(Integer, nullable= False)
  exploitability_rule = Column(String(32), nullable= False)
  exploitability_rating = Column(String(32), nullable= False)
  exploitability_desc = Column(String, nullable= False)
  os = Column(String(32), nullable= False)
  arch = Column(String(16), nullable= False)
  bits = Column(Integer, nullable= False)
  event = Column(String, nullable= False)
  pid = Column(Integer, nullable= False)
  tid = Column(Integer, nullable= False)
  pc = Column(BigInteger, nullable= False)
  sp = Column(BigInteger, nullable= False)
  fp = Column(BigInteger, nullable= False)
  pc_label = Column(String, nullable= False)
  exception = Column(String(64))
  exception_text = Column(String(64))
  exception_address = Column(BigInteger)
  exception_label = Column(String)
  first_chance = Column(Boolean)
  fault_type = Column(Integer)
  fault_address = Column(BigInteger)
  fault_label = Column(String)
  fault_disasm = Column(String)
  stack_trace = Column(String)
  command_line = Column(String)
  environment = Column(String)
  debug_string = Column(String)
  notes = Column(String)
  signature = Column(String, nullable= False)
  data = deferred(Column(LargeBinary, nullable= False))
  __mapper__ = <Mapper at 0x3e8e7d0; CrashDTO>
  __table__ = Table('crashes', MetaData(bind=None), Column('id',...
  _sa_class_manager = <ClassManager of <class 'winappdbg.sql.Cra...

Inherited from BaseDTO: metadata

Inherited from BaseDTO (private): _decl_class_registry

Inherited from unreachable.BaseDTO: __table_args__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, crash)
(Constructor)

source code 

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in ``kwargs``.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Parameters:
  • crash (Crash) - Crash object to store into the database.
Overrides: object.__init__

toCrash(self, getMemoryDump=False)

source code 

Returns a Crash object using the data retrieved from the database.

Parameters:
  • getMemoryDump (bool) - If True retrieve the memory dump. Defaults to False since this may be a costly operation.
Returns: Crash
Crash object.

Class Variable Details [hide private]

id

Value:
Column(Integer, Sequence(__tablename__+ '_seq'), primary_key= True, au\
toincrement= True)

__table__

Value:
Table('crashes', MetaData(bind=None), Column('id', Integer(), table=<c\
rashes>, primary_key=True, nullable=False, default=Sequence('crashes_s\
eq', metadata=MetaData(bind=None))), Column('timestamp', DateTime(), t\
able=<crashes>, nullable=False), Column('exploitable', Integer(), tabl\
e=<crashes>, nullable=False), Column('exploitability_rule', String(len\
gth=32), table=<crashes>, nullable=False), Column('exploitability_rati\
ng', String(length=32), table=<crashes>, nullable=False), Column('expl\
oitability_desc', String(), table=<crashes>, nullable=False), Column('\
...

_sa_class_manager

Value:
<ClassManager of <class 'winappdbg.sql.CrashDTO'> at 3deee70>