Patch to include traceback into the sqlmapapi based unhandled exception messages

This commit is contained in:
Miroslav Stampar 2016-02-16 09:15:57 +01:00
parent cc06871075
commit 4cd3813f68

View File

@ -195,10 +195,14 @@ def main():
errMsg = maskSensitiveData(errMsg) errMsg = maskSensitiveData(errMsg)
excMsg = maskSensitiveData(excMsg) excMsg = maskSensitiveData(excMsg)
logger.critical(errMsg) if hasattr(conf, "api"):
kb.stickyLevel = logging.CRITICAL logger.critical("%s\n%s" % (errMsg, excMsg))
dataToStdout(excMsg) else:
createGithubIssue(errMsg, excMsg) logger.critical(errMsg)
kb.stickyLevel = logging.CRITICAL
dataToStdout(excMsg)
createGithubIssue(errMsg, excMsg)
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass