mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
- making the read buffer for server hello bigger+variable
This commit is contained in:
parent
483139f0a4
commit
7b0fabdbc4
@ -25,6 +25,7 @@ MAXSLEEP=10
|
|||||||
OCKREPLY=""
|
OCKREPLY=""
|
||||||
COL_WIDTH=32
|
COL_WIDTH=32
|
||||||
DEBUG=${DEBUG:-0}
|
DEBUG=${DEBUG:-0}
|
||||||
|
HELLO_READBYTES=${HELLO_READBYTES:-65535}
|
||||||
|
|
||||||
TLSV=${2:-01}
|
TLSV=${2:-01}
|
||||||
# TLS 1.0=x01 1.1=0x02, 1.2=0x3
|
# TLS 1.0=x01 1.1=0x02, 1.2=0x3
|
||||||
@ -305,8 +306,8 @@ echo "##### sending standard client hello with TLS version 03,$TLSV:"
|
|||||||
socksend "$msg" $TLSV
|
socksend "$msg" $TLSV
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
sockread 16384
|
sockread $HELLO_READBYTES
|
||||||
echo "##### reading server hello:"
|
echo "##### reading server hello ($HELLO_READBYTES bytes):"
|
||||||
if test $DEBUG ; then
|
if test $DEBUG ; then
|
||||||
echo "$SOCKREPLY" | xxd -c$COL_WIDTH | head -10
|
echo "$SOCKREPLY" | xxd -c$COL_WIDTH | head -10
|
||||||
echo "[...]"
|
echo "[...]"
|
||||||
|
@ -23,6 +23,7 @@ MAXSLEEP=10
|
|||||||
SOCKREPLY=""
|
SOCKREPLY=""
|
||||||
COL_WIDTH=32
|
COL_WIDTH=32
|
||||||
DEBUG=${DEBUG:-0}
|
DEBUG=${DEBUG:-0}
|
||||||
|
HELLO_READBYTES=${HELLO_READBYTES:-65535}
|
||||||
|
|
||||||
# TLS 1.0=x01 1.1=0x02, 1.2=0x3
|
# TLS 1.0=x01 1.1=0x02, 1.2=0x3
|
||||||
TLSV=${2:-01}
|
TLSV=${2:-01}
|
||||||
@ -272,8 +273,8 @@ fd_socket $PORT
|
|||||||
echo "##### sending standard client hello with TLS version 03,$TLSV:"
|
echo "##### sending standard client hello with TLS version 03,$TLSV:"
|
||||||
socksend "$msg" $TLSV
|
socksend "$msg" $TLSV
|
||||||
|
|
||||||
sockread 16384
|
sockread $HELLO_READBYTES
|
||||||
echo "##### reading server hello:"
|
echo "##### reading server hello ($HELLO_READBYTES bytes):"
|
||||||
echo "$SOCKREPLY" | xxd -c$COL_WIDTH | head -10
|
echo "$SOCKREPLY" | xxd -c$COL_WIDTH | head -10
|
||||||
echo "[...]"
|
echo "[...]"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user