syedaffan21-cmd/Port-scanner-Vulnerability-checker.

GitHub: syedaffan21-cmd/Port-scanner-Vulnerability-checker.

一款基于 Python 多线程实现的命令行端口扫描与漏洞检测工具,支持 TCP 连接扫描、Banner 抓取和 CVE 指纹比对,并可导出结构化扫描结果。

Stars: 0 | Forks: 0

# 自动化端口扫描与漏洞检测工具 一款使用 Python 构建,基于底层 TCP socket 编程和并发实现的快速、多线程命令行网络侦察工具。 ## 功能 - **多线程扫描**:使用 `concurrent.futures` 并行扫描数百个端口。 - **目标灵活性**:支持单个 IP 地址、域名主机以及 CIDR 子网(例如 `192.168.1.0/24`)。 - **Banner 抓取**:提取交互式协议(SSH、FTP)和 Web 服务器(HTTP)的 service banner。 - **漏洞指纹识别**:将获取的 banner 与 CVE 签名查找表进行交叉比对。 - **数据导出**:将扫描结果直接保存为 `.json` 或 `.csv` 文件。 Markdown ## 项目架构 ``` [ User Input / CLI Flags ] │ ▼ [ Target Resolution (DNS / CIDR Subnet) ] │ ▼ [ ThreadPoolExecutor (Concurrent Workers) ] │ ┌─────────┴─────────┐ ▼ ▼ [ TCP Handshake ] [ Banner Grabbing ] (socket.connect) (HTTP / SSH / FTP) │ ▼ [ Vulnerability Fingerprinting (CVE Lookup) ] │ ▼ [ Structured Export (Console / JSON / CSV) ] ## 用法 ### 扫描域名范围并导出至 CSV: ```powershell (to export in csv) py scanner.py -t scanme.nmap.org -s 20 -e 80 -o scan_results.csv ```powershell (to export in joson) py scanner.py -t scanme.nmap.org -s 20 -e 80 -o scan_results.csv --- ### 2. Terminal 输出示例 Paste a real snippet of what the script outputs when it runs so people can see the tool in action without running it first. ```markdown ## 示例输出 ```text ================================================================= Targets Count : 1 Port Range : 20 - 80 Threads : 100 Export File : scan_results.csv ================================================================= [+] Target: 45.33.32.156 | Port 22 : OPEN | Banner: SSH-2.0-OpenSSH_6.6.1p1 [+] Target: 45.33.32.156 | Port 80 : OPEN | Banner: HTTP/1.1 200 OK Scan completed. [+] Results successfully exported to CSV: scan_results.csv ##Legal & Ethical Disclaimer This too is created for educational purpose and authorized security assessment only. Scanning targets without prior mutual consent is illegal. The developer assumes no liability and is not responsible for any misuse or damage caused by this program. ```
标签:Python, 主机安全, 插件系统, 数据统计, 无后门, 服务器安全, 端口扫描, 逆向工具