adjust to newer netcat versions

This commit is contained in:
john30
2021-02-14 16:48:47 +01:00
parent 024bf8435f
commit 65c96d6d8c
+1 -1
View File
@@ -13,6 +13,6 @@ if [ "x$1" = "x-a" ]; then
fi
for (( i=0; i<512; i++ )) ; do
h=`printf "%4.4X" $i`
ret=`echo "hex ${addr}b509030d${h##??}${h%%??}"|nc localhost $port|head -n 1`
ret=`echo "hex ${addr}b509030d${h##??}${h%%??}"|nc -q 1 localhost $port|head -n 1`
echo $i "=" $ret
done