Peach :: Agent :: debugger :: crash_binning :: Class crash_binning
[hide private]

Class crash_binning

source code


To Do: Add persistant data support (disk / MySQL)

Instance Methods [hide private]
 
__init__(self) source code
 
record_crash(self, pydbg, extra=None)
Given a PyDbg instantiation that at the current time is assumed to have "crashed" (access violation for example) record various details such as the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind.
source code
 
crash_synopsis(self)
For the last recorded crash, generate and return a report containing the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind.
source code
Class Variables [hide private]
  bins = {}
  last_crash = None
  pydbg = None
Method Details [hide private]

record_crash(self, pydbg, extra=None)

source code 

Given a PyDbg instantiation that at the current time is assumed to have "crashed" (access violation for example) record various details such as the disassemly around the violating address, the ID of the offending thread, the call stack and the SEH unwind. Store the recorded data in an internal dictionary, binning them by the exception address.

Parameters:
  • pydbg (pydbg) - Instance of pydbg
  • extra (Mixed) - (Optional, Def=None) Whatever extra data you want to store with this bin