PYTHON / DNS, HTTP & TLS

ReconKit

Inspect DNS, HTTP and TLS in one report.

ReconKit is a small Python command-line tool for inspecting a hostname or HTTP/HTTPS URL. It resolves an IPv4 or IPv6 address, reads selected HTTP response metadata and inspects the verified TLS certificate for HTTPS targets. Results are available as a readable text report or JSON, while the target's scheme, custom port, path and query are preserved.

Runs on
Python 3.10+
Repository created
View source on GitHub
README local lab example
$ python3 main.py http://127.0.0.1:8000 --timeout 3
Target: http://127.0.0.1:8000/
IP: 127.0.0.1
HTTP:
  Status: 200
  Server: SimpleHTTP/0.6 Python/3.x
  Content Type: text/html; charset=utf-8
TLS:
  Skipped: plain HTTP target
Documented README command and typical sample output, not a live report. The server version may vary. Read the original example on GitHub, opens in a new tab.

What it does

  • Validate a hostname or HTTP/HTTPS URL and resolve an IPv4 or IPv6 address.
  • Preserve the URL scheme, custom port, path and query.
  • Report the HTTP status, server and content type without following redirects.
  • Inspect the TLS certificate issuer, expiration and negotiated TLS version with certificate validation enabled.
  • Choose a socket timeout and print text or JSON reports.

Run the local lab example

With Python 3.10 or newer, clone the repository and run python3 main.py --help from its root. For the example above, first start a local server in a separate terminal with python3 -m http.server 8000 --bind 127.0.0.1. Then run the displayed ReconKit command. The README also documents python3 -m reconkit http://127.0.0.1:8000 --json for a structured report. Plain HTTP targets skip TLS inspection; bare hostnames default to HTTPS on port 443.

Understand the report's scope

The report contains one resolved IP address and selected response headers. It does not assess vulnerabilities. HTTP metadata and TLS certificate details come from separate connections; HTTPS targets use the configured port for both. Redirect responses are reported without following them. The timeout applies to socket operations rather than a total deadline, and operating-system DNS resolution may take longer. Network errors appear in the relevant report sections. Invalid input and DNS failure exit with code 2.

Use the tool with systems you own or have permission to inspect, and interpret the response details in that system's context.

Inside the code

The reconkit package separates target parsing, DNS resolution, HTTP inspection, TLS inspection and report formatting into focused modules. cli.py connects those steps and exposes the timeout and JSON options. The repository includes tests for URL handling, a loopback HTTP server, redirects, report formatting and mocked DNS/TLS failures. It uses only the Python standard library, requires no pip packages and includes an MIT license on GitHub, opens in a new tab.