Last active
October 14, 2021 21:47
-
-
Save nikallass/598a70279b09d32476298be2ef495ef8 to your computer and use it in GitHub Desktop.
Certificate Transparency OSINT tool. It uses https://crt.sh/ to query domain name.
This file contains hidden or 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
#!/bin/bash | |
if [ "$1" == "-h" ] || [ "$1" == "--help" ] || [[ $# -eq 0 ]] | |
then | |
me=`basename "$0"` | |
echo "Find subdomains in certificate transparency log." | |
echo -e "Usage:\n\t./${me} [domain]" | |
echo -e "Example:\n\t./${me} example.com" | |
exit 1 | |
fi | |
curl https://crt.sh/\?q\=%25.$1 2>&1 | grep -i '<TD>' | grep -iv '<TD></TD>' | grep -iv '<TD><A' | grep -iPo '(?<=TD>).*?(?=<)' | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Certificate Transparency search tool. It uses https://crt.sh/ to query domain name.