2018-07-17 02:37:13 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-06-01 16:46:41 -04:00
|
|
|
log=ct-log.md
|
2018-09-03 02:49:40 -04:00
|
|
|
tf=/tmp/ctget$$.txt
|
2021-06-21 06:08:26 -04:00
|
|
|
sanity=amuffettdexn6r5s4lt45b6mlrgmsmo56szaaighyjurp4ccuj63zkad
|
2018-07-17 02:37:13 -04:00
|
|
|
|
2021-06-01 16:38:34 -04:00
|
|
|
curl "https://crt.sh/?q=\.onion" |
|
2020-02-04 02:25:55 -05:00
|
|
|
perl -nle 'next unless m!TD.*\.onion\b!; s!\s+!\n!go; s!</?TD>!\n!goi; s!<BR>!\n!goi; print' |
|
2021-06-01 16:22:26 -04:00
|
|
|
egrep '[2-7a-z]{56}\.onion$' |
|
2020-02-04 02:25:55 -05:00
|
|
|
sort -u |
|
2021-06-01 16:38:34 -04:00
|
|
|
awk -F. '{print $(NF-1), $0}' |
|
2020-02-04 02:25:55 -05:00
|
|
|
sort |
|
2021-06-01 17:23:30 -04:00
|
|
|
awk 'BEGIN {print "# Onion Certificate Transparency Log";print "## This file is auto-generated (without editorial assistance) from CA certificate issuance logs"} $2~/^\*/{print "* *wildcard* `" $2 "`"; next} {url = "https://" $2; printf("* [`%s`](%s)\n",url,url)}' >$tf
|
2018-09-03 02:49:40 -04:00
|
|
|
|
2021-06-21 06:08:26 -04:00
|
|
|
grep $sanity $tf &&
|
|
|
|
cp $tf $log &&
|
|
|
|
rm $tf
|
2018-07-17 02:37:13 -04:00
|
|
|
|
|
|
|
exit 0
|