Skip to content

Commit

Permalink
Set preferred option to skip plugin executiont o --no-plugins, as tha…
Browse files Browse the repository at this point in the history
…t is more in line with the other 'no' options
  • Loading branch information
mboelen committed Feb 14, 2020
1 parent 3f834e6 commit af70303
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/helper_show
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

COMMANDS="audit configure generate show update upload-only"
HELPERS="audit configure show update"
OPTIONS="--auditor\n--cronjob (--cron)\n--debug\n--developer\n--devops\n--forensics\n--help (-h)\n--log-file\n--manpage (--man)\n--no-colors\n--no-log\n--pentest\n--profile\n--plugin-dir\n--quick (-Q)\n--quiet (-q)\n--report-file\n--reverse-colors\n--skip-plugins\n--tests\n--tests-from-category\n--tests-from-group\n--usecwd\n--upload\n--verbose\n--version (-V)\n--wait\n--warnings-only"
OPTIONS="--auditor\n--cronjob (--cron)\n--debug\n--developer\n--devops\n--forensics\n--help (-h)\n--log-file\n--manpage (--man)\n--no-colors\n--no-log\n--no-plugins\n--pentest\n--profile\n--plugin-dir\n--quick (-Q)\n--quiet (-q)\n--report-file\n--reverse-colors\n--tests\n--tests-from-category\n--tests-from-group\n--usecwd\n--upload\n--verbose\n--version (-V)\n--wait\n--warnings-only"

SHOW_ARGS="categories changelog commands dbdir details environment eol groups help hostids includedir language license logfile man options os pidfile plugindir profiles release releasedate report settings tests version workdir"
SHOW_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories)
Expand Down
10 changes: 5 additions & 5 deletions include/parameters
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@
LOGFILE="/dev/null"
;;

# Skip execution of plugins
--no-plugins | --noplugins | --skip-plugins)
SKIP_PLUGINS=1
;;

--pen-test | --pentest)
PENTESTINGMODE=1
;;
Expand Down Expand Up @@ -359,11 +364,6 @@
fi
;;

# Skip execution of plugins
--skip-plugins | --no-plugins | --noplugins)
SKIP_PLUGINS=1
;;

# Only scan these tests
--tests)
shift
Expand Down
8 changes: 4 additions & 4 deletions lynis.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH Lynis 8 "4 Dec 2019" "1.31" "Unix System Administrator's Manual"
.TH Lynis 8 "14 Feb 2020" "1.32" "Unix System Administrator's Manual"


.SH "NAME"
Expand Down Expand Up @@ -91,6 +91,9 @@ Disable colored output.
Redirect all logging information to /dev/null, prevents sensitive information to
be written to disk.
.TP
.B \-\-no\-plugins
Do not run any of the enabled plugins.
.TP
.B \-\-pentest
Run a non-privileged scan, usually used for penetration testing. Some of the
tests will be skipped if they require root permissions.
Expand All @@ -113,9 +116,6 @@ Provide an alternative name for report file.
.B \-\-reverse\-colors
Optimize screen output for light backgrounds.
.TP
.B \-\-skip\-plugins
Do not run plugins.
.TP
.B \-\-tests TEST-IDs
Only run the specific test(s). When using multiple tests, add quotes around the
line.
Expand Down

0 comments on commit af70303

Please sign in to comment.