diff --git a/lib/core/settings.py b/lib/core/settings.py index d4c0da868..b6e34a540 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.74" +VERSION = "1.3.5.75" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/core/testing.py b/lib/core/testing.py index 1f257b0b5..24d34ab1a 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -21,6 +21,7 @@ import traceback from extra.beep.beep import beep from extra.vulnserver import vulnserver from lib.controller.controller import start +from lib.core.common import clearColors from lib.core.common import clearConsoleLine from lib.core.common import dataToStdout from lib.core.common import randomStr @@ -77,10 +78,13 @@ def vulnTest(): ("--technique=B --hex --fresh-queries --threads=4 --sql-query='SELECT 987654321'", ("length of query output", ": '987654321'",)), ("--technique=T --fresh-queries --sql-query='SELECT 1234'", (": '1234'",)), ): - output = shellExec("%s %s -u http://%s:%d/?id=1 --batch %s" % (sys.executable, os.path.join(os.path.dirname(__file__), "..", "..", "sqlmap.py"), address, port, options)) + cmd = "%s %s -u http://%s:%d/?id=1 --batch %s" % (sys.executable, os.path.join(os.path.dirname(__file__), "..", "..", "sqlmap.py"), address, port, options) + output = shellExec(cmd) output = getUnicode(output) if not all(check in output for check in checks): + dataToStdout("---\n\n$ %s\n" % cmd) + dataToStdout("%s---\n" % clearColors(output)) retVal = False count += 1