YaswanthKanderi/Network-Vulnerability-Scanner

GitHub: YaswanthKanderi/Network-Vulnerability-Scanner

这是一个基于Python标准库开发的轻量级网络漏洞扫描器,能够通过Socket编程检测开放端口、抓取服务Banner并评估基础安全风险。

Stars: 0 | Forks: 0

# 🔍 网络漏洞扫描器 ![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white) ![Security](https://img.shields.io/badge/Security-Vulnerability_Assessment-red?style=for-the-badge) ![Nmap](https://img.shields.io/badge/Tools-Nmap-blue?style=for-the-badge) ![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge) **作者:** Yaswanth Kanderi | 拉筹伯大学网络安全硕士 ## 📋 功能 - 🔌 **端口扫描**,通过 Python socket(无外部依赖) - 🧩 **16 种常见服务检测** — SSH、FTP、Telnet、HTTP、HTTPS、SMB、RDP、MySQL、MongoDB 等 - ⚠️ 针对每个检测到的服务进行**风险评估**(LOW / MEDIUM / HIGH) - 🏴 **Banner 抓取** — 识别服务器软件版本 - 📄 **JSON 报告导出**,用于文档记录和审计 - 🔐 基于已知漏洞模式的**教育性风险描述** ## 🚀 使用方法 ``` python3 scanner.py ``` ``` Enter target IP or hostname: 192.168.1.1 Start port (default 1): 1 End port (default 1024): 1024 ``` ### 示例输出 ``` ============================================================ Network Vulnerability Scanner Author: Yaswanth Kanderi For Educational & Authorised Use Only ============================================================ [*] Target: 192.168.1.1 -> 192.168.1.1 [*] Scanning ports 1-1024... ------------------------------------------------------------ [OPEN] Port 22 | SSH | Risk: LOW [OPEN] Port 23 | Telnet | Risk: HIGH Banner: SSH-2.0-OpenSSH_8.2p1 [OPEN] Port 80 | HTTP | Risk: LOW [OPEN] Port 445 | SMB | Risk: HIGH ------------------------------------------------------------ [*] Scan complete. 4 open port(s) found. [*] Report saved to scan_report.json ``` ## 📊 检测到的服务与风险等级 | 端口 | 服务 | 风险 | |------|---------|------| | 21 | FTP | MEDIUM | | 22 | SSH | LOW | | 23 | Telnet | HIGH | | 80/8080 | HTTP | LOW | | 443 | HTTPS | LOW | | 445 | SMB | HIGH | | 3306 | MySQL | MEDIUM | | 3389 | RDP | MEDIUM | | 27017 | MongoDB | HIGH | ## 🛠️ 技术栈 - **Python 3** — 仅使用标准库 - `socket` — TCP 端口扫描与 banner 抓取 - `json` — 报告生成 - `datetime` — 带时间戳的报告 ## ⚠️ 免责声明 本工具仅用于**教育目的和授权的渗透测试**。在扫描任何不属于您的网络或系统之前,请务必获得书面许可。 *由 [Yaswanth Kanderi](https://github.com/YaswanthKanderi) 构建 | 有志于成为网络安全分析师*
标签:Banner抓取, Homebrew安装, JSON报告, Nmap, Python, RDP, SMB, Socket编程, SSH, Telnet, 反取证, 安全评估, 开源安全工具, 数据库探测, 数据统计, 无后门, 服务器安全, 端口扫描, 网络 Reconnaissance, 网络安全, 虚拟驱动器, 逆向工具, 逆向工程平台, 错误配置检测, 隐私保护, 风险分析