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
|
2023-11-02 19:29:07 -04:00
|
|
|
sanity=facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd
|
2018-07-17 02:37:13 -04:00
|
|
|
|
2021-07-21 19:51:50 -04:00
|
|
|
(
|
|
|
|
echo "# Onion Certificate Transparency Log"
|
|
|
|
echo "## This file is auto-generated (without editorial assistance) from CA certificate issuance logs"
|
|
|
|
./onion-ctlog.py
|
|
|
|
) > $tf
|
|
|
|
|
|
|
|
#curl "https://crt.sh/?q=\.onion" |
|
|
|
|
# perl -nle 'next unless m!TD.*\.onion\b!; s!\s+!\n!go; s!</?TD>!\n!goi; s!<BR>!\n!goi; print' |
|
|
|
|
# egrep '[2-7a-z]{56}\.onion$' |
|
|
|
|
# sort -u |
|
|
|
|
# awk -F. '{print $(NF-1), $0}' |
|
|
|
|
# sort |
|
|
|
|
# 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
|