Created
September 16, 2019 07:32
-
-
Save fb11/113e55b16e3f01bdd9eba273b5536d3f to your computer and use it in GitHub Desktop.
crt.sh
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 | |
| 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