From 490c86c43eacb6d7676b55276c4d6b8a290ebb9b Mon Sep 17 00:00:00 2001 From: Pepi Zawodsky Date: Sat, 8 Feb 2014 01:14:40 +0100 Subject: [PATCH] Changed grep invocation to prevent strange grep versions to balk on -E --- cipherscan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipherscan b/cipherscan index ac71ced..f738858 100755 --- a/cipherscan +++ b/cipherscan @@ -72,7 +72,7 @@ EOF ) current_cipher=$(grep "New, " <<<"$tmp"|awk '{print $5}') current_pfs=$(grep 'Server Temp Key' <<<"$tmp"|awk '{print $4$5$6$7}') - current_protocol=$(grep -E "^\s+Protocol\s+:" <<<"$tmp"|awk '{print $3}') + current_protocol=$(egrep "^\s+Protocol\s+:" <<<"$tmp"|awk '{print $3}') if [[ -z "$current_protocol" || "$current_cipher" == '(NONE)' ]]; then # connection failed, try again with next TLS version continue