Skip to content

Instantly share code, notes, and snippets.

@gitnepal
Last active January 22, 2021 22:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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
#!/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