Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 258a700

Browse files
committed
More anonymization of unhandled exception messages
1 parent df73be3 commit 258a700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@ def unhandledExceptionMessage():
28412841
errMsg += "sqlmap version: %s%s\n" % (VERSION, "-%s" % REVISION if REVISION else "")
28422842
errMsg += "Python version: %s\n" % PYVERSION
28432843
errMsg += "Operating system: %s\n" % PLATFORM
2844-
errMsg += "Command line: %s\n" % " ".join(sys.argv)
2844+
errMsg += "Command line: %s\n" % re.sub(".+?sqlmap.py", "sqlmap.py", " ".join(sys.argv))
28452845
errMsg += "Technique: %s\n" % (enumValueToNameLookup(PAYLOAD.TECHNIQUE, kb.technique) if kb.get("technique") else ("DIRECT" if conf.get("direct") else None))
28462846
errMsg += "Back-end DBMS: %s" % ("%s (fingerprinted)" % Backend.getDbms() if Backend.getDbms() is not None else "%s (identified)" % Backend.getIdentifiedDbms())
28472847

0 commit comments

Comments
 (0)