๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

lts-scan

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lts-scan

Lightweight TLS Scanner using SSL Labs API

0.1.5
PyPI
Maintainers
1

LTS scan

LTS scan is a command-line tool written in Python that leverages the Qualys SSL Labs API to scan and evaluate SSL/TLS configurations of websites.
It supports multiple hosts, retry logic, and output in CSV or JSON formats.

โœจ Features

  • Asynchronous scans using asyncio and aiohttp
  • Retry mechanism for API failures
  • Supports both CSV and JSON output
  • Automatically waits until scan status is READY or ERROR
  • Command-line options for customization
  • Clear and readable logs

๐Ÿš€ Installation

You can install lts-scan from PyPI using pip:

pip install lts-scan

Or from source we recommend using Poetry for managing dependencies and environments.

git clone https://github.com/alexandre-meline/LTS_scan.git
cd LTS_scan
poetry install

๐Ÿงช Usage

Create a hosts.txt file with one domain per line:

google.com
github.com
expired.badssl.com
lts-scan --input hosts.txt --output results.csv

Then run the tool:

lts-scan --input hosts.txt --output results.csv

You can customize the output format:

lts-scan --input hosts.txt --output results.json --format json

๐Ÿ”ง Command-line options

OptionDescriptionDefault
--inputPath to the input file containing hostsrequired
--outputPath to the output filerequired
--formatOutput format: csv or jsoncsv
--retriesNumber of retry attempts on request failure3
--delayDelay (in seconds) between retries10

๐Ÿ“„ Output Examples

CSV

host,status,startTime,testTime,ipAddress,grade
example.com,READY,1681234567890,1681237890123,93.184.216.34,A

JSON

[
  {
    "host": "example.com",
    "status": "READY",
    "startTime": 1681234567890,
    "testTime": 1681237890123,
    "endpoints": [
      {
        "ipAddress": "93.184.216.34",
        "grade": "A"
      }
    ]
  }
]

๐Ÿ“‹ License

This project is licensed under the MIT License.

๐Ÿ™Œ Acknowledgements

๐Ÿ’ก Future Improvements

  • Parallel host scanning
  • Export to HTML or PDF

๐Ÿค Contributions

Pull requests and suggestions are welcome! Please open an issue or submit a PR to help improve the tool.

Keywords

tls

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts