mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-28 12:42:18 +00:00
adding --force-ssl switch (most useful in combination with -r)
This commit is contained in:
parent
11887f331d
commit
6bedb80ffa
4 changed files with 10 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue