diff --git a/doc/README.sgml b/doc/README.sgml index 86f755882..a3bb6fd4b 100644 --- a/doc/README.sgml +++ b/doc/README.sgml @@ -844,8 +844,8 @@ Options: --level=LEVEL Level of tests to perform (1-5, default 1) --risk=RISK Risk of tests to perform (0-3, default 1) - --string=STRING String to match in page when the query is valid - --regexp=REGEXP Regexp to match in page when the query is valid + --string=STRING String to match when query is evaluated to True + --regexp=REGEXP Regexp to match when query is evaluated to True --text-only Compare pages based only on the textual content Techniques: diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 6484bf4f9..cec3f6ffa 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -237,15 +237,16 @@ def cmdLineParser(): "default %d)" % defaults.level) detection.add_option("--string", dest="string", - help="String to match in the response when " - "query is valid") + help="String to match when " + "query is evaluated to True") detection.add_option("--regexp", dest="regexp", - help="Regexp to match in the response when " - "query is valid") + help="Regexp to match when " + "query is evaluated to True") detection.add_option("--code", dest="code", type="int", - help="HTTP response code to match when the query is valid") + help="HTTP code to match when " + "query is evaluated to True") detection.add_option("--text-only", dest="textOnly", action="store_true", diff --git a/sqlmap.conf b/sqlmap.conf index 558b08234..768a349d8 100644 --- a/sqlmap.conf +++ b/sqlmap.conf @@ -238,20 +238,20 @@ level = 1 # Default: 1 risk = 1 -# String to match within the raw response when the query is valid, only -# needed if the page content dynamically changes at each refresh. +# String to match within the raw response when the query is evaluated to +# True, only needed if the page content dynamically changes at each refresh. # Refer to the user's manual for further details. string = # Regular expression to match within the raw response when the query is -# valid, only needed if the needed if the page content dynamically changes -# at each refresh. +# evaluated to True, only needed if the needed if the page content +# dynamically changes at each refresh. # Refer to the user's manual for further details. # Valid: regular expression with Python syntax # (http://www.python.org/doc/2.5.2/lib/re-syntax.html) regexp = -# HTTP response code to match when the query is valid. +# HTTP response code to match when the query is True. # Valid: Integer # Example: 200 (assuming any False statement returns a different response # code)