mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Patch to include traceback into the sqlmapapi based unhandled exception messages
This commit is contained in:
parent
cc06871075
commit
4cd3813f68
12
sqlmap.py
12
sqlmap.py
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user