Skip to content

Commit 2f398d3

Browse files
authored
Merge pull request #1951 from drwetter/fix_1717_3.0
Look-ahead trick for -U --ids-friendly (3.0)
2 parents 0d6ca5c + e293b7d commit 2f398d3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

testssl.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19533,6 +19533,13 @@ parse_cmd_line() {
1953319533
do_client_simulation=true
1953419534
;;
1953519535
-U|--vulnerable|--vulnerabilities)
19536+
# Lookahead function: If the order of the cmdline is '-U --ids-friendly'
19537+
# then we need to make sure we catch --ids-friendly. Normally we do not,
19538+
# see #1717. The following statement makes sure. In the do-while + case-esac
19539+
# loop it will be execute again, but it does not hurt
19540+
if [[ "${CMDLINE_ARRAY[@]}" =~ --ids-friendly ]]; then
19541+
OFFENSIVE=false
19542+
fi
1953619543
do_vulnerabilities=true
1953719544
do_heartbleed="$OFFENSIVE"
1953819545
do_ccs_injection="$OFFENSIVE"

0 commit comments

Comments
 (0)