technicalanalysis00005-cell/portpeek

GitHub: technicalanalysis00005-cell/portpeek

一款支持并发扫描与服务检测的轻量级 TCP 端口扫描命令行工具,适合脚本化与自动化场景。

Stars: 0 | Forks: 0

# portpeek 带有服务名称检测功能的快速并发 TCP 端口扫描器 CLI。 ## 功能 - 支持可配置线程池的并发扫描 - 对常用端口进行服务名称检测 - 适用于脚本/管道处理的 JSON 输出 - 扫描单个端口、范围或常用预设 - 扫描期间显示进度 ## 安装 ``` pip install portpeek ``` 或者直接运行: ``` python -m portpeek --help ``` ## 用法 ``` # 扫描主机的常见 ports portpeek scan example.com # 扫描 port 范围 portpeek scan 192.168.1.1 --range 1-1024 # 扫描特定 ports portpeek scan example.com --ports 22,80,443,8080 # JSON 输出 portpeek scan example.com --json # 设置 concurrency (默认: 100) portpeek scan example.com --threads 200 # 扫描常见的 web ports portpeek scan example.com --preset web ``` ## 预设 | 预设 | 端口 | |--------|-------| | `web` | 80, 443, 8080, 8443, 3000, 5000 | | `db` | 3306, 5432, 27017, 6379, 1433 | | `mail` | 25, 110, 143, 465, 587, 993, 995 | | `ssh` | 22, 2222, 8022 | ## 输出示例 ``` Scanning example.com (93.184.216.34) ... PORT STATE SERVICE 22 closed ssh 80 open http 443 open https 3306 closed mysql Scan complete: 2/4 ports open (1.23s) ``` ## 许可证 MIT
标签:Python, 云存储安全, 插件系统, 数据统计, 文档结构分析, 无后门, 端口扫描, 网络扫描, 逆向工具