Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status Code #29

Open
0xspade opened this issue Apr 26, 2020 · 2 comments
Open

Status Code #29

0xspade opened this issue Apr 26, 2020 · 2 comments

Comments

@0xspade
Copy link

0xspade commented Apr 26, 2020

httprobe with options whitelist status code
should be 200 only or like
cat domains.txt | httprobe -status-code 200
OR
cat domains.txt | httprobe -status-code 200,403,404

@adarshshetty18
Copy link

Hey @tomnomnom . I'd like this flag to be added too

@jsav0
Copy link

jsav0 commented Sep 19, 2020

@0xspade @adarshshetty18 @tomnomnom

You can check server response status codes with curl and filter with awk, sed, cut or whatever. There's really no need for golang. But to each their own of course.

cat targets.txt | curl --connect-timeout 3 -sLI -o /dev/null --write-out '%{http_code}\t%{url_effective}\n' < /dev/stdin

Parallelize it with xargs: (output shouldn't get mixed up with just HEAD requests..)

cat targets.txt | xargs -n1 -P5 curl --connect-timeout 3 -sLI -o /dev/null --write-out '%{http_code}\t%{url_effective}\n' < /dev/stdin

But if someone could still adapt this httprobe to filter status codes, that would be really great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants