Takes a list of URLs and probes for given HTTP status.
▶ go get -u github.com/jansramek/statprobe
statprobe accepts line-delimited urls on stdin
and outputs matching urls to given -s
status
on stdout
:
▶ cat urls.txt | statprobe -s 403
http://example1.com
http://example2.com
https://example3.com
You can set the concurrency level by the -c
flag:
▶ cat urls.txt | statprobe -c 32
You can toggle debug mode for printing out filtered responses with -d
flag:
▶ cat urls.txt | statprobe -d
http://example1.com
[403] http://example2.com
http://example4.com
[301] https://example6.com
[error] "error message"