MiChaelinzo/Advanced-Penetration-Testing-Script

GitHub: MiChaelinzo/Advanced-Penetration-Testing-Script

这是一套基于Python的高级Web渗透测试工具,集成了从信息收集到多种漏洞探测与报告生成的完整功能。

Stars: 18 | Forks: 3

# ⚡ NetWatch Advanced Breach Scanner v2.0 // Cyberpunk 2077 Edition

Version Python License Night City

"In 2077, what makes someone a criminal? Getting caught."

一套全面的、高科技的 netrunner 工具包,用于授权的安全评估。接入任何目标节点,利用广泛的 ICE 破解能力来应对 Web 应用程序、API 和网络服务。欢迎来到夜之城,choom。 ## ☠ Relic Protocol 警告 **此工具仅用于授权的 netrunner 操作。** 在未获得所有者明确许可的情况下,将此工具用于系统是**夜之城的死罪(CAPITAL OFFENSE)**。netrunner 需对使用此工具包执行的任何操作承担全部责任。别毁了你的声誉。 ## ⚡ 功能 ### 🔍 Recon // 网络扫描 - **Web 爬取**:通过可配置的 spider daemons 自动发现 URL - **技术指纹识别**:检测 CMS、框架和服务器技术栈 - **子域名枚举**:通过 DNS 解析进行深网子域名侦察 - **端口扫描**:映射目标节点上的开放服务端口 - **JavaScript 分析**:从 JS 文件碎片中提取 API 端点 ### 💉 Quickhack // 注入模块 - **SQL 注入**:基于错误和基于时间的盲 SQLi daemon 探测 - **跨站脚本攻击 (XSS)**:反射型和基于 DOM 的神经接口注入 - **命令注入**:OS 命令注入 —— 从 braindance 直通 shell - **LDAP 注入**:LDAP 查询操纵漏洞测试 - **服务端模板注入 (SSTI)**:模板引擎利用 - **XML 外部实体 (XXE)**:XML 解析器漏洞 quickhacks ### 🔐 ICE Breaker // 认证与访问 - **CSRF 测试**:跨站请求伪造幽灵协议检测 - **弱凭证**:默认/常见密码暴力破解 - **JWT 安全**:生物芯片 token 分析和算法验证 - **会话管理**:Cookie 安全和会话芯片完整性 ### 🌐 Net Protocol // API 安全 - **REST API 测试**:常见 API 漏洞入侵检查 - **GraphQL 安全**:内省和查询批量利用 - **CORS 错误配置**:跨域资源共享入侵分析 - **速率限制**:暴力破解 ICE 保护检测 ### 🛡️ Firewall // 安全头与配置 - **HTTP 安全头**:CSP, HSTS, X-Frame-Options 等 - **TLS/SSL 分析**:证书和密码套件验证 - **Cookie 安全**:Secure, HttpOnly, SameSite 芯片属性 - **信息泄露**:敏感数据碎片暴露检测 ### 📊 Data Shards // 报告 - **JSON 报告**:机器可读的数据碎片输出 - **HTML 报告**:霓虹风格的交互式入侵报告 - **控制台输出**:彩色编码的实时 netrunner 信息流 - **严重性分类**:CRITICAL, HIGH, MEDIUM, LOW, INFO ## 🚀 安装 // Jack In ``` # Clone the repository git clone https://github.com/MiChaelinzo/Advanced-Penetration-Testing-Script.git # Navigate to the directory cd Advanced-Penetration-Testing-Script # Install dependencies — load your cyberdeck pip install -r requirements.txt ``` ## 📖 使用说明 // Netrunner Operations ### Quickhack 模式(交互式) ``` python penetration_testing3.py ``` 或指定目标节点: ``` python penetration_testing3.py https://example.com ``` ### 完整 Netrunner 协议(命令行) #### 快速侦察运行 ``` python scanner.py https://example.com ``` #### 完整入侵协议 ``` python scanner.py https://example.com --full-scan ``` #### 自定义操作 ``` # Deep-net recon with port scan and subdomain enumeration python scanner.py https://example.com --scan-ports --enum-subdomains # Export HTML data shard python scanner.py https://example.com -o report.html --format html # Use custom quickhack payload files python scanner.py https://example.com --sqli-payloads sqli.txt --xss-payloads xss.txt # Bypass SSL ICE python scanner.py https://self-signed.local --no-verify-ssl # Verbose netrunner output python scanner.py https://example.com -v --full-scan ``` ### 命令行选项 ``` Target: url Target node URL (e.g., https://example.com) Scan Options: --full-scan Enable full netrunner protocol — all modules --crawl Enable web spider daemon (default: enabled) --no-crawl Disable web spider daemon --crawl-depth N Maximum spider depth (default: 2) --max-pages N Maximum nodes to crawl (default: 50) --scan-ports Enable port mapping --enum-subdomains Enable deep-net subdomain recon --test-creds Test for weak credentials (default: enabled) --no-test-creds Disable credential brute force Payload Files: --sqli-payloads FILE Custom SQL injection quickhack payloads --xss-payloads FILE Custom XSS quickhack payloads --dir-payloads FILE Custom directory traversal payloads --username-list FILE Custom usernames for credential testing --password-list FILE Custom passwords for credential testing Output Options: -o, --output FILE Output file for data shard report --format {json,html} Report format (default: json) -v, --verbose Enable verbose netrunner output -q, --quiet Minimal output — stealth mode Connection Options: --no-verify-ssl Disable SSL ICE verification --timeout N Request timeout in seconds (default: 10) --threads N Number of concurrent daemon threads (default: 10) ``` ## 📁 项目结构 // Cyberdeck Layout ``` Advanced-Penetration-Testing-Script/ ├── scanner.py # Full netrunner breach scanner ├── penetration_testing3.py # QuickHack interactive scanner ├── requirements.txt # Cyberdeck dependencies ├── README.md # Netrunner documentation ├── LICENSE # MIT License └── .github/ ├── FUNDING.yml └── ISSUE_TEMPLATE/ ``` ## 🔧 入侵模块 // Quickhack Library | Module | Quickhacks | |--------|-----------| | **Injection** | SQL Injection, XSS, Command Injection, LDAP Injection, SSTI, XXE | | **Auth Bypass** | CSRF, Weak Credentials, Broken Session Management | | **ICE Analysis** | CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy | | **Crypto Link** | Certificate Validation, Protocol Version, Cipher Strength | | **Net Protocol** | CORS, GraphQL Introspection, JWT Analysis, Rate Limiting | | **Data Shards** | Directory Traversal, Sensitive Files, Debug Mode | | **Other** | Clickjacking, Open Redirect, Insecure File Upload, SSRF | ## 📋 示例输出 ``` ██████╗██╗ ██╗██████╗ ███████╗██████╗ ██████╗ ██╗ ██╗███╗ ██╗██╗ ██╗ ██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗██╔══██╗██║ ██║████╗ ██║██║ ██╔╝ ██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝██████╔╝██║ ██║██╔██╗ ██║█████╔╝ ██║ ╚██╔╝ ██╔══██╗██╔══╝ ██╔══██╗██╔═══╝ ██║ ██║██║╚██╗██║██╔═██╗ ╚██████╗ ██║ ██████╔╝███████╗██║ ██║██║ ╚██████╔╝██║ ╚████║██║ ██╗ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╔══════════════════════════════════════════════════════════════════════════════╗ ║ ⚡ NETWATCH ADVANCED BREACH SCANNER v2.0.77 ║ ║ >> Night City's Premier Netrunner Toolkit ║ ╚══════════════════════════════════════════════════════════════════════════════╝ ⚡ Jacking into target node: https://example.com ⟫⟫ PHASE 1: RECON // Scanning the Net ──────────────────────────────────────── Fingerprinting node technologies... ✓ Detected: Nginx ✓ Detected: PHP Deploying spider daemons... Discovered 25 URLs, 8 JS file shards ⟫⟫ PHASE 2: BREACH PROTOCOL // Deploying Quickhacks ──────────────────────────────────────── DAEMON PROBE // SQL Injection... QUICKHACK // XSS... ICE SCAN // Security Headers... [MEDIUM] Missing ICE layer — CSP ═══════════════════════════════════════════════════════ ⚡ BREACH REPORT // SCAN RESULTS ═══════════════════════════════════════════════════════ ◈ Breach Summary: ☠ CRITICAL: 0 ⚠ HIGH: 1 ◈ MEDIUM: 3 ◇ LOW: 5 ⊡ INFO: 2 ⟫ TOTAL: 11 ⚡ HTML data shard saved to: report.html ``` ## 🤝 贡献 // Join the Crew 我们欢迎 fellow netrunners 的贡献!以下是你如何提供帮助: 1. Fork 该仓库 2. 创建一个特性分支 (`git checkout -b feature/nova-quickhack`) 3. 提交你的更改 (`git commit -m 'Add nova quickhack module'`) 4. 推送到分支 (`git push origin feature/nova-quickhack`) 5. 打开一个 Pull Request ### 贡献领域 - 额外的 quickhack / 漏洞模块 - 改进 ICE 检测准确性 - 性能优化 —— 更快的入侵时间 - 文档改进 - 错误修复和 daemon 稳定性 ## 📜 免责声明 本项目**仅用于教育和授权的安全测试目的**。 - 在测试任何系统之前,始终获得适当的授权 - 请勿将此工具用于你不拥有或未经许可测试的系统 - 作者不对因滥用此工具造成的任何损害负责 - 在未经适当验证的情况下,不应在生产环境中使用此工具 - *"在夜之城,你可以成为任何人。只要别被抓住。"* ## 📄 许可证 本项目在 MIT 许可证下获得许可 - 查看 [LICENSE](LICENSE) 文件了解详情。 ## 🌟 更新日志 // Patch Notes ### v2.0.77 (2077 Edition) - 赛博朋克 2077 主题 UI —— 霓虹夜之城美学 - 通篇使用 netrunner 术语(ICE, daemons, quickhacks, data shards) - 霓虹风格的 HTML 入侵报告,采用 Orbitron 和 Share Tech Mono 字体 - ASCII 艺术 CYBERPUNK 横幅 - 赛博朋克风格的严重性图标和章节标题 ### v2.0.0 (2024) - 使用现代 Python 实践完全重写 - 添加了异步/并发扫描 - 添加了 Web 爬取和 URL 发现 - 添加了技术指纹识别 - 添加了子域名枚举 - 添加了端口扫描 - 添加了 SSTI, XXE, LDAP 注入测试 - 添加了 JWT 安全分析 - 添加了 GraphQL 安全测试 - 添加了 API 安全测试 - 添加了 CORS 测试 - 添加了 HTML 报告生成 - 提高了检测准确性 - 彩色编码的控制台输出 - 全面的文档 ### v1.0.0 (2023) - 初始版本 - 基本漏洞测试 - SQL 注入, XSS, CSRF 测试 - Cookie 安全分析 - HTTP 头检查

Made with ☠ for the netrunner community — Night City, 2077

"Wake up, samurai. We have a network to burn."

![Cyberpunk Security](https://static.pigsec.cn/wp-content/uploads/repos/2026/04/0246944512175128.png)
标签:API安全, BeEF, C2日志可视化, CISA项目, CSRF, Cyberpunk主题, DOE合作, GitHub, Homebrew安装, JSON输出, LDAP注入, SSTI, Web渗透测试, 命令注入, 多模态安全, 子域名枚举, 实时处理, 密码管理, 底层编程, 指纹识别, 数据统计, 文件上传漏洞, 爬虫, 用户模式钩子绕过, 端口扫描, 系统安全, 网络安全, 网络安全评估, 自动化分析, 跨站脚本, 逆向工具, 隐私保护