From a0c0c73b669b4c1da937bd9e149e3391144bda5c Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 30 Oct 2023 19:03:16 +0100 Subject: [PATCH] Amend fix for newer grep versions See also PR #2243, issue #2241 Removes unneeded escape for exclamation mark. This is for 3.0. 3.2 has the fix already. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index eb3269d..6737996 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3020,7 +3020,7 @@ sub_f5_bigip_check() { ip="$(f5_hex2ip6 ${cookievalue:$offset:32})" out "${spaces}F5 cookie (IPv6 pool in routed domain "; pr_svrty_medium "$routed_domain"; out "): "; pr_italic "$cookiename "; prln_svrty_medium "${ip}:${port}" fileout "cookie_bigip_f5" "MEDIUM" "Information leakage: F5 cookie $cookiename $cookievalue is IPv6 pool member in routed domain $routed_domain ${ip}:${port}" "$cve" "$cwe" - elif grep -Eq '^\!.*=$' <<< "$cookievalue"; then + elif grep -Eq '^!.*=$' <<< "$cookievalue"; then if [[ "${#cookievalue}" -eq 81 ]] ; then savedcookies="${savedcookies} ${cookiename}=${cookievalue:1:79}" out "${spaces}Encrypted F5 cookie named "; pr_italic "${cookiename}"; outln " detected"