mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Just in case for --force-ssl (if url is returned in e.g. refresh toward the target)
This commit is contained in:
@@ -276,6 +276,10 @@ class Connect(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
elif target:
|
elif target:
|
||||||
|
if conf.forceSSL and urlparse.urlparse(url).scheme != "https":
|
||||||
|
url = re.sub("\Ahttp:", "https:", url, re.I)
|
||||||
|
url = re.sub(":80/", ":443/", url, re.I)
|
||||||
|
|
||||||
if PLACE.GET in conf.parameters and not get:
|
if PLACE.GET in conf.parameters and not get:
|
||||||
get = conf.parameters[PLACE.GET]
|
get = conf.parameters[PLACE.GET]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user