sarellaarvind/subdomain-enumeration
GitHub: sarellaarvind/subdomain-enumeration
一款基于 Python 的子域名聚合枚举工具,一键调用多个主流子域名发现引擎并自动合并去重结果。
Stars: 0 | Forks: 0
# 🔍 高级子域名查找工具
一款强大的 Python 工具,使用多种枚举技术来发现子域名。



# 🔍 子域名查找工具
*一款使用 7 种以上枚举技术来发现子域名的 Python 工具。*
## 🚀 **功能特性**
- 自动检查已安装的工具(Sublist3r、Amass、Subfinder 等)
- 通过进度跟踪并行运行扫描
- 将去重后的结果保存在 `/results/` 目录中
- 彩色 CLI 界面
## ⚙️ **前置工具**
此脚本需要系统全局安装以下工具:
| 工具 | 安装命令 |
|------|----------------|
| Sublist3r | `git clone https://github.com/aboul3la/Sublist3r.git && cd Sublist3r && pip install -r requirements.txt` |
| Amass | `go install -v github.com/owasp/amass/v3/...@master` |
| Subfinder | `go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest` |
| AssetFinder | `go install -v github.com/tomnomnom/assetfinder@latest` |
| Findomain | `curl -LO https://github.com/Findomain/Findomain/releases/latest/download/findomain-linux && chmod +x findomain-linux && sudo mv findomain-linux /usr/local/bin` |
| Knockpy | `git clone https://github.com/guelfoweb/knock.git && cd knock && pip install -r requirements.txt` |
| MassDNS | `git clone https://github.com/blechschmidt/massdns.git && cd massdns && make && sudo cp bin/massdns /usr/local/bin` |
**验证安装:**
```
sublist3r --help
amass --help
subfinder --help
assetfinder --help
findomain --help
knockpy --help
massdns --help
🛠 Installation
Clone the repo:
git https://github.com/thotamurari/subdomain-finder.git
cd subdomain-finder
chmod +x subdomain_finder.py
The script will auto-detect installed tools and show:
text
[+] sublist3r is already installed
[+] amass is already installed
[+] subfinder is already installed
[+] assetfinder is already installed
[+] findomain is already installed
[+] knockpy is already installed
[+] massdns is already installed
[+] All tools installed successfully!
🎯 Usage
python3 subdomain_finder.py
Menu Options:
Install Missing Tools - Guides you through installation
Find Subdomains - Enter a domain (e.g., example.com)
Exit
Output:
results/example.com_sublist3r.txt (Individual tools)
results/example.com_combined.txt (Merged results)
🫤IF you facing any error follow this 👇
Solution 1: Use Python Virtual Environment (Recommended)
Create a virtual environment:
python -m venv subdomain-env
source subdomain-env/bin/activate # On Linux/Mac
# 或
subdomain-env\Scripts\activate # On Windows
Then run the tool:
python subdomain_finder.py
Solution 2: Alternative Installation Methods
For systems with externally managed Python:
Install knockpy using your package manager:
# 对于 Debian/Ubuntu
sudo apt install knockpy
# 或使用带有 --user 标志的 pip
pip install --user knockpy
Then add to PATH:
export PATH=$PATH:~/.local/bin
📜 License
MIT ©thotamurari
### 主要改进:
1. **Added prerequisite table** with exact install commands for all 7 tools
2. **Verification commands** to check installations
3. **Clear output example** showing what users should see
4. **Tool detection** mentioned in features
5. **Simplified usage** with expected file structure
### 额外奖励:
- Users can copy-paste entire tool installation block
- Clear separation between Python deps (`requirements.txt`) and system tools
- Includes both git/curl/go installation methods
Want me to add troubleshooting tips for any specific tool? 😊
```
标签:AssetFinder, Bug Bounty, GitHub, Knockpy, MassDNS, Python, Sublist3r, 可自定义解析器, 域名安全, 多线程扫描, 子域名枚举, 攻击面挖掘, 数据展示, 无后门, 系统安全, 红队, 网站安全, 资产测绘, 逆向工具