ricktor0/SubEnum

GitHub: ricktor0/SubEnum

一个 Bash 自动化脚本,整合多款子域名枚举工具的结果并进行去重和 HTTP 存活检测。

Stars: 0 | Forks: 0

# SubEnum 🔍 **SubEnum** 是一个用于**子域名枚举**和**HTTP 状态检查**的自定义自动化脚本。它结合了多个强大工具的结果,移除重复项,并检查每个子域名的状态和标题。 ## 🚀 功能 - 合并以下工具的结果: - [Assetfinder](https://github.com/tomnomnom/assetfinder) - [Subfinder](https://github.com/projectdiscovery/subfinder) - [Sublist3r](https://github.com/aboul3la/Sublist3r) - 移除重复的子域名 - 使用 [httpx](https://github.com/projectdiscovery/httpx) 来: - 检查 HTTP/S 状态码 - 获取页面标题 - 将结果保存在有组织的文件中 ## 🛠 要求 安装这些工具,并确保它们在脚本中的路径是正确的: ## | 工具 | 安装链接 | |-------------|------------------------------------------------------------| | Assetfinder | https://github.com/tomnomnom/assetfinder | | Subfinder | https://github.com/projectdiscovery/subfinder | | Sublist3r | https://github.com/aboul3la/Sublist3r | | httpx | https://github.com/projectdiscovery/httpx | | Python3 | https://www.python.org/downloads/ | ## ⚙️ 用法 ### 1️⃣ 克隆仓库 ``` git clone https://github.com/ricktor0/subenum.git cd subenum chmod +x subenum.sh ``` ### 2️⃣ 配置工具路径 在任意文本编辑器中打开脚本 subenum.sh,并更新这些变量以匹配你的系统: ``` ASSETFINDER_PATH="/home/r1ckt0r/go/bin/assetfinder" SUBLIST3R_PATH="/home/r1ckt0r/Sublist3r/sublist3r.py" SUBFINDER_PATH="/home/r1ckt0r/go/bin/subfinder" HTTPX_PATH="/home/r1ckt0r/go/bin/httpx" ``` ### 3️⃣ 运行 subenum ``` ./subenum.sh target.com ``` ### 这将会: - 运行 Assetfinder、Subfinder 和 Sublist3r - 合并并去重结果 - 使用 httpx 检查子域名 - 将所有内容保存在 output/ 文件夹中 ## 🔥 输出 ``` r1ckt0r@ubuntumachine:~/subenum$ ./subenum.sh evil.com [+] Running assetfinder... [+] Running sublist3r... ____ _ _ _ _ _____ / ___| _ _| |__ | (_)___| |_|___ / _ __ \___ \| | | | '_ \| | / __| __| |_ \| '__| ___) | |_| | |_) | | \__ \ |_ ___) | | |____/ \__,_|_.__/|_|_|___/\__|____/|_| # Coded By Ahmed Aboul-Ela - @aboul3la [-] Enumerating subdomains now for evil.com [-] Searching now in Baidu.. [-] Searching now in Yahoo.. [-] Searching now in Google.. [-] Searching now in Bing.. [-] Searching now in Ask.. [-] Searching now in Netcraft.. [-] Searching now in DNSdumpster.. [-] Searching now in Virustotal.. [-] Searching now in ThreatCrowd.. [-] Searching now in SSL Certificates.. [-] Searching now in PassiveDNS.. [-] Saving results to file: ./output/sublist3r_temp.txt [-] Total Unique Subdomains Found: 4 www.evil.com us1.defend.egress.com.evil.com miro.com.evil.com www.spacex.com.evil.com [+] Running subfinder... [+] Removing duplicates... [+] Running httpx on unique subdomains... [+] Done! Results saved in: ./output/evil.com_httpx.txt ``` ## 👀 欢迎添加更多工具。
标签:Bash, GitHub, 子域名枚举, 实时处理, 应用安全, 数字取证, 系统安全, 自动化脚本