mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
server banner message polishing if empty
This commit is contained in:
parent
ee8c70bce3
commit
d83aed83fd
@ -2498,7 +2498,7 @@ run_server_banner() {
|
||||
if [[ $? -eq 0 ]]; then
|
||||
serverbanner=$(sed -e 's/^Server: //' -e 's/^server: //' $TMPFILE)
|
||||
if [[ "$serverbanner" == $'\n' ]] || [[ "$serverbanner" == $'\r' ]] || [[ "$serverbanner" == $'\n\r' ]] || [[ -z "$serverbanner" ]]; then
|
||||
outln "banner exists but empty string"
|
||||
outln "exists but empty string"
|
||||
fileout "$jsonID" "INFO" "Server banner is empty"
|
||||
else
|
||||
emphasize_stuff_in_headers "$serverbanner"
|
||||
|
Loading…
Reference in New Issue
Block a user