Someone had asked for this little scriplet so I thought I might as well pass it on. When your setting up your access violation handler in pyDBG:
self.dbg.set_callback(EXCEPTION_ACCESS_VIOLATION,self.violate_handler)Inside your violate handler store your crash bin and synopsis to a variable and call this:
notify(output_variable)notify looks like this:
def notify(output_variable):
smtpserver = 'mail.you.com'
recipients = ['[email protected]',]
sender = '[email protected]'
mssg = "From:[email protected]\r\n\r\nTo:\r\n\r\nExploded!"+output
session = smtplib.SMTP(smtpserver)
session.sendmail(sender, recipients, mssg)
session.quit()
return None
Then when you are like me and you write long-term fuzzing tasks or whatever, and you never sleep, your blackberry can fire every time you hit a crash :) Not sure if this helps anyone but thought I would share. Peace.







