mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
work-around to be able to pass in the -r request file the Host header, the ending string ":443" and so sqlmap will go over https
This commit is contained in:
parent
9f53048ff4
commit
e1ef27f592
|
@ -178,7 +178,14 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
|
||||||
if key.lower() == "cookie":
|
if key.lower() == "cookie":
|
||||||
cookie = value
|
cookie = value
|
||||||
elif key.lower() == "host":
|
elif key.lower() == "host":
|
||||||
host = value
|
splitValue = value.split(":")
|
||||||
|
host = splitValue[0]
|
||||||
|
|
||||||
|
if len(splitValue) > 1:
|
||||||
|
port = splitValue[1]
|
||||||
|
|
||||||
|
if not scheme and port == "443":
|
||||||
|
scheme = "https"
|
||||||
|
|
||||||
# Avoid to add a static content length header to
|
# Avoid to add a static content length header to
|
||||||
# conf.httpHeaders and consider the following lines as
|
# conf.httpHeaders and consider the following lines as
|
||||||
|
|
Loading…
Reference in New Issue
Block a user