From aa2b33fdb4008f8387650fe86fcaed4e8e388250 Mon Sep 17 00:00:00 2001 From: Dirk Date: Sat, 8 Aug 2015 13:42:31 +0200 Subject: [PATCH] rp header fine tuning --- testssl.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index de90288..12cc981 100755 --- a/testssl.sh +++ b/testssl.sh @@ -741,6 +741,7 @@ emphasize_stuff_in_headers(){ -e "s/Red Hat/"$yellow"Red Hat$off/g" \ -e "s/CentOS/"$yellow"CentOS$off/g" \ -e "s/Via/"$yellow"Via$off/g" \ + -e "s/X-Forwarded/"$yellow"X-Forwarded$off/g" \ -e "s/Liferay-Portal/"$yellow"Liferay-Portal$off/g" \ -e "s/X-Cache-Lookup/"$yellow"X-Cache-Lookup$off/g" \ -e "s/X-Cache/"$yellow"X-Cache$off/g" \ @@ -787,7 +788,7 @@ run_rp_banner() { run_http_header "$1" || return 3 fi pr_bold " Reverse Proxy banner " - egrep -ai '^Via:|^X-Cache:|^X-Squid:|^X-Varnish:|^X-Server-Name:|^X-Server-Port:' $HEADERFILE >$TMPFILE && \ + egrep -ai '^Via:|^X-Cache|^X-Squid|^X-Varnish:|^X-Server-Name:|^X-Server-Port:|^x-forwarded' $HEADERFILE >$TMPFILE && \ emphasize_stuff_in_headers "$(sed 's/^/ /g' $TMPFILE | tr '\n\r' ' ')" || \ outln "--" tmpfile_handle $FUNCNAME.txt @@ -4636,4 +4637,4 @@ fi exit $ret -# $Id: testssl.sh,v 1.336 2015/08/08 11:37:04 dirkw Exp $ +# $Id: testssl.sh,v 1.337 2015/08/08 11:42:29 dirkw Exp $