mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
minor update
This commit is contained in:
@@ -1292,9 +1292,6 @@ def parseTargetUrl():
|
|||||||
else:
|
else:
|
||||||
conf.port = 80
|
conf.port = 80
|
||||||
|
|
||||||
if conf.forceSSL and conf.port == 80:
|
|
||||||
conf.port = 443
|
|
||||||
|
|
||||||
if __urlSplit[3]:
|
if __urlSplit[3]:
|
||||||
conf.parameters[PLACE.GET] = urldecode(__urlSplit[3]) if __urlSplit[3] and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in __urlSplit[3] else __urlSplit[3]
|
conf.parameters[PLACE.GET] = urldecode(__urlSplit[3]) if __urlSplit[3] and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in __urlSplit[3] else __urlSplit[3]
|
||||||
|
|
||||||
|
|||||||
@@ -295,6 +295,8 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
|
|||||||
conf.httpHeaders.append((str(key), str(value)))
|
conf.httpHeaders.append((str(key), str(value)))
|
||||||
|
|
||||||
if getPostReq and (params or cookie):
|
if getPostReq and (params or cookie):
|
||||||
|
if conf.forceSSL:
|
||||||
|
scheme = "https"
|
||||||
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
if not port and isinstance(scheme, basestring) and scheme.lower() == "https":
|
||||||
port = "443"
|
port = "443"
|
||||||
elif not scheme and port == "443":
|
elif not scheme and port == "443":
|
||||||
|
|||||||
Reference in New Issue
Block a user