mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
BUGFIX: socket buffer wasn't empty, could have led to false negatives
This commit is contained in:
parent
4ae510650d
commit
397b115a47
@ -143,8 +143,9 @@ fi
|
|||||||
|
|
||||||
echo "##### sending client hello:"
|
echo "##### sending client hello:"
|
||||||
socksend "$msg" $TLSV
|
socksend "$msg" $TLSV
|
||||||
|
sleep 1
|
||||||
|
|
||||||
sockread 5000
|
sockread 10000
|
||||||
echo -e "\n##### server hello\c"
|
echo -e "\n##### server hello\c"
|
||||||
if test $DEBUG ; then
|
if test $DEBUG ; then
|
||||||
echo ":"
|
echo ":"
|
||||||
@ -157,6 +158,7 @@ echo "##### sending ccs injection with TLS version $TLSV:"
|
|||||||
socksend "$ccs_message" $TLSV || ok_ids
|
socksend "$ccs_message" $TLSV || ok_ids
|
||||||
sleep 1
|
sleep 1
|
||||||
socksend "$ccs_message" $TLSV || ok_ids
|
socksend "$ccs_message" $TLSV || ok_ids
|
||||||
|
sleep 1
|
||||||
|
|
||||||
sockread 65534
|
sockread 65534
|
||||||
echo
|
echo
|
||||||
@ -183,4 +185,4 @@ exit $ret
|
|||||||
|
|
||||||
|
|
||||||
# vim:tw=100:ts=5:sw=5
|
# vim:tw=100:ts=5:sw=5
|
||||||
# $Id: ccs-injection.sh,v 1.3 2014/06/14 21:44:42 dirkw Exp $
|
# $Id: ccs-injection.sh,v 1.4 2014/10/08 11:06:47 dirkw Exp $
|
||||||
|
Loading…
Reference in New Issue
Block a user