'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:
parent
6cb08bef31
commit
2eef05814b
1 changed files with 16 additions and 0 deletions
16
sslchecker
16
sslchecker
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue