Last active
July 24, 2023 08:42
-
-
Save indy-singh/11c85ec7658c0f8f9e667cfc68e7a2d1 to your computer and use it in GitHub Desktop.
Challenge from https://twitter.com/troyhunt/status/1682982538409828354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl.exe -LORJ https://haveibeenpwned.com/api/v3/breaches | |
jq.exe .[] breaches | jq.exe -r .Domain | sort.exe | uniq.exe | awk.exe 'NF' | awk.exe '$0=$0"/.well-known/security.txt"' > urls.txt | |
xargs -n 1 curl.exe --location --head --max-time 1 -w "%%{http_code} %%{content_type} %%{url}\n" -o NUL -s < urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you append
| grep 200 | grep -v -e "html"
:-