Skip to main content

A Python client for the crt.sh website to retrieve subdomains information.

Project description

CertSPY - A Crt.sh Python Client

CertSPY is a Python client for interfacing with the crt.sh website, allowing users to retrieve information on subdomains from SSL certificate transparency logs.

Certificate Transparency (CT) is an open framework aimed at improving the safety of SSL/TLS certificates by creating an open and auditable log of all certificates issued by certificate authorities. It allows for the detection of mistakenly or maliciously issued certificates. In the context of reconnaissance (recon), cybersecurity experts and ethical hackers can utilize CT logs as a rich source of information for mapping the internet landscape. They can extract data about the existence of subdomains of a target domain, revealing potential targets for further investigation or penetration testing. This kind of intel can be vital in identifying vulnerable endpoints, tracking the issuance of new certificates, and generally maintaining a strong security posture against potential cyber threats. The tool crafted in the script leverages CT logs accessible through the crt.sh platform to facilitate such recon efforts, aiding in the timely identification of potential security vulnerabilities.

Features

  • Query subdomain information from crt.sh.
  • Support for wildcard and expired certificate queries.
  • Command-line interface for easy usage.

Installation

You can clone the repository to your local machine using the following command:

git clone https://github.com/santosomar/certspy.git

Dependencies

  • Python 3.x
  • requests library

You can install the necessary Python packages using the following command:

pip install -r requirements.txt

Usage

You can use the client from the command line with the following syntax:

python crtsh_client.py secretcorp.org

This will query the crt.sh website for subdomains of secretcorp.org and pretty print the JSON output to the console.

$ python3 certspy.py -h
usage: certspy.py [-h] domain

    CertSPY: A Python client for the crt.sh website to retrieve subdomains information.
    Author: Omar Santos (@santosomar). 

positional arguments:
  domain      The domain to search for (e.g., websploit.org).

options:
  -h, --help  show this help message and exit

Contribution

Feel free to fork the repository and submit pull requests. For bug reports and feature requests, please create an issue in the GitHub issue tracker.

License

See LICENSE for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certspy-0.4.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

certspy-0.4.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file certspy-0.4.0.tar.gz.

File metadata

  • Download URL: certspy-0.4.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for certspy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 862c5f8537e3e31e841f60e6c1ea7277477653307d76c7a5347c5624163fcd63
MD5 4330d15240fc5fca639b8a7541b6fbc7
BLAKE2b-256 f760a194405ba15808335e2c12c0434244e2939ad9416d6c8bdaf852107e97fa

See more details on using hashes here.

File details

Details for the file certspy-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: certspy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for certspy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3aef3a9b9e7eadb12ee85a2a8a614af91c859794a10a9380ee3790b20b1efa
MD5 6bb7e2579c728d781ba98fc7d5c75950
BLAKE2b-256 566d323afc6da3ac8f12ff8f617e70ac78b5acd9eb84a0d232c02b9b86616407

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page