Adding full OS info in error reports

This commit is contained in:
Miroslav Stampar
2018-01-21 11:54:42 +01:00
parent 4b9613e362
commit fc06d4d9cb
3 changed files with 5 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ import locale
import logging
import ntpath
import os
import platform
import posixpath
import random
import re
@@ -3289,7 +3290,7 @@ def unhandledExceptionMessage():
errMsg += "and get back to you\n"
errMsg += "sqlmap version: %s\n" % VERSION_STRING[VERSION_STRING.find('/') + 1:]
errMsg += "Python version: %s\n" % PYVERSION
errMsg += "Operating system: %s\n" % PLATFORM
errMsg += "Operating system: %s\n" % platform.platform()
errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap\.py\b", "sqlmap.py", getUnicode(" ".join(sys.argv), encoding=sys.stdin.encoding))
errMsg += "Technique: %s\n" % (enumValueToNameLookup(PAYLOAD.TECHNIQUE, kb.technique) if kb.get("technique") else ("DIRECT" if conf.get("direct") else None))
errMsg += "Back-end DBMS:"