mirror of https://github.com/it-security-kassel-nordhessen/meetup.git

NuvandaPV
17.45.2019 1ce6925ee162829061437a355070bf7eb8aa23d6
Add Certificate Transparency
2 files added
29 ■■■■■ changed files
2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf 3 ●●●●● patch | view | raw | blame | history
2019_09_18_41st/Certificate Transparency/targetstream 26 ●●●●● patch | view | raw | blame | history
2019_09_18_41st/Certificate Transparency/Certificate Transparency.pdf
New file
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27d038866ed3d507db3dde3741b6ef13158ebf0ac4d8b507f77d77e49d0063c5
size 283779
2019_09_18_41st/Certificate Transparency/targetstream
New file
@@ -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!"