mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Minor bug fix
This commit is contained in:
@@ -132,9 +132,10 @@ def main():
|
|||||||
excMsg = traceback.format_exc()
|
excMsg = traceback.format_exc()
|
||||||
|
|
||||||
for match in re.finditer(r'File "(.+?)", line', excMsg):
|
for match in re.finditer(r'File "(.+?)", line', excMsg):
|
||||||
file = match.group(1).replace('\\', "/")
|
file_ = match.group(1).replace('\\', "/")
|
||||||
file = file[file.find("sqlmap"):].replace("sqlmap/", "", 1)
|
file_ = file_[file_.find("sqlmap"):] if "sqlmap" in file_ else file_
|
||||||
excMsg = excMsg.replace(match.group(1), file)
|
file_ = file_.replace("sqlmap/", "", 1)
|
||||||
|
excMsg = excMsg.replace(match.group(1), file_)
|
||||||
|
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
kb.stickyLevel = logging.CRITICAL
|
kb.stickyLevel = logging.CRITICAL
|
||||||
|
|||||||
Reference in New Issue
Block a user