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:
Bernardo Damele 2010-11-12 12:25:02 +00:00
parent 9f53048ff4
commit e1ef27f592

View File

@ -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