Skip to content

Instantly share code, notes, and snippets.

@fb11
Created September 16, 2019 07:32
Show Gist options
  • Save fb11/113e55b16e3f01bdd9eba273b5536d3f to your computer and use it in GitHub Desktop.
Save fb11/113e55b16e3f01bdd9eba273b5536d3f to your computer and use it in GitHub Desktop.
crt.sh
#!/bin/bash
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