diff --git a/lib/core/optiondict.py b/lib/core/optiondict.py index 60cc07418..b104610d9 100644 --- a/lib/core/optiondict.py +++ b/lib/core/optiondict.py @@ -47,6 +47,7 @@ optDict = { "saFreq": "integer", "skipUrlEncode": "boolean", "evalCode": "string", + "forceSSL": "boolean", }, "Optimization": { @@ -178,7 +179,6 @@ optDict = { "dumpFormat": "string", "eta": "boolean", "flushSession": "boolean", - "forceSSL": "boolean", "forms": "boolean", "freshQueries": "boolean", "hexConvert": "boolean", diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 993007962..374409f15 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -157,6 +157,10 @@ def cmdLineParser(): request.add_option("--eval", dest="evalCode", help="Evaluate provided Python code before the request (e.g. \"import hashlib;id2=hashlib.md5(id).hexdigest()\")") + request.add_option("--force-ssl", dest="forceSSL", + action="store_true", + help="Force usage of SSL/HTTPS") + # Optimization options optimization = OptionGroup(parser, "Optimization", "These " "switches can be used to optimize the " @@ -560,10 +564,6 @@ def cmdLineParser(): action="store_true", help="Flush session files for current target") - general.add_option("--force-ssl", dest="forceSSL", - action="store_true", - help="Force usage of SSL/HTTPS requests") - general.add_option("--forms", dest="forms", action="store_true", help="Parse and test forms on target URL") diff --git a/sqlmap.conf b/sqlmap.conf index d70cb1567..c53083db0 100644 --- a/sqlmap.conf +++ b/sqlmap.conf @@ -138,6 +138,9 @@ skipUrlEncode = False # Example: import hashlib;id2=hashlib.md5(id).hexdigest() evalCode = +# Force usage of SSL/HTTPS +# Valid: True or False +forceSSL = False # These options can be used to optimize the performance of sqlmap. [Optimization] @@ -614,10 +617,6 @@ eta = False # Valid: True or False flushSession = False -# Force usage of SSL/HTTPS requests -# Valid: True or False -forceSSL = False - # Parse and test forms on target URL. # Valid: True or False forms = False