New Security Researchers Join 10.8K+ verified researchers โ€” submit your profile for review Submit profile โ†’
SecurityCipher
Home Blog Labs Checklists Writeups

Learn Roadmaps, courses & vulnerability guides

  • ๐Ÿ—บ๏ธ Penetration Testing Roadmap Structured offensive security path
  • ๐ŸŽ“ Free Security Courses Verified courses and coupon drops
  • ๐ŸŽฏ Penetration Testing Tricks Field notes & real bypasses
  • ๐Ÿ“„ Secure Code Explain Vulnerable vs secure code comparison
  • ๐Ÿ“– Vulnerability Explain Root causes, PoCs, and remediation
  • ๐Ÿš€ Start Here Beginner walkthrough of all resources

Practice Hands-on browser labs, games & SOC simulator

  • ๐Ÿ”ฌ Interactive Labs SQL injection, AI, AWS cloud review
  • ๐ŸŽฎ Security Games Phishing, JWT, WAF, and more
  • ๐Ÿ›ก๏ธ Shift Zero SOC desk: phish, OTP, malware, tickets
  • ๐Ÿš— On-Call Drive Neon-city arcade security missions
  • โ“ Application Security Quiz Web, secure coding, and cloud quizzes
  • โšก Threat Explorer Interactive AI & vuln attack flows

Checklists & Tools 1,760+ testing controls, utilities & standards

  • โœ… Security Checklists Hub Web, cloud, mobile, API, and infra
  • ๐Ÿ› ๏ธ Security Tools Curated recon, SAST, and bounty tools
  • ๐Ÿ“‹ Writeup Checklists Methodologies derived from real writeups
  • ๐Ÿค– OWASP LLM Top 10 Interactive risk matrix for AI apps
  • ๐Ÿ”Ž CVE Lookup Multi-source CVE search & threat intel
  • ๐Ÿ“˜ Payload Field Manual Safe-first probes, signals, and cheats

Career & Community Live scopes, verified researchers & jobs

  • ๐Ÿ’ฐ Bug Bounty Programs Searchable directory of active scopes
  • ๐Ÿ’ผ Cybersecurity Jobs Verified roles from company career sites
  • ๐Ÿง‘โ€๐Ÿ’ป Security Researchers Community profiles and submissions
  • ๐ŸŽค Security Conferences Upcoming global infosec events
  • ๐Ÿงฎ CVSS Severity Calculator Accurate CVSS 3.1 & 4.0 calculator
  • ๐Ÿงญ Career Roadmaps AppSec, Cloud, and SOC career paths
Browse All Resources 1,760+ Checklists โ€ข 18K+ Writeups โ€ข 15+ Interactive Labs Freelance Security โ†’
About
Freelance SecurityFreelance
← Security Tools View on GitHub

knockpy

Python tool to enumerate subdomains on a target domain through a wordlist and passive sources.

๐Ÿ” Knockpy Subdomain Scan v9.0

โœ… Fast & Async โ€ข ๐Ÿ” Recon + Brute โ€ข ๐Ÿ”ง Easy to Extend

KnockPy is a modular Python 3 tool to enumerate subdomains via passive reconnaissance and bruteforce, now with async/await support, enhanced performance, and modern HTTP/TLS handling.


๐Ÿš€ Features (v9)

  • โœ… Async scanning with httpx and DNS resolution
  • โœ… Modular: plug new passive sources easily
  • ๐Ÿ” Supports passive recon, bruteforce, or both
  • ๐ŸŽจ Formatted terminal output with Rich (tables, progress, panels)
  • ๐Ÿ“œ Validates HTTP/HTTPS status, TLS cert, and IP
  • โš ๏ธ Detects legacy TLS support (TLS 1.0/1.1) as warning in CLI/verbose/HTML report
  • ๐Ÿงพ Checks AXFR (zone transfer) on root domain during domain-mode scans
  • ๐Ÿ”Ž --verbose single-domain diagnostics (DNS/TCP/TLS/redirect chains/request errors + security checks)
  • ๐Ÿ’ก Supports wildcard DNS detection
  • ๐Ÿงช SQLite reports with interactive catalog (show/delete/export/search)
  • ๐Ÿ” Supports VirusTotal and Shodan API
  • ๐Ÿš€ Optimized bruteforce runtime with TLS-probe endpoint caching (no timeout changes required)

๐Ÿ“ฆ Installation

From GitHub source (recommended)

git clone https://github.com/guelfoweb/knockpy.git
cd knockpy
# recommended: install in a virtual environment
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -U pip
pip install .

# alternative: install for the current user (no venv)
# python3 -m pip install --user .

โš ๏ธ Recommended Python version: 3.9+

๐Ÿงฑ Project Structure

The codebase is organized by responsibility, with stable facades for backward compatibility:

knockpy/
  cli.py                   # CLI entrypoint (facade/orchestration)
  cli_parts/
    status.py              # runtime/status panel rendering
    setup.py               # interactive setup and persisted runtime defaults
    report.py              # interactive report mode
    scan_flow.py           # exclude rules, recon-test, wildcard helpers
  core.py                  # public core facade (compatibility)
  engine/
    runtime.py             # scanning engine implementation
  storage.py               # public storage facade (compatibility)
  storage_parts/
    db.py                  # SQLite persistence/settings
    export.py              # report export orchestration
    html_report.py         # HTML report rendering
  output.py                # terminal output rendering
  server_versions.py       # web-server versions catalog
  knockpy.py               # compatibility module exports

Compatibility note:

  • Preferred external imports: import knockpy or from knockpy import KNOCKPY.
  • Internal modules are split into engine/, cli_parts/, and storage_parts/.

Using pip

Only after the stable version is released on GitHub

pip install knock-subdomains

๐Ÿงช Usage

knockpy -d domain.com [options]

Options

FlagDescription
-d, --domainTarget domain (or stdin if used without value)
-f, --fileFile with list of domains
--reconEnable passive reconnaissance
--bruteforce, --bruteEnable bruteforce using wordlist
--exclude TYPE VALUEExclude matches (status, length/lenght, body)
--verboseDeep diagnostics for single-domain scans only
--wildcardTest wildcard DNS and exit
--testWith --recon, test each recon source (failed/empty/data)
--setupInteractive setup (runtime defaults + API keys in DB)
--update-versionsUpdate local latest web-server versions catalog
--report [ID|latest|list]Report mode (interactive show/delete/export/search/reset db, export HTML)
--check-updateCheck online if a newer Knockpy release is available on PyPI
--wordlistRuntime override for wordlist
--dnsRuntime override for DNS resolver
--useragentRuntime override for HTTP user-agent
--timeoutRuntime override for timeout (seconds)
--threadsRuntime override for concurrent workers
--silentHide progress bar
--jsonJSON-only output (forces --silent)
--statusPrint runtime status and continue
-h, --helpShow help message

Performance Tuning: --threads and --timeout

These two options have the biggest impact on runtime for large scans.

  • --threads controls concurrency (how many targets are processed in parallel)
  • --timeout controls how long each network step waits before giving up

Trade-off:

  • higher threads = faster scans, but more load on CPU/network/DNS and higher risk of remote rate-limits
  • lower timeout = faster scans, but higher risk of missing slow yet valid targets (false negatives)

Recommended profiles:

  • small/accurate scan (few domains): --threads 50 --timeout 5
  • balanced scan: --threads 150 --timeout 4
  • large scan (10k+ domains): start with --threads 250 --timeout 3

If you need both speed and completeness on very large lists, use 2-pass strategy:

  1. fast pass: --threads 250 --timeout 3
  2. retry pass only on missing/uncertain targets: --threads 80 --timeout 5 (or higher)

Notes:

  • CLI values always override saved setup values
  • saved setup values (--setup) override built-in defaults
  • current built-in defaults are threads=250, timeout=3

๐Ÿ“Œ Examples

๐Ÿ”Ž Recon + Brute

knockpy -d example.com --recon --bruteforce

๐Ÿงช Recon services test

knockpy -d example.com --recon --test

๐Ÿ”„ Update web-server latest versions catalog

knockpy --update-versions

๐Ÿ†• Check for Knockpy updates

knockpy --check-update

โš™๏ธ Recon sources config (editable)

At first run, KnockPy creates:

~/.knockpy/recon_services.json

You can add/disable sources by editing the services array. You can also point to a custom file path without changing code:

export KNOCK_RECON_SERVICES=/path/to/recon_services.json

Each service supports:

  • name
  • enabled (true/false)
  • parser
  • url_template (supports {domain}, {virustotal_key}, {shodan_key})
  • requires_api (virustotal or shodan, optional)

Supported parsers:

  • csv_first_column
  • rapiddns_html_td
  • json_list
  • virustotal_subdomains
  • shodan_subdomains

๐Ÿ“ฅ Domain from stdin

echo "example.com" | knockpy -d

๐Ÿง  API Keys (optional)

export API_KEY_VIRUSTOTAL=your-virustotal-api-key
export API_KEY_SHODAN=your-shodan-api-key

You can use .env file:

API_KEY_VIRUSTOTAL=your-virustotal-api-key
API_KEY_SHODAN=your-shodan-api-key

๐Ÿ’พ Reports (SQLite + Interactive HTML export)

knockpy -d example.com --recon --bruteforce
knockpy --report list
knockpy --report latest
knockpy --report

Interactive report menu:

  • 1 show
  • 2 delete
  • 3 export
  • 4 search
  • 0 reset db (asks explicit confirmation)

Exit report mode:

  • press Enter on empty action prompt
  • or press CTRL+C

๐Ÿ” Single-domain diagnostics

knockpy -d forum.example.com --verbose

๐Ÿงช Wildcard test only

knockpy -d example.com --wildcard

๐Ÿงฌ Python API Usage

KnockPy can be used as a Python module:

import knockpy

result = knockpy.KNOCKPY("example.com", timeout=5.0, threads=20)
print(result["domain"], result["ip"])

or:

from knockpy import KNOCKPY

domain = 'example.com'

results = KNOCKPY(
    domain,
    dns="8.8.8.8",
    useragent="Mozilla/5.0",
    timeout=5,
    threads=10,
    recon=True,
    bruteforce=True,
    wordlist=None,
    silent=False
)

for entry in results:
    print(entry['domain'], entry['ip'], entry['http'], entry['cert'])

๐Ÿ“‚ Wordlist

A default wordlist is included in knockpy/wordlist/wordlist.txt. You can supply your own with --wordlist.

Test

python3 -m pytest

# (optional) smoke-run example script
python3 examples/poc.py

๐Ÿ“– License

Licensed under the GPLv3 license.

Gianni Amato (@guelfoweb)

Press Escape to close the search panel.

Donate

Buy me a Coffee

Penetration Testing Services

penetration Testing Services

Web Application Security Quiz

Web Application Security Quiz

Daily Bug Bounty Writeups - Twitter

Daily Bug Bounty Writeups

Download our Latest Android Application

Guide for Penetration Testing

Daily Bug Bounty Writeups - Telegram

Daily Bug Bounty Writeups

Author

Piyush
Senior Product Security Engineer

Ethical Hacker || Penetration Tester || Gamer || Blogger || Product Security Engineer || AI Security

READ ARTICLE

Donate

Buy me a Coffee

Recent Posts

  • Inside Java2Shell (CVE-2026-114938)
    Inside Java2Shell (CVE-2026-114938)
    November 18, 2026/
    0 Comments
  • Why GTA 5 Was a Hacker’s Playground โ€” And The Exact Security Architecture GTA 6 Needs
    Why GTA 5 Was a Hacker’s Playground โ€” And The Exact Security Architecture GTA 6 Needs
    November 18, 2026/
    0 Comments
  • Securing the AI Supply Chain: A Hands-On AI-BOM Playbook for Pickle RCE, Poisoned Datasets, and CI Gates
    Securing the AI Supply Chain: A Hands-On AI-BOM Playbook for Pickle RCE, Poisoned Datasets, and CI Gates
    November 17, 2026/
    0 Comments

Follow Us

SECURITY DISPATCH

Subscribe to SecurityCipher

Get the latest bug bounty writeups, offensive security tooling, and zero-day analyses delivered to your inbox.

Subscription Form

SecurityCipher

Practical security guides, vulnerability deep-dives, and hands-on resources for bug bounty hunters and penetration testers.

Useful Links

  • Security Checklists
  • Cybersecurity Jobs
  • Blogs
  • Docs
  • About
  • Contact

Free Resources

  • Interactive Security Labs
  • Security Tools Directory
  • Pentest Roadmap
  • OWASP LLM Top 10
  • Bug Bounty Writeups
  • Bug Bounty Programs
ยฉ 2026 Security Cipher. All rights reserved. Privacy Policy ยท Terms & Conditions ยท DMCA ยท
PRIVACY & DATA CONTROLS

Privacy & Cookie Preferences

We use essential cookies to maintain secure sessions and analyze anonymized telemetry to optimize our research and interactive labs.

Manage anytime via our Privacy Policy or footer settings.

Security Researchers
Security Researchers
OPEN DIRECTORY Verified Network

Are you a security researcher or bug hunter?

Join our open directory of verified pentesters, showcase your achievements, and get recognized!

Submit Researcher Profile โ†’