mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 06:01:29 +00:00
adding --force-ssl switch (most useful in combination with -r)
This commit is contained in:
@@ -1268,7 +1268,7 @@ def parseTargetUrl():
|
||||
__urlSplit = urlparse.urlsplit(conf.url)
|
||||
__hostnamePort = __urlSplit[1].split(":")
|
||||
|
||||
conf.scheme = __urlSplit[0].strip()
|
||||
conf.scheme = __urlSplit[0].strip() if not conf.forceSSL else "https"
|
||||
conf.path = __urlSplit[2].strip()
|
||||
conf.hostname = __hostnamePort[0].strip()
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ optDict = {
|
||||
"agent": "string",
|
||||
"randomAgent": "boolean",
|
||||
"rParam": "string",
|
||||
"forceSSL": "boolean",
|
||||
"host": "string",
|
||||
"referer": "string",
|
||||
"headers": "string",
|
||||
|
||||
Reference in New Issue
Block a user