Skip to content

Instantly share code, notes, and snippets.

@nikallass
Last active October 14, 2021 21:47
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nikallass/598a70279b09d32476298be2ef495ef8 to your computer and use it in GitHub Desktop.
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.
#!/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
@nikallass
Copy link
Author

nikallass commented Mar 21, 2018

Certificate Transparency search tool. It uses https://crt.sh/ to query domain name.

@nikallass
Copy link
Author

crt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment