mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
More useless cat
This commit is contained in:
parent
4cdc89aa61
commit
8d965f7c71
@ -311,7 +311,7 @@ EOF
|
|||||||
) &>$HEADERFILE_BREACH &
|
) &>$HEADERFILE_BREACH &
|
||||||
pid=$!
|
pid=$!
|
||||||
if wait_kill $pid $HEADER_MAXSLEEP; then
|
if wait_kill $pid $HEADER_MAXSLEEP; then
|
||||||
result=$(cat $HEADERFILE_BREACH | grep -a '^Content-Encoding' | sed -e 's/^Content-Encoding//' -e 's/://' -e 's/ //g')
|
result=$(grep -a '^Content-Encoding' $HEADERFILE_BREACH | sed -e 's/^Content-Encoding//' -e 's/://' -e 's/ //g')
|
||||||
result=$(echo $result | tr -cd '\40-\176')
|
result=$(echo $result | tr -cd '\40-\176')
|
||||||
if [ -z $result ]; then
|
if [ -z $result ]; then
|
||||||
pr_green "no HTTP compression (OK) "
|
pr_green "no HTTP compression (OK) "
|
||||||
@ -392,7 +392,7 @@ EOF
|
|||||||
pid=$!
|
pid=$!
|
||||||
if wait_kill $pid $HEADER_MAXSLEEP; then
|
if wait_kill $pid $HEADER_MAXSLEEP; then
|
||||||
if ! egrep -iq "XML|HTML|DOCTYPE|HTTP|Connection" $HEADERFILE; then
|
if ! egrep -iq "XML|HTML|DOCTYPE|HTTP|Connection" $HEADERFILE; then
|
||||||
pr_litemagenta "likely HTTP header requests failed (#lines: $(cat $HEADERFILE | wc -l))."
|
pr_litemagenta "likely HTTP header requests failed (#lines: $(wc -l $HEADERFILE))."
|
||||||
outln "Rerun with DEBUG=1 and inspect \"http_header.txt\"\n"
|
outln "Rerun with DEBUG=1 and inspect \"http_header.txt\"\n"
|
||||||
debugme cat $HEADERFILE
|
debugme cat $HEADERFILE
|
||||||
ret=7
|
ret=7
|
||||||
|
Loading…
Reference in New Issue
Block a user