-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtls.sh
37 lines (32 loc) · 909 Bytes
/
qtls.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Simple bash script para consultar los protolos y cifrados permitidos en un host remoto
Normal=$(echo 'printf' '\033[39m')
Verde=$(echo 'printf' '\033[32m')
Blanco=$(echo 'printf' '\033[0m')
$Verde
cat << "INFO"
_ _ _
| | | | | |
__ _| |_| |___ ___| |__
/ _` | __| / __| / __| '_ \
| (_| | |_| \__ \_\__ \ | | |
\__, |\__|_|___(_)___/_| |_| v.1.0
| |
|_|
INFO
$Blanco
echo " www.hackingyseguridad.com"
echo
$Blanco
if [ -z "$1" ]; then
echo "Consulta protocolos SSL/TLS y cifrados, permitidos"
echo "Uso: sh $0 <IP:443>"
exit 0
fi
echo
for v in ssl2 ssl3 tls1 tls1_1 tls1_2 tls1_3; do
for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do
openssl s_client -connect $1 \
-cipher $c -$v < /dev/null > /dev/null 2>&1 && echo "$v:\t$c"
done
done