mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
Add PFS key size to results
This commit is contained in:
parent
4a51ef71d6
commit
627701ec63
@ -26,13 +26,13 @@ test_cipher_on_target() {
|
||||
$REQUEST
|
||||
EOF
|
||||
# Parse the result
|
||||
result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}')"
|
||||
result="$(grep "New, " $tmp|awk '{print $5}') $(grep -E "^\s+Protocol\s+:" $tmp|awk '{print $3}') $(grep 'Server Temp Key' $tmp|awk '{print $4$5$6$7}')"
|
||||
rm "$tmp"
|
||||
if [ -z "$result" ]; then
|
||||
verbose "handshake failed, no ciphersuite was returned"
|
||||
result='ConnectionFailure'
|
||||
return 2
|
||||
elif [ "$result" == '(NONE) ' ]; then
|
||||
elif [ "$result" == '(NONE) ' ]; then
|
||||
verbose "handshake failed, server returned ciphersuite '$result'"
|
||||
return 1
|
||||
else
|
||||
@ -121,9 +121,9 @@ for cipher in "${cipherspref[@]}"; do
|
||||
done
|
||||
|
||||
if [ $DOBENCHMARK -eq 1 ]; then
|
||||
header="prio ciphersuite protocol avg_handshake_microsec"
|
||||
header="prio ciphersuite protocol pfs_keysize avg_handshake_microsec"
|
||||
else
|
||||
header="prio ciphersuite protocol"
|
||||
header="prio ciphersuite protocol pfs_keysize"
|
||||
fi
|
||||
ctr=0
|
||||
for result in "${results[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user