mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-10 10:40:57 +01:00
SPDY
This commit is contained in:
parent
1765c4b0c0
commit
9f2d861fc1
@ -3264,16 +3264,19 @@ run_pfs() {
|
|||||||
spdy_pre(){
|
spdy_pre(){
|
||||||
if [[ -n "$STARTTLS" ]]; then
|
if [[ -n "$STARTTLS" ]]; then
|
||||||
[[ -n "$1" ]] && out "$1"
|
[[ -n "$1" ]] && out "$1"
|
||||||
out "(SPDY is a HTTP protocol and thus not tested here)"
|
out "(SPDY is an HTTP protocol and thus not tested here)"
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "INFO" "SPDY/NPN : (SPY is an HTTP protocol and thus not tested here)"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [[ -n "$PROXY" ]]; then
|
if [[ -n "$PROXY" ]]; then
|
||||||
[[ -n "$1" ]] && pr_litemagenta " $1 "
|
[[ -n "$1" ]] && pr_litemagenta " $1 "
|
||||||
pr_litemagenta "not tested as proxies do not support proxying it"
|
pr_litemagenta "not tested as proxies do not support proxying it"
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "INFO" "SPDY/NPN : not tested as proxies do not support proxying it"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if ! $HAS_SPDY; then
|
if ! $HAS_SPDY; then
|
||||||
local_problem "$OPENSSL doesn't support SPDY/NPN";
|
local_problem "$OPENSSL doesn't support SPDY/NPN";
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "WARN" "SPDY/NPN : not tested $OPENSSL doesn't support SPDY/NPN"
|
||||||
return 7
|
return 7
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
@ -3310,15 +3313,18 @@ run_spdy() {
|
|||||||
tmpstr=$(grep -a '^Protocols' $TMPFILE | sed 's/Protocols.*: //')
|
tmpstr=$(grep -a '^Protocols' $TMPFILE | sed 's/Protocols.*: //')
|
||||||
if [[ -z "$tmpstr" ]] || [[ "$tmpstr" == " " ]]; then
|
if [[ -z "$tmpstr" ]] || [[ "$tmpstr" == " " ]]; then
|
||||||
outln "not offered"
|
outln "not offered"
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "INFO" "SPDY/NPN : not offered"
|
||||||
ret=1
|
ret=1
|
||||||
else
|
else
|
||||||
# now comes a strange thing: "Protocols advertised by server:" is empty but connection succeeded
|
# now comes a strange thing: "Protocols advertised by server:" is empty but connection succeeded
|
||||||
if echo $tmpstr | egrep -aq "h2|spdy|http" ; then
|
if echo $tmpstr | egrep -aq "h2|spdy|http" ; then
|
||||||
out "$tmpstr"
|
out "$tmpstr"
|
||||||
outln " (advertised)"
|
outln " (advertised)"
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "INFO" "SPDY/NPN : $tmpstr (advertised)"
|
||||||
ret=0
|
ret=0
|
||||||
else
|
else
|
||||||
pr_litemagentaln "please check manually, server response was ambigious ..."
|
pr_litemagentaln "please check manually, server response was ambigious ..."
|
||||||
|
output_finding "spdy_npn" "$NODEIP" "$PORT" "INFO" "SPDY/NPN : please check manually, server response was ambigious ..."
|
||||||
ret=10
|
ret=10
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user