Skip to content

Commit 4b5335a

Browse files
committed
Moving --force-ssl from [Request] to [General] options
1 parent 76a0d20 commit 4b5335a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/core/optiondict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"agent": "string",
3131
"randomAgent": "boolean",
3232
"rParam": "string",
33-
"forceSSL": "boolean",
3433
"host": "string",
3534
"referer": "string",
3635
"headers": "string",
@@ -179,6 +178,7 @@
179178
"dumpFormat": "string",
180179
"eta": "boolean",
181180
"flushSession": "boolean",
181+
"forceSSL": "boolean",
182182
"forms": "boolean",
183183
"freshQueries": "boolean",
184184
"hexConvert": "boolean",

lib/parse/cmdline.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ def cmdLineParser():
100100
request.add_option("--randomize", dest="rParam",
101101
help="Randomly change value for given parameter(s)")
102102

103-
request.add_option("--force-ssl", dest="forceSSL",
104-
action="store_true",
105-
help="Force usage of SSL/HTTPS requests")
106-
107103
request.add_option("--host", dest="host",
108104
help="HTTP Host header")
109105

@@ -568,6 +564,10 @@ def cmdLineParser():
568564
action="store_true",
569565
help="Flush session files for current target")
570566

567+
general.add_option("--force-ssl", dest="forceSSL",
568+
action="store_true",
569+
help="Force usage of SSL/HTTPS requests")
570+
571571
general.add_option("--forms", dest="forms",
572572
action="store_true",
573573
help="Parse and test forms on target URL")

sqlmap.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ referer =
6868
# Randomly change value for the given parameter
6969
rParam =
7070

71-
# Force usage of SSL/HTTPS requests
72-
# Valid: True or False
73-
forceSSL = False
74-
7571
# Extra HTTP headers
7672
headers = Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
7773
Accept-Language: en-us,en;q=0.5
@@ -618,6 +614,10 @@ eta = False
618614
# Valid: True or False
619615
flushSession = False
620616

617+
# Force usage of SSL/HTTPS requests
618+
# Valid: True or False
619+
forceSSL = False
620+
621621
# Parse and test forms on target URL.
622622
# Valid: True or False
623623
forms = False

0 commit comments

Comments
 (0)