diff --git a/lib/core/option.py b/lib/core/option.py index a1bcbe8da..9016ac234 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -347,6 +347,10 @@ def _setCrawler(): for i in xrange(len(targets)): try: target = targets[i] + + if not re.search(r"\Ahttp[s]*://", target): + target = "http://%s" % target + crawl(target) if conf.verbose in (1, 2): @@ -484,7 +488,11 @@ def _findPageForms(): for i in xrange(len(targets)): try: - target = targets[i] + target = targets[i].strip() + + if not re.search(r"\Ahttp[s]*://", target): + target = "http://%s" % target + page, _, _ = Request.getPage(url=target.strip(), cookie=conf.cookie, crawling=True, raise404=False) if findPageForms(page, target, False, True): found = True diff --git a/lib/core/settings.py b/lib/core/settings.py index fd6a895b9..5256eb59f 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.10.33" +VERSION = "1.3.10.34" 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)