RepositoryRustTRTürkiye
eredotpkfr

eredotpkfr/subscan

⚡ A subdomain enumeration tool leveraging diverse techniques, designed for advanced pentesting operations

55stars
2forks
8issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: subdomain-enumeration

#1 Repository of the month

1
TINIX TRENDING·Topic: searchengines

#1 Repository of the month

1
TINIX TRENDING·Topic: pentesting-tool

#1 Repository of the month

Subscan Logo


Install • Usage • Doc • Book • Docker • Development


Subscan is a powerful subdomain enumeration tool built with Rust, specifically designed for penetration testing purposes. It combines various discovery techniques into a single, lightweight binary, making subdomain hunting easier and faster for security researchers

Features

  • 🕵️ Smart Discovery Tricks
    • Use multiple search engines (Google, Yahoo, Bing, DuckDuckGo, etc.)
    • Integrate with APIs like Shodan, Censys, VirusTotal and more
    • Perform zone transfer checks
    • Subdomain brute-forcing with optimized wordlists
  • 🔍 Resolve IP addresses for all subdomains
  • 📎 Export reports in CSV, HTML, JSON, or TXT formats
  • 🛠️ Configurable
    • Customize HTTP requests (user-agent, timeout, etc.)
    • Rotate requests via proxies (--proxy argument)
    • Fine-tune IP resolver with --resolver arguments
    • Filter and run specific modules with --skips and --modules
  • 🐳 Docker Friendly
    • Native support for amd64 and arm64 Linux platforms
    • A tiny container that won't eat up your storage — under 1GB and ready to roll 🚀
  • 💻 Compatible with multiple platforms and easy to install as a single binary

Install

🦀 Install the subscan tool using Cargo, Rust's package manager. Make sure you have Rust installed on your system. Then, run

~$ cargo install subscan

Usage

✨ Here's a quick overview of how to use it

~$ subscan
            _
           | |
  ___ _   _| |__  ___  ___ __ _ _ __
 / __| | | | '_ \/ __|/ __/ _` | '_ \
 \__ \ |_| | |_) \__ \ (_| (_| | | | |
 |___/\__,_|_.__/|___/\___\__,_|_| |_|


Usage: subscan [OPTIONS] <COMMAND>

Commands:
  scan    Start scan on any domain address
  brute   Start brute force attack with a given wordlist
  module  Subcommand to manage implemented modules
  help    Print this message or the help of the given subcommand(s)

Options:
  -v, --verbose...  Increase logging verbosity
  -q, --quiet...    Decrease logging verbosity
  -h, --help        Print help (see more with '--help')
  -V, --version     Print version

Start Scan

To scan a domain using all available modules, use the following command

~$ subscan scan -d example.com

You can also choose specific modules to run or skip using the --skips and --modules arguments. Module names should be provided as a comma-separated list

~$ # skip the commoncrawl and google modules during the scan
~$ subscan scan -d example.com --skips=commoncrawl,google
~$ # run only the virustotal module
~$ subscan scan -d example.com --modules=virustotal

[!NOTE] If a module is included in both the --skips and --modules arguments, it will be skipped and not executed

Brute Force

Use the brute command to start a brute force attack with a specific wordlist

~$ subscan brute -d example.com --wordlist file.txt

Environments

All environments are managed by the .env file. Subscan can read your environments from this .env file. You can refer to the .env.template file to see how to create them

[!TIP] Also you can specify your environments from shell

SUBSCAN_VIRUSTOTAL_APIKEY=foo subscan scan -d foo.com --modules=virustotal
NameRequiredDescription
SUBSCAN_CHROME_PATHfalseSpecify your Chrome executable. If not specified, the Chrome binary will be fetched automatically by headless_chrome based on your system architecture
SUBSCAN_<MODULE_NAME>_HOST falseSome API integration modules can provide user specific host, for these cases, set module specific host
SUBSCAN_<MODULE_NAME>_APIKEY falseSome modules may include API integration and require an API key for authentication. Set the API key in these cases
SUBSCAN_<MODULE_NAME>_USERNAME falseSet the username for a module if it uses HTTP basic authentication
SUBSCAN_<MODULE_NAME>_PASSWORD falseSet the password for a module if it uses HTTP basic authentication

Docker

🐳 For containerized usage, you can pull the eredotpkfr/subscan Docker image directly from Docker Hub

~$ docker pull eredotpkfr/subscan:latest

After pulling the pre-built image, you can easily run the container to perform subdomain enumeration

~$ docker run -it --rm eredotpkfr/subscan scan -d example.com

Specify environment variable via docker --env

~$ docker run -it --rm \
    --env SUBSCAN_VIRUSTOTAL_APIKEY=foo \
    eredotpkfr/subscan scan -d example.com --modules=virustotal

Saving output reports to host machine, use /data folder

~$ docker run -it --rm \
    --volume="$PWD/data:/data" \
    eredotpkfr/subscan scan -d example.com

To specify wordlist into docker container, use /data folder

~$ docker run -it --rm \
    --volume="$PWD/wordlist.txt:/data/wordlist.txt" \
    eredotpkfr/subscan brute -d example.com \
    -w wordlist.txt --print

Development

📚 You can find all the resources and documentation for developing Subscan in the Development chapter of the project's book page

Credits

🙏 Parts of the codebase are inspired by

  • subfinder - Fast passive subdomain enumeration tool
  • Sublist3r - Fast subdomains enumeration tool for penetration testers
  • subbrute - A DNS meta-query spider that enumerates DNS records, and subdomains
  • knock - Knock subdomain scan
  • dnsrecon - DNS enumeration script

Contributing

📢 All contributors are welcome! Whether you're fixing bugs, adding new features, improving documentation, or sharing ideas, your contributions are highly valued and appreciated

To get started, please check out the CONTRIBUTING.md file

Buy Me A Coffee

Contact

Blog - erdoganyoksul.com
Mail - erdoganyoksul3@gmail.com

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
shmilylty/OneForAll

OneForAll是一款功能强大的子域收集工具

10.2k
Nov 2, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
HelixDB/helix-db

HelixDB is an OLTP graph database with native vector and full-text search built in Rust on Object Storage.

6.3k
Nov 28, 2026
RepositoryRust
poem-web/poem

A full-featured and easy-to-use web framework with the Rust programming language.

4.5k
Nov 20, 2026
RepositoryRust
async-graphql/async-graphql

A GraphQL server library implemented in Rust

3.7k
Apr 21, 2026
RepositoryRust
veeso/termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB/WebDAV

3.2k
Nov 28, 2026
RepositoryTypeScript
toeverything/AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

81.6k
Dec 2, 2026
RepositoryShell
samsesh/SocialBox-Termux

SocialBox is a Bruteforce Attack Framework [ Facebook , Gmail , Instagram ,Twitter ] , Coded By Belahsan Ouerghi Edit By samsesh for termux on android

4.7k
Jun 19, 2026