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)
--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:

View File

@ -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",

View File

@ -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)