How morning3tar/tpcsa works
Project type and purpose
• This is a terminal-based, open-source Python tool whose primary role is to scan one or more hosts over TLS, extract and analyze their X.509 certificates and TLS configurations, run security checks, and finally render results to the console or export them in various formats.
File structure
Top-level items:
• main.py – entry point, CLI parsing and orchestration
• scanner.py – core scanning & analysis logic
• targets.txt – example input file for bulk scans
• results.html – sample output in HTML
• requirements.txt – third-party dependencies
• README.md/.gitignore/LICENSE – project metadata
There are no subdirectories; the code lives in two main modules:
• main.py (CLI interface, argument parsing, mode switching)
• scanner.py (network I/O, certificate retrieval, analysis, report generation)
Insights from the README
• Uses Python 3.7+ and a small ecosystem of SSL/TLS and reporting libraries.
• Features a menu-driven interactive mode or full CLI mode.
• Supports exporting to CSV, JSON, HTML, Markdown.
• Performs certificate detail extraction, TLS protocol/cipher enumeration, security checks (expiration, weak algorithms, HSTS/HPKP) and renders colorized tables.
Detailed capture
• Export formats as forks from the Report Generator.