Last active
January 22, 2021 22:10
Star
You must be signed in to star a gist
Bash Script to pull list of domains from http://crt.sh for automation and lazy recon @nahamsec / @gitnepal
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
#!/bin/bash | |
#Thanks @nahamsec tweets, @___0x00 | |
if [[ $# -eq 0 ]] ; | |
then | |
echo "Usage: ./crt.sh domainname" | |
exit 1 | |
else | |
curl 'https://crt.sh/?q=%.'$1'&output=json' | jq '.[] | {name_value}' | sed 's/\"//g' | sed 's/\*\.//g' | sort -u > $1.txt | |
cat $1.txt | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment