Minor language fixes

This commit is contained in:
Miroslav Stampar 2012-07-07 11:41:52 +02:00
parent 2669528b24
commit 823b3d8be8
3 changed files with 13 additions and 12 deletions

View File

@ -844,8 +844,8 @@ Options:
--level=LEVEL Level of tests to perform (1-5, default 1) --level=LEVEL Level of tests to perform (1-5, default 1)
--risk=RISK Risk of tests to perform (0-3, 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 --string=STRING String to match when query is evaluated to True
--regexp=REGEXP Regexp to match in page when the query is valid --regexp=REGEXP Regexp to match when query is evaluated to True
--text-only Compare pages based only on the textual content --text-only Compare pages based only on the textual content
Techniques: Techniques:

View File

@ -237,15 +237,16 @@ def cmdLineParser():
"default %d)" % defaults.level) "default %d)" % defaults.level)
detection.add_option("--string", dest="string", detection.add_option("--string", dest="string",
help="String to match in the response when " help="String to match when "
"query is valid") "query is evaluated to True")
detection.add_option("--regexp", dest="regexp", detection.add_option("--regexp", dest="regexp",
help="Regexp to match in the response when " help="Regexp to match when "
"query is valid") "query is evaluated to True")
detection.add_option("--code", dest="code", type="int", 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", detection.add_option("--text-only", dest="textOnly",
action="store_true", action="store_true",

View File

@ -238,20 +238,20 @@ level = 1
# Default: 1 # Default: 1
risk = 1 risk = 1
# String to match within the raw response when the query is valid, only # String to match within the raw response when the query is evaluated to
# needed if the page content dynamically changes at each refresh. # True, only needed if the page content dynamically changes at each refresh.
# Refer to the user's manual for further details. # Refer to the user's manual for further details.
string = string =
# Regular expression to match within the raw response when the query is # Regular expression to match within the raw response when the query is
# valid, only needed if the needed if the page content dynamically changes # evaluated to True, only needed if the needed if the page content
# at each refresh. # dynamically changes at each refresh.
# Refer to the user's manual for further details. # Refer to the user's manual for further details.
# Valid: regular expression with Python syntax # Valid: regular expression with Python syntax
# (http://www.python.org/doc/2.5.2/lib/re-syntax.html) # (http://www.python.org/doc/2.5.2/lib/re-syntax.html)
regexp = regexp =
# HTTP response code to match when the query is valid. # HTTP response code to match when the query is True.
# Valid: Integer # Valid: Integer
# Example: 200 (assuming any False statement returns a different response # Example: 200 (assuming any False statement returns a different response
# code) # code)