Merge pull request #1952 from drwetter/fix_1717

Look-ahead trick for -U --ids-friendly
This commit is contained in:
Dirk Wetter 2021-08-01 17:47:11 +02:00 committed by GitHub
commit b603d57146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -22172,6 +22172,13 @@ parse_cmd_line() {
do_client_simulation=true do_client_simulation=true
;; ;;
-U|--vulnerable|--vulnerabilities) -U|--vulnerable|--vulnerabilities)
# Lookahead function: If the order of the cmdline is '-U --ids-friendly'
# then we need to make sure we catch --ids-friendly. Normally we do not,
# see #1717. The following statement makes sure. In the do-while + case-esac
# loop it will be execute again, but it does not hurt
if [[ "${CMDLINE_ARRAY[@]}" =~ --ids-friendly ]]; then
OFFENSIVE=false
fi
do_vulnerabilities=true do_vulnerabilities=true
do_heartbleed="$OFFENSIVE" do_heartbleed="$OFFENSIVE"
do_ccs_injection="$OFFENSIVE" do_ccs_injection="$OFFENSIVE"