mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-22 14:23:41 +01:00
User larger list of cipher with COMPLEMENTOFALL
This commit is contained in:
parent
eaa586a1fa
commit
69087f27ac
@ -5,6 +5,7 @@ BENCHMARKITER=30
|
|||||||
OPENSSLBIN="./openssl"
|
OPENSSLBIN="./openssl"
|
||||||
#OPENSSLBIN="/usr/bin/openssl"
|
#OPENSSLBIN="/usr/bin/openssl"
|
||||||
TIMEOUT=10
|
TIMEOUT=10
|
||||||
|
CIPHERSUITE="ALL:COMPLEMENTOFALL"
|
||||||
REQUEST="GET / HTTP/1.1
|
REQUEST="GET / HTTP/1.1
|
||||||
Host: $TARGET
|
Host: $TARGET
|
||||||
|
|
||||||
@ -97,7 +98,7 @@ ALLCIPHERS=0
|
|||||||
if [ ! -z $2 ]; then
|
if [ ! -z $2 ]; then
|
||||||
if [ "$2" == "-v" ]; then
|
if [ "$2" == "-v" ]; then
|
||||||
VERBOSE=1
|
VERBOSE=1
|
||||||
echo "Loading $($OPENSSLBIN ciphers -v ALL 2>/dev/null|grep Kx|wc -l) ciphersuites from $(echo -n $($OPENSSLBIN version 2>/dev/null))"
|
echo "Loading $($OPENSSLBIN ciphers -v $CIPHERSUITE 2>/dev/null|grep Kx|wc -l) ciphersuites from $(echo -n $($OPENSSLBIN version 2>/dev/null))"
|
||||||
$OPENSSLBIN ciphers ALL 2>/dev/null
|
$OPENSSLBIN ciphers ALL 2>/dev/null
|
||||||
fi
|
fi
|
||||||
if [ "$2" == "-a" ]; then
|
if [ "$2" == "-a" ]; then
|
||||||
@ -107,7 +108,9 @@ fi
|
|||||||
|
|
||||||
cipherspref=();
|
cipherspref=();
|
||||||
results=()
|
results=()
|
||||||
get_cipher_pref "ALL"
|
|
||||||
|
# Call to the recursive loop that retrieves the cipher preferences
|
||||||
|
get_cipher_pref $CIPHERSUITE
|
||||||
ctr=1
|
ctr=1
|
||||||
for cipher in "${cipherspref[@]}"; do
|
for cipher in "${cipherspref[@]}"; do
|
||||||
pciph=$(echo $cipher|awk '{print $1}')
|
pciph=$(echo $cipher|awk '{print $1}')
|
||||||
|
Loading…
Reference in New Issue
Block a user