
Pegue uma lista de domínios/subdomínios e teste por servidor http/https funcional.
FProbe - Sonda HTTP Rápida
GO111MODULE=on go get -u github.com/theblackturtle/fprobe
Status Code, Content Type, Location.Usage of fprobe:
-c int
Concurrency (default 50)
-cidr
Generate IP addresses from CIDR
-i string
Input file (default is stdin) (default "-")
-l Use ports in the same line (google.com,2087,2086)
-p value
add additional probe (proto:port)
-prefer-https
only try plain HTTP if HTTPS fails
-s skip the default probes (http:80 and https:443)
-t int
Timeout (seconds) (default 9)
-v Turn on verbose
Entrada por stdin
❯ cat domains.txt | fprobe
Entrada por arquivo
❯ fprobe -i domains.txt
❯ cat domains.txt | fprobe -c 200
Se você quiser usar portas especiais para cada domínio, pode usar a flag -l. Você pode analisar a saída do Nmap/Masscan e reformatá-la para usar esse recurso.
Entrada (domains.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 domains.txt | fprobe -l
❯ cat domains.txt | fprobe -t 10
❯ cat domains.txt | fprobe -p http:8080 -p https:8443
❯ echo 'https://google.com/path1?param=1' | fprobe
https://google.com/path1?param=1
❯ echo '192.168.1.1/24' | fprobe -cidr
❯ cat domains.txt | fprobe -p medium/large/xlarge
Se você não quiser verificar HTTP na porta 80 ou HTTPS na porta 443, pode usar a flag -s.
❯ cat domains.txt | fprobe -s
A saída verbose será formatada em JSON com alguns cabeçalhos adicionais, como Status Code, Content Type, Location.
❯ cat domains.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/"}
Esta ferramenta teve a ideia e algumas linhas de código do httprobe escrito por @tomnomnom.