Minor update

This commit is contained in:
Miroslav Stampar
2014-10-28 14:08:06 +01:00
parent 3b3b8d4ef2
commit 725c3a6a95
2 changed files with 13 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import bdb
import inspect
import logging
import os
import re
import sys
import time
import traceback
@@ -129,6 +130,12 @@ def main():
print
errMsg = unhandledExceptionMessage()
excMsg = traceback.format_exc()
for match in re.finditer(r'File "(.+?)", line', excMsg):
file = match.group(1).replace('\\', "/")
file = file[file.find("sqlmap"):].replace("sqlmap/", "", 1)
excMsg = excMsg.replace(match.group(1), file)
logger.critical(errMsg)
kb.stickyLevel = logging.CRITICAL
dataToStdout(excMsg)