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

Skip to content

Commit 4b7f272

Browse files
committed
Adding more info if --vuln fails
1 parent 3f91f02 commit 4b7f272

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.74"
21+
VERSION = "1.3.5.75"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/testing.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from extra.beep.beep import beep
2222
from extra.vulnserver import vulnserver
2323
from lib.controller.controller import start
24+
from lib.core.common import clearColors
2425
from lib.core.common import clearConsoleLine
2526
from lib.core.common import dataToStdout
2627
from lib.core.common import randomStr
@@ -77,10 +78,13 @@ def _thread():
7778
("--technique=B --hex --fresh-queries --threads=4 --sql-query='SELECT 987654321'", ("length of query output", ": '987654321'",)),
7879
("--technique=T --fresh-queries --sql-query='SELECT 1234'", (": '1234'",)),
7980
):
80-
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))
81+
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)
82+
output = shellExec(cmd)
8183
output = getUnicode(output)
8284

8385
if not all(check in output for check in checks):
86+
dataToStdout("---\n\n$ %s\n" % cmd)
87+
dataToStdout("%s---\n" % clearColors(output))
8488
retVal = False
8589

8690
count += 1

0 commit comments

Comments
 (0)