mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 17:39:56 +03:00
up
This commit is contained in:
parent
20daabdfc8
commit
76cc25d470
|
@ -331,7 +331,12 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
|
||||||
elif not scheme and port == "443":
|
elif not scheme and port == "443":
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
|
|
||||||
if conf.forceSSL:
|
hostPattern=host.replace(".","\.")
|
||||||
|
if (conf.forceSSL or re.search(r"host:[^\n\r]*%s:%s[\s\S]*referer:[^\n\r]*https://%s:%s.*" %
|
||||||
|
(hostPattern, port, hostPattern, port), request, re.I)
|
||||||
|
or (port != 80
|
||||||
|
and re.search(r"host:[^\n\r]*%s:%s[\s\S]*referer:[^\n\r]*https://.*cdn.*" %
|
||||||
|
(hostPattern, port), request, re.I))):
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
port = port or "443"
|
port = port or "443"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user