'sslchecker' ändern

Add options for:
-c for check website ciphers with nmap
-u update sslchecker with curl (download raw file from git and put it into path)
-v show versions number
This commit is contained in:
Kaisa Marysia 2020-05-07 09:01:29 +02:00
parent 6cb08bef31
commit 2eef05814b

View file

@ -7,6 +7,9 @@ Options:
-f local file
-h remote host
-p custome port
-c list ciphers
-u update sslchecker
-v show version
Exaple:
sslchecker -h letsencrypt.org
@ -30,6 +33,11 @@ while [ "$1" ]; do
shift
port="$1"
;;
-c)
shift
host="$1"
source="cipher"
;;
-u)
shift
source="update"
@ -109,3 +117,11 @@ fi
if [ "$source" == "version" ]; then
echo "Version 2020-05-07"
fi
if [ "$source" == "cipher" ]; then
if [ -z "$port" ]; then
port="443"
fi
nmap --script ssl-enum-ciphers -p $port $host
fi