Skip to content

Commit 3279ce5

Browse files
committed
Minor style update
1 parent 534eccc commit 3279ce5

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

lib/controller/controller.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def start():
499499
errMsg = "all parameters appear to be not injectable."
500500

501501
if conf.level < 5 or conf.risk < 3:
502-
errMsg += " Try to increase --level/--risk values "
502+
errMsg += " Try to increase '--level'/'--risk' values "
503503
errMsg += "to perform more tests."
504504

505505
if isinstance(conf.tech, list) and len(conf.tech) < 5:
@@ -509,12 +509,12 @@ def start():
509509
percent = (100.0 * len(getFilteredPageContent(kb.originalPage)) / len(kb.originalPage))
510510

511511
if kb.dynamicParameters:
512-
errMsg += " You can give it a go with the --text-only "
513-
errMsg += "switch if the target page has a low percentage "
512+
errMsg += " You can give it a go with the switch '--text-only' "
513+
errMsg += "if the target page has a low percentage "
514514
errMsg += "of textual content (~%.2f%% of " % percent
515515
errMsg += "page content is text)."
516516
elif percent < LOW_TEXT_PERCENT and not kb.errorIsNone:
517-
errMsg += " Please retry with the --text-only switch "
517+
errMsg += " Please retry with the switch '--text-only' "
518518
errMsg += "(along with --technique=BU) as this case "
519519
errMsg += "looks like a perfect candidate "
520520
errMsg += "(low textual content along with inability "
@@ -529,17 +529,16 @@ def start():
529529

530530
if not conf.string and not conf.regexp:
531531
errMsg += " Also, you can try to rerun by providing "
532-
errMsg += "either a valid --string "
533-
errMsg += "or a valid --regexp, refer to the user's "
534-
errMsg += "manual for details"
532+
errMsg += "either a valid value for option '--string' "
533+
errMsg += "(or '--regexp')"
535534
elif conf.string:
536535
errMsg += " Also, you can try to rerun by providing a "
537-
errMsg += "valid --string as perhaps the string you "
536+
errMsg += "valid value for option '--string' as perhaps the string you "
538537
errMsg += "have choosen does not match "
539538
errMsg += "exclusively True responses"
540539
elif conf.regexp:
541540
errMsg += " Also, you can try to rerun by providing a "
542-
errMsg += "valid --regexp as perhaps the regular "
541+
errMsg += "valid value for option '--regexp' as perhaps the regular "
543542
errMsg += "expression that you have choosen "
544543
errMsg += "does not match exclusively True responses"
545544

0 commit comments

Comments
 (0)