@@ -617,7 +617,7 @@ applicationbanner() {
617
617
else
618
618
# cat $TMPFILE | sed 's/^.*:/:/' | sed -e :a -e '$!N;s/\n:/ \n\ +/;ta' -e 'P;D' | sed 's/://g'
619
619
# sed 's/^/ /g' $TMPFILE | tr -t '\n\r' ' ' | sed "s/\([0-9]\)/$pr_red\1$off/g"
620
- emphasize_stuff_in_headers " $( sed ' s/^/ /g' $TMPFILE | tr -t ' \n\r' ' ' ) "
620
+ emphasize_stuff_in_headers " $( sed ' s/^/ /g' $TMPFILE | tr ' \n\r' ' ' ) "
621
621
# i=0
622
622
# cat $TMPFILE | sed 's/^/ /' | while read line; do
623
623
# out "$line"
@@ -1217,15 +1217,15 @@ cipher_pref_check() {
1217
1217
$OPENSSL s_client $STARTTLS -" $p " -connect $NODEIP :$PORT $SNI < /dev/null 2> /dev/null > $TMPFILE
1218
1218
if [ $? -eq 0 ]; then
1219
1219
tested_cipher=" "
1220
- proto=$( grep -aw " Protocol" $TMPFILE | sed -e ' s/^ \+ Protocol \+ ://' -e ' s/ //g' )
1221
- cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^ \+ Cipher \+ ://' -e ' s/ //g' )
1220
+ proto=$( grep -aw " Protocol" $TMPFILE | sed -e ' s/^.* Protocol.* ://' -e ' s/ //g' )
1221
+ cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^.* Cipher.* ://' -e ' s/ //g' )
1222
1222
outln
1223
1223
printf " %-10s %s " " $proto :" " $cipher "
1224
1224
tested_cipher=" -" $cipher
1225
1225
while true ; do
1226
1226
$OPENSSL s_client $STARTTLS -" $p " -cipher " ALL:$tested_cipher " -connect $NODEIP :$PORT $SNI < /dev/null 2> /dev/null > $TMPFILE
1227
1227
[ $? -ne 0 ] && break
1228
- cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^ \+ Cipher \+ ://' -e ' s/ //g' )
1228
+ cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^.* Cipher.* ://' -e ' s/ //g' )
1229
1229
out " $cipher "
1230
1230
tested_cipher=" $tested_cipher :-$cipher "
1231
1231
done
@@ -1238,13 +1238,13 @@ cipher_pref_check() {
1238
1238
protos=$( $OPENSSL s_client -host $NODE -port $PORT -nextprotoneg \"\" < /dev/null 2> /dev/null | grep -a " ^Protocols " | sed -e ' s/^Protocols.*server: //' -e ' s/,//g' )
1239
1239
for p in $protos ; do
1240
1240
$OPENSSL s_client -host $NODE -port $PORT -nextprotoneg " $p " < /dev/null 2> /dev/null > $TMPFILE
1241
- cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^ \+ Cipher \+ ://' -e ' s/ //g' )
1241
+ cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^.* Cipher.* ://' -e ' s/ //g' )
1242
1242
printf " \n %-10s %s " " $p :" " $cipher "
1243
1243
tested_cipher=" -" $cipher
1244
1244
while true ; do
1245
1245
$OPENSSL s_client -cipher " ALL:$tested_cipher " -host $NODE -port $PORT -nextprotoneg " $p " < /dev/null 2> /dev/null > $TMPFILE
1246
1246
[ $? -ne 0 ] && break
1247
- cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^ \+ Cipher \+ ://' -e ' s/ //g' )
1247
+ cipher=$( grep -aw " Cipher" $TMPFILE | egrep -avw " New|is" | sed -e ' s/^.* Cipher.* ://' -e ' s/ //g' )
1248
1248
out " $cipher "
1249
1249
tested_cipher=" $tested_cipher :-$cipher "
1250
1250
done
0 commit comments