mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-10 18:50:58 +01:00
parent
4ff442ad7f
commit
7cd872313e
@ -2013,7 +2013,7 @@ run_server_banner() {
|
||||
grep -ai '^Server' $HEADERFILE >$TMPFILE
|
||||
if [[ $? -eq 0 ]]; then
|
||||
serverbanner=$(sed -e 's/^Server: //' -e 's/^server: //' $TMPFILE)
|
||||
if [[ x"$serverbanner" == "x\n" ]] || [[ x"$serverbanner" == "x\n\r" ]] || [[ -z "$serverbanner" ]]; then
|
||||
if [[ "$serverbanner" == $'\n' ]] || [[ "$serverbanner" == $'\r' ]] || [[ "$serverbanner" == $'\n\r' ]] || [[ -z "$serverbanner" ]]; then
|
||||
outln "banner exists but empty string"
|
||||
fileout "serverbanner" "INFO" "Server banner exists but empty string"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user