mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
fix for case -r with no params and cookie available
This commit is contained in:
parent
47fa600c04
commit
4441e11f68
|
@ -258,7 +258,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
|
||||||
if conf.scope:
|
if conf.scope:
|
||||||
getPostReq &= re.search(conf.scope, host) is not None
|
getPostReq &= re.search(conf.scope, host) is not None
|
||||||
|
|
||||||
if getPostReq and params:
|
if getPostReq and (params or cookie):
|
||||||
if not url.startswith("http"):
|
if not url.startswith("http"):
|
||||||
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
|
||||||
scheme = None
|
scheme = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user