Last active
January 22, 2021 22:10
-
-
Save gitnepal/b772acff55e38d44f21e3754a9b74e92 to your computer and use it in GitHub Desktop.
Bash Script to pull list of domains from http://crt.sh for automation and lazy recon @nahamsec / @gitnepal
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 | |
#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