mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
fix for wrong # of HttpOnly cookie
This commit is contained in:
parent
84caf9ffd1
commit
d35e2f95b8
@ -531,12 +531,12 @@ cookieflags() { # ARG1: Path, ARG2: path
|
|||||||
nr_secure=`grep -iac secure $TMPFILE`
|
nr_secure=`grep -iac secure $TMPFILE`
|
||||||
case $nr_secure in
|
case $nr_secure in
|
||||||
0) out "$negative_word secure, " ;;
|
0) out "$negative_word secure, " ;;
|
||||||
[123456789]) litegreen "$nr_secure/$nr_cookies secure" ; out ", ";;
|
[123456789]) litegreen "$nr_secure/$nr_cookies"; out "secure, ";;
|
||||||
esac
|
esac
|
||||||
nr_httponly=`grep -cai httponly $TMPFILE`
|
nr_httponly=`grep -cai httponly $TMPFILE`
|
||||||
case $nr_httponly in
|
case $nr_httponly in
|
||||||
0) out "$negative_word HttpOnly" ;;
|
0) out "$negative_word HttpOnly" ;;
|
||||||
[123456789]) litegreen "$nr_secure/$nr_cookies HttpOnly" ;;
|
[123456789]) litegreen "$nr_httponly/$nr_cookies"; out "HttpOnly" ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
out "none issued at \"$url\""
|
out "none issued at \"$url\""
|
||||||
@ -2391,6 +2391,6 @@ case "$1" in
|
|||||||
exit $ret ;;
|
exit $ret ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# $Id: testssl.sh,v 1.172 2015/01/23 11:17:26 dirkw Exp $
|
# $Id: testssl.sh,v 1.173 2015/01/23 14:09:34 dirkw Exp $
|
||||||
# vim:ts=5:sw=5
|
# vim:ts=5:sw=5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user