joel15thegoat/port_scanner
GitHub: joel15thegoat/port_scanner
一个基于 Python 线程池的轻量级端口扫描器,用于快速识别本地或指定主机上 1–1024 范围内的开放端口。
Stars: 0 | Forks: 0
# port_scanner
一个用 Python 编写的轻量级、多线程端口扫描器。它使用线程池扫描本地主机 (127.0.0.1) 上的 1–1024 端口,以识别开放端口。
## 功能
- 使用 `concurrent.futures` 进行快速并发扫描
- 可调整的超时时间和端口范围
- 简洁、极简的代码,非常适合学习
## 用法
**1. 克隆仓库:**
```
git clone https://github.com/yourusername/port-scanner.git
cd port-scanner
```
**2. 运行脚本:**
```
python scanner.py
```
## 自定义
- 通过替换 `127.0.0.1` 来更改目标 IP
- 通过修改 `ports = range(start, end).` 来调整端口范围
- 通过 `sock.settimeout(seconds).` 来微调超时时间
## 许可证
- 该项目基于 MIT [许可证](https://mit-license.org/) 发布
标签:Python, 插件系统, 数据统计, 无后门, 端口扫描, 网络安全, 逆向工具, 隐私保护