mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
Fixed sending of data to socket
The stream had extra quotes on FreeBSD, so called printf directly. Also removed unnecessary `tr` call that should have been removed in previous commit
This commit is contained in:
parent
4ad8ae7659
commit
04ce8014ca
@ -462,7 +462,7 @@ std_cipherlists() {
|
||||
socksend() {
|
||||
data=`echo $1 | sed 's/tls_version/'"$2"'/g'`
|
||||
[ $VERBOSE -eq 1 ] && echo "\"$data\""
|
||||
out "$data" >&5 &
|
||||
printf $data >&5 &
|
||||
sleep $3
|
||||
}
|
||||
|
||||
@ -1062,7 +1062,7 @@ ccs_injection(){
|
||||
outln
|
||||
fi
|
||||
|
||||
reply_sanitized=`echo "$SOCKREPLY" | "${HEXDUMPPLAIN[@]}" | tr -cd '[:print:]' | sed 's/^..........//'`
|
||||
reply_sanitized=`echo "$SOCKREPLY" | "${HEXDUMPPLAIN[@]}" | sed 's/^..........//'`
|
||||
lines=`echo "$SOCKREPLY" | "${HEXDUMP[@]}" | wc -l`
|
||||
|
||||
if [ "$reply_sanitized" == "0a" ] || [ "$lines" -gt 1 ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user