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

Skip to content

Commit 690347a

Browse files
committed
Bug fix (non-ASCII chars in command line caused gibberish in unhandled messages)
1 parent 9fb0eb3 commit 690347a

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
@@ -2941,7 +2941,7 @@ def unhandledExceptionMessage():
29412941
errMsg += "sqlmap version: %s\n" % VERSION_STRING[VERSION_STRING.find('/') + 1:]
29422942
errMsg += "Python version: %s\n" % PYVERSION
29432943
errMsg += "Operating system: %s\n" % PLATFORM
2944-
errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap.py\b", "sqlmap.py", " ".join(sys.argv))
2944+
errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap.py\b", "sqlmap.py", getUnicode(" ".join(sys.argv), encoding=sys.stdin.encoding))
29452945
errMsg += "Technique: %s\n" % (enumValueToNameLookup(PAYLOAD.TECHNIQUE, kb.technique) if kb.get("technique") else ("DIRECT" if conf.get("direct") else None))
29462946
errMsg += "Back-end DBMS: %s" % ("%s (fingerprinted)" % Backend.getDbms() if Backend.getDbms() is not None else "%s (identified)" % Backend.getIdentifiedDbms())
29472947

0 commit comments

Comments
 (0)