From 1ce6925ee162829061437a355070bf7eb8aa23d6 Mon Sep 17 00:00:00 2001
From: NuvandaPV <jp@hhmn.de>
Date: Thu, 17 Oct 2019 19:45:58 +0000
Subject: [PATCH] Add Certificate Transparency
---
2019_09_18_41st/Certificate Transparency/targetstream | 26 ++++++++++++++++++++++++++
2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf | 3 +++
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf b/2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf
new file mode 100644
index 0000000..e43817b
--- /dev/null
+++ b/2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:27d038866ed3d507db3dde3741b6ef13158ebf0ac4d8b507f77d77e49d0063c5
+size 283779
diff --git a/2019_09_18_41st/Certificate Transparency/targetstream b/2019_09_18_41st/Certificate Transparency/targetstream
new file mode 100755
index 0000000..c9c6c63
--- /dev/null
+++ b/2019_09_18_41st/Certificate Transparency/targetstream
@@ -0,0 +1,26 @@
+#!/usr/bin/env -S perl -wn
+# vim: set ft=perl
+
+#
+# Filter the certificate transparency stream for valid targets.
+#
+# This script will watch the certificate transparency stream for a list of
+# domain suffixes (passed on stdin or as a file name on the command line) and
+# output any newly certified domain that ends in one of the suffixes.
+#
+# Example:
+# $ cat targets.txt
+# .zendesk.com
+# .nflxvideo.net
+# .mydomain.foo
+# .anotherdomain.bar
+# $ targetstream targets.txt > results.txt
+#
+
+foreach my $i (@domain) { print "$1\n" if /(\S*\Q$i\E)\s*$/ }
+
+} INIT {
+
+chomp(@domain = <>);
+open STDIN, "certstream --disable-colors |" or die "Can't run certstream!"
+
--
Gitblit v1.10.0