iamx-ariful-islam/whatweb

GitHub: iamx-ariful-islam/whatweb

WhatWeb 是一款轻量级 Python 命令行 Web 侦察工具,能够自动提取目标网站的 65+ 个技术情报参数,帮助安全研究人员快速完成技术栈指纹识别和攻击面信息收集。

Stars: 1 | Forks: 0

# 🔍 WhatWeb ### *下一代 Web 情报与高级攻击面侦察* WhatWeb 是一款企业级、高性能的命令行界面 (CLI) 工具,专为安全研究人员、渗透测试人员和 OSINT 分析师设计。它可以自动从任何目标网站提取 **65+ 个核心情报参数**——在几秒钟内提供深度的技术洞察。 [![Kali Linux](https://img.shields.io/badge/Kali_Linux-Cyber_Security-557C94?logo=kalilinux&logoColor=white)](https://www.kali.org) [![Penetration Tester](https://img.shields.io/badge/Penetration_Tester-E53935?logo=hackaday&logoColor=white)](#) [![Security Researcher](https://img.shields.io/badge/Security_Researcher-1E88E5?logo=securityscorecard&logoColor=white)](#) [![Ethical Hacking](https://img.shields.io/badge/Ethical_Hacking-FFA500?logo=protonvpn&logoColor=white)](#) [![Networking](https://img.shields.io/badge/Networking-00ACC1?logo=cisco&logoColor=white)](#) [![Terminal Commands](https://img.shields.io/badge/Terminal_Commands-2D3748?logo=linux&logoColor=white)](#) [![Shell Bash](https://img.shields.io/badge/Shell-Bash-00C853?logo=gnubash&logoColor=white)](#) ## 📸 截图 以下是 **WhatWeb** 执行自动化漏洞和情报评估的可视化展示: **帮助**
![帮助](https://raw.githubusercontent.com/iamx-ariful-islam/whatweb/main/screenshots/help.png)
**输出**
![输出](https://raw.githubusercontent.com/iamx-ariful-islam/whatweb/main/screenshots/output.png) ## ⚡ 核心功能 * **全栈画像:** 一次性检测 CMS、JavaScript 框架、CSS 底层库以及底层基础设施技术。 * **安全态势评估:** 评估关键安全配置,包括 HTTP 安全标头(HSTS、CSP、X-Frame-Options)。 * **深度 OSINT 发现:** 自动提取嵌入式资源、暴露的电子邮件、社交媒体账号、`robots.txt` 和 XML 站点地图。 * **被动情报:** 与 WHOIS 注册表、DNS 记录工具包无缝集成,并通过 Shodan 进行被动资产追踪。 * **结构化导出流水线:** 支持生成纯净 ASCII 格式 (`.txt`) 或高度结构化的 JSON 数组 (`.json`) 的标准化自动化报告,便于 CI/CD 获取。 ## 🚀 安装与部署 如果需要进行开发、测试或自定义修改,请在本地部署代码库: ``` # Clone repository git clone https://github.com/iamx-ariful-islam/whatweb.git cd whatweb # Install dependencies pip install -r requirements.txt # (可选) Install in local editable mode pip install -e . ``` ## 🛠️ 使用矩阵与语法 使用以下语法直接在您的 shell 环境中执行二进制文件: ``` whatweb example.com # Basic passive scan whatweb example.com -v --timeout 15 # Comprehensive scan with custom timeouts whatweb example.com -o scan_report.txt # Export records directly to a file whatweb example.com -o database_entry.json --format json # Ingest results into third-party tools ``` ## 📊 全面的终端输出 ``` .__ __ ___. __ _ _| |__ _____ _/ |___ _ __ ____\_ |__ \ \/ \/ / | \\__ \\ __\ \/ \/ // __ \| __ \ \ /| Y \/ __ \| | \ /\ ___/| \_\ \ \/\_/ |___| (____ /__| \/\_/ \___ >___ / \/ \/ \/ \/ v1.0 https://github.com/iamx-ariful-islam/whatweb [+] Target Target : example.com [+] Execution Epoch : 2024-01-15 14:30:25 ────────────────────────────────────────────────────────── URL Schema : https://example.com HTTP Status : 200 OK Page Title : Example Domain Resolved IP : 93.184.216.34 Server Engine : nginx/1.18.0, PHP/8.2.12 Content Mgmt : WordPress 6.4.3 JS Frameworks : jQuery 3.7.1, React CSS Engine : Bootstrap 5.3.2 WAF / Proxy : CloudFlare WAF SSL Protocol : TLSv1.3 (Active) SSL Lifecycle : Valid until 2025-01-15 Exposed Emails : info@example.com Social Vectors : Facebook (://facebook.com) Robots Policy : https://example.com Sitemap Route : https://example.com Payload Size : 356.43 KB DOM Assets : Images: 28 | Scripts: 15 Hyperlinks : Internal: 124 | External: 42 ────────────────────────────────────────────────────────── [Security Headers] ✓ HSTS (Strict-Transport-Security Enabled) ✓ X-Frame-Options (Clickjacking Mitigation Active) ────────────────────────────────────────────────────────── [Security Findings] ⚠ Missing CSP (Content Security Policy omitted) -> High XSS vulnerability vector ────────────────────────────────────────────────────────── [+] Runtime Lifecycle : Completed in 20.45 seconds [+] Engine Version : WhatWeb Stack v3.0.0 ────────────────────────────────────────────────────────── ``` ## ⚙️ CLI 标志规范 | 参数 | 类型 | 默认值 | 操作说明 | | :--- | :--- | :--- | :--- | | `target` | 位置参数 | *必填* | 指定要审计的目标主机名或 Web URL 字符串。 | | `-v, --verbose` | 标志 | `False` | 发送实时遥测数据、堆栈跟踪和详细的追踪日志。 | | `--no-shodan` | 标志 | `False` | 阻止对 Shodan endpoint 的远程查询,以确保更隐蔽的追踪。 | | `--timeout` | 整数 | `10` | 对开放的网络 socket 施加最大执行时间限制(以秒为单位)。 | | `-o, --output` | 字符串 | `None` | 明确指定文件路径目标以输出审计日志。 | | `--format` | 选项 | `txt` | 将输出布局引擎映射到特定的 schema:`txt` 或 `json`。 | ## 🧑‍💻 技术生态与依赖 WhatWeb 完全基于高度可靠、维护良好的库构建: * `requests` - 具备异步能力的 HTTP 处理层。 * `beautifulsoup4` - 高保真 DOM 引擎和 Web 爬虫工具。 * `dnspython` - 强大的底层 DNS 查询解析工具包。 * `colorama` - 多平台交叉编译的 ANSI 样式渲染。 * `python-whois` - 结构化的 WHOIS 注册分析。 * `lxml` - 极速的 XML/HTML 解析子系统。 ## 🌐 了解更多或与我联系

        

## 📜 许可证 [MIT](https://choosealicense.com/licenses/mit/) License (MIT) ## 💖 感谢您的访问!
标签:ESC4, GitHub, OSINT, Python, 实时处理, 无后门, 逆向工具