
도메인 목록을 입력받아 작동 중인 HTTP 및 HTTPS 서버를 탐색합니다.
도메인 목록을 가져와서 동작하는 http 및 https 서버를 프로브합니다.
▶ go install github.com/tomnomnom/httprobe@latest
httprobe는 stdin에서 줄로 구분된 도메인을 입력받습니다:
▶ cat recon/example/domains.txt
example.com
example.edu
example.net
▶ cat recon/example/domains.txt | httprobe
http://example.com
http://example.net
http://example.edu
https://example.com
https://example.edu
https://example.net
기본적으로 httprobe는 80번 포트의 HTTP와 443번 포트의 HTTPS를 확인합니다. -p 플래그로 프로토콜과 포트 쌍을 지정하여 추가 프로브를 추가할 수 있습니다:
▶ cat domains.txt | httprobe -p http:81 -p https:8443
-c 플래그로 동시성 수준을 설정할 수 있습니다:
▶ cat domains.txt | httprobe -c 50
-t 플래그를 사용하고 밀리초 단위로 타임아웃을 지정하여 타임아웃을 변경할 수 있습니다:
▶ cat domains.txt | httprobe -t 20000
80번 포트의 HTTP 또는 443번 포트의 HTTPS를 프로브하고 싶지 않다면 -s 플래그를 사용할 수 있습니다. 원하는 프로브는 -p 플래그를 사용해 지정해야 합니다:
▶ cat domains.txt | httprobe -s -p https:8443
때로는 HTTPS가 동작한다면 HTTP를 확인할 필요가 없을 수 있습니다. --prefer-https 플래그로 이렇게 할 수 있습니다:
▶ cat domains.txt | httprobe --prefer-https
도커 컨테이너를 빌드합니다:
▶ docker build -t httprobe .
컨테이너를 실행할 때 파일 내용을 컨테이너 내부 프로세스의 stdin으로 전달합니다. -i는 stdin을 컨테이너와 httprobe 바이너리로 올바르게 매핑하는 데 필요합니다.
▶ cat domains.txt | docker run -i httprobe <args>