mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-26 08:42:52 +03:00
Trivial update
This commit is contained in:
parent
7a6e2df997
commit
3af15fee60
|
@ -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:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user