DanjumaLabs/Golang-portscanner
GitHub: DanjumaLabs/Golang-portscanner
一款基于 Go 的轻量级并发 TCP 端口扫描器,支持隐身模式和 Banner 抓取,用于快速探测目标主机开放端口与服务类型。
Stars: 0 | Forks: 0
# Golang-portscanner
一个使用 Go 编写的轻量级、并发端口扫描器,能够扫描目标主机上的多个端口,并具备隐身能力。
## 功能
- **并发扫描**:使用 goroutine 实现快速并行端口扫描
- **灵活的端口输入**:支持单个端口、逗号分隔的列表或端口范围
- 示例:`22`、`22,80,443`、`1-1024`
- **Banner 抓取**:从服务器响应中检测服务类型(SSH、HTTP)
- **隐身模式**:在端口连接之间包含随机延迟,以避免触发 IDS 系统
- **基于 TCP 连接**:使用 TCP connect() 方法进行可靠的端口检测
- **实时输出**:在发现开放端口时立即显示
## 环境要求
- Go 1.11 或更高版本
## 安装说明
```
go build -o portscanner
USAGE
./portscanner
Then follow the prompts
Enter target (ip or domain): 192.168.1.1
Enter port 1-1024 or 22,40,443: 1-100
Example
target: example.com
ports: 80
Output
go port_scanner starting...
Enter target (ip or domain): example.com
target set to: example.com
Enter port 1-1024 or 22,40,443: 80,443
parsed ports: [80 443]
port 80 is OPEN: HTTP|HTTP/1.1 200 OK...
port 443 is OPEN: HTTP|HTTP/1.1 200 OK...
--- scan summary ---
open ports: 2
closed ports: 0
For any errors,contributions or question
ashtech01@protonmail.com
Legal Notice
This tool is intended for authorized network testing and security research only. Unauthorized access to computer systems is illegal. Always obtain proper authorization before scanning networks.
```
标签:Banner抓取, EVTX分析, Golang, 安全编程, 并发扫描, 插件系统, 数据统计, 日志审计, 端口扫描, 网络安全, 隐私保护