From 95e476d5c90857376b2f8213ddc8ab0736269fbb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 22 Sep 2019 20:14:43 +0200 Subject: [PATCH] Fixes #3937 --- lib/core/option.py | 8 ++++++-- lib/core/settings.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index af58a1113..8b38a6866 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -341,7 +341,8 @@ def _setCrawler(): if conf.bulkFile: targets = getFileItems(conf.bulkFile) else: - targets = parseSitemap(conf.sitemapUrl) + targets = list(parseSitemap(conf.sitemapUrl)) + for i in xrange(len(targets)): try: target = targets[i] @@ -473,10 +474,13 @@ def _findPageForms(): if conf.bulkFile: targets = getFileItems(conf.bulkFile) elif conf.sitemapUrl: - targets = parseSitemap(conf.sitemapUrl) + targets = list(parseSitemap(conf.sitemapUrl)) elif conf.googleDork: targets = [_[0] for _ in kb.targets] kb.targets.clear() + else: + targets = [] + for i in xrange(len(targets)): try: target = targets[i] diff --git a/lib/core/settings.py b/lib/core/settings.py index 1917d6795..8565169ec 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.9.18" +VERSION = "1.3.9.19" 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)