-
Notifications
You must be signed in to change notification settings - Fork 3
/
fuzzer.sh
52 lines (50 loc) · 1.89 KB
/
fuzzer.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# (c) hacking y seguridad .com 2022
cat << "INFO"
__ _ _ _
/ _| | | | | | |
| |_ _ _ ___________ _ __ | |__ | |_| |_ _ __ ___
| _| | | |_ /_ / _ \ '__| | '_ \| __| __| '_ \/ __|
| | | |_| |/ / / / __/ | | | | | |_| |_| |_) \__ \
|_| \__,_/___/___\___|_| |_| |_|\__|\__| .__/|___/ v 2.01
| |
http://www.hackingyseguridad.com |_|
INFO
if [ -z "$1" ]; then
echo
echo "Genera CA root y certificados para las peticiones https "
echo "Descubre ficheros en url de sitio web por HTTP/1.1 200\|HTTP/1.1 300\|HTTP/1.1 301\|HTTP/1.1 302 .. "
echo "Uso: $0 <https://dominio.com>"
echo "Tiempo estimado 1 hora ..."
exit 0
fi
echo
echo "Fuzzer de: " $1
echo
echo "Cod Significado"
echo "--- -----------"
echo "200 OK"
echo "301 Redireccion permamente"
echo "302 Redireccion temporal, encontrado "
echo "304 No modificado"
echo "400 Solicitud incorrecta"
echo "400 No autorizado"
echo "403 Prohibido"
echo "404 No encontrado"
echo "410 Ya no esta disponible"
echo "500 Error interno en el servidor"
echo
for n in `cat diccionario.txt`
do
fqdn=$1"/"$n
if timeout 1 curl --cacert MyRootCA.crt -k -s $fqdn -I --silent \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: es-ES,es;q=0.9,en;q=0.8' \ |grep "HTTP/1.1 100\|HTTP/1.1 200\|HTTP/1.1 300\|HTTP/1.1 301\|HTTP/1.1 302"
then echo $fqdn && echo
fi
done