
Prendi una lista di domini/sottodomini e cerca server http/https funzionanti.
FProbe - Sonda HTTP Veloce
GO111MODULE=on go get -u github.com/theblackturtle/fprobe
Status Code, Content Type, Location.Usage of fprobe:
-c int
Concorrenza (default 50)
-cidr
Genera indirizzi IP da CIDR
-i string
File di input (default è stdin) (default "-")
-l Utilizza porte sulla stessa riga (google.com,2087,2086)
-p value
Aggiungi sonda aggiuntiva (proto:porta)
-prefer-https
Prova solo HTTP semplice se HTTPS fallisce
-s Salta le sonde predefinite (http:80 e https:443)
-t int
Timeout (secondi) (default 9)
-v Attiva l'output verboso
Input da stdin
❯ cat domini.txt | fprobe
Input da file
❯ fprobe -i domini.txt
❯ cat domini.txt | fprobe -c 200
Se vuoi utilizzare porte speciali per ogni dominio, puoi usare il flag -l. Puoi analizzare l'output di Nmap/Masscan e riformattarlo per usare questa funzionalità.
Input (domini.txt)
google.com,2087,2086,8880,2082,443,80,2052,2096,2083,8080,8443,2095,2053
yahoo.com,2087,2086,8880,2082,443,80,2052,2096,2083,8080,8443,2095,2053
sport.yahoo.com,2086,443,2096,2053,8080,2082,80,2083,8443,2052,2087,2095,8880
Comando
❯ cat domini.txt | fprobe -l
❯ cat domini.txt | fprobe -t 10
❯ cat domini.txt | fprobe -p http:8080 -p https:8443
❯ echo 'https://google.com/percorso1?parametro=1' | fprobe
https://google.com/percorso1?parametro=1
❯ echo '192.168.1.1/24' | fprobe -cidr
❯ cat domini.txt | fprobe -p medium/large/xlarge
Se non vuoi sondare HTTP sulla porta 80 o HTTPS sulla porta 443, puoi usare il flag -s.
❯ cat domini.txt | fprobe -s
L'output verboso sarà formattato in JSON con alcune intestazioni aggiuntive, come Status Code, Content Type, Location.
❯ cat domini.txt | fprobe -v
{"site":"http://google.com","status_code":301,"server":"gws","content_type":"text/html; charset=UTF-8","location":"http://www.google.com/"}
{"site":"https://google.com","status_code":301,"server":"gws","content_type":"text/html; charset=UTF-8","location":"https://www.google.com/"}
Questo strumento trae ispirazione e alcune righe di codice da httprobe scritto da @tomnomnom.