Minor update

This commit is contained in:
Miroslav Stampar 2014-10-28 15:30:05 +01:00
parent 455ea9922c
commit 67279a1136

View File

@ -134,7 +134,7 @@ def main():
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"):] if "sqlmap" in file_ else file_ file_ = file_[file_.find("sqlmap"):] if "sqlmap" in file_ else file_
file_ = file_.replace("sqlmap/", "", 1) file_ = re.sub(r"(?i)sqlmap[^/]*/", "", file_, 1)
excMsg = excMsg.replace(match.group(1), file_) excMsg = excMsg.replace(match.group(1), file_)
logger.critical(errMsg) logger.critical(errMsg)