8000 GitHub - kdairatchi/enumrust: Subdomain Enumerator and Simple Crawler
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kdairatchi/enumrust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Subdomain Enumerator and Simple Crawler

A comprehensive Rust-based tool to:

  • 🕵️‍♂️ Enumerate subdomains with haktrails

  • 🔐 Augment with TLS certificate SANs via tlsx

  • 🌐 Resolve to IPs using dnsx

  • Perform fast port scanning with masscan and validate via httpx

  • 🕸️ Crawl live hosts to extract:

    • 🪣 S3 bucket URLs
    • 🔗 In-scope links (including HTML comments)
    • 🔒 Hidden form parameters
    • 🔍 Additional parameters via hakrawler

🎯 Features

  1. 🚀 Subdomain Enumeration: haktrails + anew for deduplication

  2. 🧾 Certificate SAN Extraction: tlsx -json -silent + jq

  3. 🌐 DNS Resolution: dnsx -a -resp-only -silent

  4. 🔎 Port Scanning: masscan (1–65535, 10kpps)

  5. 🔍 Port Validation: httpx -silent

  6. 🕸️ Web Crawling:

    • 🔍 Extract S3 buckets via regex
    • 🔗 Grab <a> links & HTML comments
    • 🔒 Find hidden form inputs
    • 🏹 Use hakrawler for parameter enumeration

🛠️ Installation

Ensure the following tools are in your $PATH:

Rust, haktrails, tlsx, jq, dnsx, masscan, httpx, hakrawler

🔧 Rust and Dependencies

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Clone repository
git clone https://github.com/KingOfBugbounty/enumrust.git
cd enumrust

# Build binary
cargo build --release

⚙️ External Tools

Below are commands to install dependencies on macOS 🍎 (Homebrew) and Debian/Ubuntu 🐧:

# 🛠️ haktrails (ProjectDiscovery)
# macOS 🍎
brew install projectdiscovery/tap/haktrails
# Debian/Ubuntu 🐧
sudo apt-get update && sudo apt-get install -y haktrails

# 🔒 tlsx (ProjectDiscovery)
go install github.com/projectdiscovery/tlsx/cmd/tlsx@latest

# 🛠️ jq (JSON processor)
# macOS 🍎
brew install jq
# Debian/Ubuntu 🐧
sudo apt-get install -y jq

# 🌐 dnsx (ProjectDiscovery)
go install github.com/projectdiscovery/dnsx/cmd/dnsx@latest

# ⚡ masscan (fast port scanner)
# macOS 🍎
brew install masscan
# Debian/Ubuntu 🐧
sudo apt-get install -y masscan

# 🔍 httpx (ProjectDiscovery)
go install github.com/projectdiscovery/httpx/cmd/httpx@latest

# 🕵️ hakrawler (Hakluke)
go install github.com/hakluke/hakrawler@latest

🚀 Usage

./target/release/enumrust --domain example.com

This generates a folder example.com with:

File Description
subdomains.txt Enumerated and SAN-derived subdomains
ips.txt Resolved A records
masscan.txt Raw masscan output
ports.txt Validated open HTTP(S) ports
http200.txt Alive hosts via httpx
s3.txt Discovered S3 buckets
urls.txt Extracted URLs
hiddenparams.txt Generated hidden-input test URLs
params.txt Additional parameterized URLs via hakrawler

🙏 Acknowledgements


📄 License

MIT License. See LICENSE for details.

About

Subdomain Enumerator and Simple Crawler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0