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

Skip to content

Commit d634016

Browse files
committed
Fixes #4776
1 parent 45553f0 commit d634016

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/controller/controller.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,12 @@ def start():
295295
infoMsg = "found a total of %d targets" % len(kb.targets)
296296
logger.info(infoMsg)
297297

298-
hostCount = 0
298+
targetCount = 0
299299
initialHeaders = list(conf.httpHeaders)
300300

301301
for targetUrl, targetMethod, targetData, targetCookie, targetHeaders in kb.targets:
302+
targetCount += 1
303+
302304
try:
303305
if conf.checkInternet:
304306
infoMsg = "checking for Internet connection"
@@ -375,12 +377,10 @@ def start():
375377
continue
376378

377379
if conf.multipleTargets:
378-
hostCount += 1
379-
380380
if conf.forms and conf.method:
381-
message = "[#%d] form:\n%s %s" % (hostCount, conf.method, targetUrl)
381+
message = "[%d/%d] Form:\n%s %s" % (targetCount, len(kb.targets), conf.method, targetUrl)
382382
else:
383-
message = "URL %d:\n%s %s" % (hostCount, HTTPMETHOD.GET, targetUrl)
383+
message = "[%d/%d] URL:\n%s %s" % (targetCount, len(kb.targets), HTTPMETHOD.GET, targetUrl)
384384

385385
if conf.cookie:
386386
message += "\nCookie: %s" % conf.cookie
@@ -738,7 +738,7 @@ def start():
738738
if conf.multipleTargets:
739739
_saveToResultsFile()
740740

741-
errMsg += ", skipping to the next %s" % ("form" if conf.forms else "URL")
741+
errMsg += ", skipping to the next target"
742742
logger.error(errMsg.lstrip(", "))
743743
else:
744744
logger.critical(errMsg)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

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

0 commit comments

Comments
 (0)