Skip to main content

hackversity

A tiered, defensive & read-only recon / scanning toolkit for cybersecurity students, distributed as a single PyPI package named hackversity.

Only test systems you own or have explicit written permission to test.

Every tool is read-only. There is no exploit, payload, packet-spoofing, or injection code anywhere in this package — in any tier. Every scan/probe command requires an explicit target (there are no default targets and no bundled lists of real-world hosts) and prints the authorisation notice above before running.

Install

pip install hackversity

This installs two equivalent console commands: hackversity and the short alias hv.

Command tree

Commands are grouped by verb and tagged by difficulty tier.

Command Description Tier
hv scan port <target> Threaded TCP connect scan beginner
hv scan banner <target> Grab service banners beginner
hv scan async <target> asyncio connect scan (faster) intermediate
hv scan hosts <cidr> TCP-connect host discovery across a range intermediate
hv scan version <target> Banner-based service/version fingerprinting intermediate
hv find subdomain <domain> DNS brute force + crt.sh beginner
hv find emails <domain> Public-email OSINT (site + WHOIS + crt.sh) intermediate
hv find urls <domain> Historical URLs from the Wayback Machine intermediate
hv find dirs <url> Endpoint discovery (your wordlist) intermediate
hv find paths <url> robots.txt + sitemap.xml advertised paths intermediate
hv lookup whois <domain> WHOIS lookup beginner
hv lookup dns <domain> DNS records + SPF/DMARC/DKIM/CAA beginner
hv lookup ip <ip> Reverse DNS + RDAP + ASN (keyless) beginner
hv lookup shodan <ip> Read an IP's Shodan record (API key) intermediate
hv analyze headers <url> HTTP security-header scoring intermediate
hv analyze tech <url> Web technology fingerprinting intermediate
hv analyze waf <url> Passive WAF / CDN detection intermediate
hv analyze cors <url> CORS misconfiguration checks intermediate
hv analyze cookies <url> Cookie security (Secure/HttpOnly/SameSite) intermediate
hv analyze tls <host> TLS cert / cipher inspection (--grade for scoring) intermediate
hv analyze cve <svc> <ver> NVD CVE lookup (informational) intermediate
hv analyze vulns <scan.json> Cross-scan CVE correlation, severity-ranked advanced
hv analyze takeover <domain> Dangling-CNAME subdomain takeover check intermediate
hv analyze storage <name> Public cloud-storage bucket/container check intermediate
hv analyze pcap <file> Summarise a .pcap (+ JA3, DNS-tunnel/beacon heuristics) advanced
hv map topology <target> Traceroute + port aggregation advanced
hv report generate <dir> Merge JSON results into a report (Markdown/HTML/SARIF) advanced
hv scope init <file> Write a starter scope allowlist advanced
hv scope check <target> Check a target against a scope file advanced
hv run recon <domain> Full recon → enrich → correlate → report pipeline advanced

Run hv --help or hv <verb> --help for full help with examples on every command.

Scope enforcement (opt-in)

Point HACKVERSITY_SCOPE_FILE at an allowlist (hv scope init scope.txt) and every scan/probe command refuses targets outside it — a guardrail against accidentally testing something you're not authorised to touch:

hv scope init scope.txt        # edit it to list your authorised domains/CIDRs
export HACKVERSITY_SCOPE_FILE=scope.txt
hv scan port evil.com          # refused — not in scope.txt

With no scope file configured, every target is treated as in scope (unchanged behaviour) — enforcement is entirely opt-in.

Use as a Python library

Every tool is importable as a plain function:

from hackversity.tools.beginner import scan_ports, find_subdomains, whois_lookup

results = scan_ports("127.0.0.1", ports=[22, 80, 443])
open_ports = [r.port for r in results if r.is_open]

Development

pip install -e ".[test]"
pytest

License

MIT

Metadata

Release files for hackversity 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hackversity 0.0.3
File Size Uploaded Provenance
hackversity-0.0.3.tar.gz 81.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hackversity 0.0.3
File Interpreter ABI Platform
hackversity-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 176.1 kB

Release files / hackversity-0.0.3.tar.gz

Download URL hackversity-0.0.3.tar.gz
Size 81.9 kB
Tags Source
SHA-256 checksum
How to use checksums
45ba60dc9c97a0730350391096175e123541498dde68050ec4990ba5c8d7e29b
BLAKE2b-256 checksum
How to use checksums
eee1305940a54eec947100f7467cfd267f74aea3ba9ff3e30b04b22dc487e5c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / hackversity-0.0.3-py3-none-any.whl

Download URL hackversity-0.0.3-py3-none-any.whl
Size 94.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58178248c0340a72cd62c306fb1788c1fb7431b10a35eb9afc5fcfeb3717d0ff
BLAKE2b-256 checksum
How to use checksums
dff53d611a49fa4ed0c4afd98436b394713c4d62f2810a5c23fdac8805f1261e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for hackversity 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page