mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-27 01:00:35 +03:00
Minor update
This commit is contained in:
parent
9e8aec37c8
commit
ec0be6519f
|
@ -293,6 +293,7 @@ def _setRequestFromFile():
|
||||||
if conf.requestFile:
|
if conf.requestFile:
|
||||||
for requestFile in re.split(PARAMETER_SPLITTING_REGEX, conf.requestFile):
|
for requestFile in re.split(PARAMETER_SPLITTING_REGEX, conf.requestFile):
|
||||||
requestFile = safeExpandUser(requestFile)
|
requestFile = safeExpandUser(requestFile)
|
||||||
|
url = None
|
||||||
seen = set()
|
seen = set()
|
||||||
|
|
||||||
if not checkFile(requestFile, False):
|
if not checkFile(requestFile, False):
|
||||||
|
@ -311,6 +312,11 @@ def _setRequestFromFile():
|
||||||
conf.multipleTargets = True
|
conf.multipleTargets = True
|
||||||
seen.add(url)
|
seen.add(url)
|
||||||
|
|
||||||
|
if url is None:
|
||||||
|
errMsg = "specified file '%s' " % requestFile
|
||||||
|
errMsg += "does not contain a valid HTTP request"
|
||||||
|
raise SqlmapDataException(errMsg)
|
||||||
|
|
||||||
if conf.secondReq:
|
if conf.secondReq:
|
||||||
conf.secondReq = safeExpandUser(conf.secondReq)
|
conf.secondReq = safeExpandUser(conf.secondReq)
|
||||||
|
|
||||||
|
|
|
@ -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.7.42"
|
VERSION = "1.3.7.43"
|
||||||
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