diff --git a/lib/core/optiondict.py b/lib/core/optiondict.py index d464c380a..712250123 100644 --- a/lib/core/optiondict.py +++ b/lib/core/optiondict.py @@ -29,7 +29,6 @@ optDict = { "dropSetCookie": "boolean", "agent": "string", "randomAgent": "boolean", - "rParam": "string", "host": "string", "referer": "string", "headers": "string", @@ -42,6 +41,7 @@ optDict = { "delay": "float", "timeout": "float", "retries": "integer", + "rParam": "string", "scope": "string", "safUrl": "string", "saFreq": "integer", diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 36c4343c9..4e0dc99d7 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -97,9 +97,6 @@ def cmdLineParser(): action="store_true", help="Use randomly selected HTTP User-Agent header") - request.add_option("--randomize", dest="rParam", - help="Randomly change value for given parameter(s)") - request.add_option("--host", dest="host", help="HTTP Host header") @@ -142,6 +139,9 @@ def cmdLineParser(): help="Retries when the connection timeouts " "(default %d)" % defaults.retries) + request.add_option("--randomize", dest="rParam", + help="Randomly change value for given parameter(s)") + request.add_option("--scope", dest="scope", help="Regexp to filter targets from provided proxy log") diff --git a/sqlmap.conf b/sqlmap.conf index 21654a6f6..880510507 100644 --- a/sqlmap.conf +++ b/sqlmap.conf @@ -65,9 +65,6 @@ host = # each HTTP request. referer = -# Randomly change value for the given parameter -rParam = - # Extra HTTP headers headers = Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 @@ -116,6 +113,9 @@ timeout = 30 # Default: 3 retries = 3 +# Randomly change value for the given parameter. +rParam = + # Regular expression for filtering targets from provided Burp. # or WebScarab proxy log. # Example: (google|yahoo)