From 3af15fee60dae6958f1610197474bc7d921d9b7f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 31 Oct 2019 20:49:38 +0100 Subject: [PATCH] Trivial update --- lib/core/option.py | 6 +++--- lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 9016ac234..d7d718442 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -348,7 +348,7 @@ def _setCrawler(): try: target = targets[i] - if not re.search(r"\Ahttp[s]*://", target): + if not re.search(r"(?i)\Ahttp[s]*://", target): target = "http://%s" % target crawl(target) @@ -490,7 +490,7 @@ def _findPageForms(): try: target = targets[i].strip() - if not re.search(r"\Ahttp[s]*://", target): + if not re.search(r"(?i)\Ahttp[s]*://", target): target = "http://%s" % target page, _, _ = Request.getPage(url=target.strip(), cookie=conf.cookie, crawling=True, raise404=False) @@ -1167,7 +1167,7 @@ def _setSafeVisit(): errMsg = "invalid format of a safe request file" raise SqlmapSyntaxException(errMsg) else: - if not re.search(r"\Ahttp[s]*://", conf.safeUrl): + if not re.search(r"(?i)\Ahttp[s]*://", conf.safeUrl): if ":443/" in conf.safeUrl: conf.safeUrl = "https://%s" % conf.safeUrl else: diff --git a/lib/core/settings.py b/lib/core/settings.py index 5256eb59f..517b479df 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.34" +VERSION = "1.3.10.35" 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)