Skip to content

Instantly share code, notes, and snippets.

View bkrubnzi's full-sized avatar

Charles Peters bkrubnzi

View GitHub Profile
@joswr1ght
joswr1ght / extract-tlsscan-hostnames.py
Last active April 8, 2024 13:10
Extract TLS-Scan Hostnames from Certificate Records
#!/usr/bin/env python3
# Mark Baggett @MarkBaggett graciously wrote this script.
# Minor changes by Joshua Wright @joswr1ght.
# Use it to retrieve host name information from the JSON output of tls-scan
# (https://github.com/prbinu/tls-scan) in the subjectCN and subjectAltName
# fields.
import json
import re
import sys