-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurlssl.sh
23 lines (23 loc) · 819 Bytes
/
curlssl.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Ver URL https SSL con curl
# https://linux.die.net/man/1/curl
# curl
# -k fuerza a SSL en modo inseguro
# -s --silent muestra en pantalla los datos solicitados
# -vvv Mostrar detalle en el resultado
# -3 sslv3
# -0 http 1.0
# curl --cacert my-ca.crt https://[my domain or IP address]
#
# Uso.: ./urlssl.sh "https://192.168.1.252:443/../../../../../../../etc/passwd"
#
#!/bin/bash
echo "Uso.: ./urlssl.sh https://url"
curl --cacert MyRootCA.crt -0 -3 -k -s -vvv \
-H "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0" \
-H "Accept: text/html, applicattion/xhtml+xml, application/xml;q=0.9,*/*;q=0.8" \
-H "Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3" \
-H "Accept-Encoding: gzip, deflate, br" \
-H "Connection: keep-alive" \
-H "Upgrade-Insecure-Requests: 1" \
"$1"