Trivial update

This commit is contained in:
Miroslav Stampar 2019-10-31 20:49:38 +01:00
parent 7a6e2df997
commit 3af15fee60
2 changed files with 4 additions and 4 deletions

View File

@ -348,7 +348,7 @@ def _setCrawler():
try: try:
target = targets[i] target = targets[i]
if not re.search(r"\Ahttp[s]*://", target): if not re.search(r"(?i)\Ahttp[s]*://", target):
target = "http://%s" % target target = "http://%s" % target
crawl(target) crawl(target)
@ -490,7 +490,7 @@ def _findPageForms():
try: try:
target = targets[i].strip() 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 target = "http://%s" % target
page, _, _ = Request.getPage(url=target.strip(), cookie=conf.cookie, crawling=True, raise404=False) 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" errMsg = "invalid format of a safe request file"
raise SqlmapSyntaxException(errMsg) raise SqlmapSyntaxException(errMsg)
else: 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: if ":443/" in conf.safeUrl:
conf.safeUrl = "https://%s" % conf.safeUrl conf.safeUrl = "https://%s" % conf.safeUrl
else: else:

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.10.34" VERSION = "1.3.10.35"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} 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) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)