ispectr3/phishing-toolkit
GitHub: ispectr3/phishing-toolkit
Go 编写的红队钓鱼服务器,提供多种登录页面模板、凭据捕获与完整日志记录功能,用于授权渗透测试场景。
Stars: 0 | Forks: 0
# 钓鱼工具包



用于红队活动的 Go 钓鱼服务器。提供登录页面服务,捕获提交的凭据,并将所有信息(包括 IP、user agent 和 timestamp)记录到日志中。
## 功能
- 支持 TLS 的 HTTP/HTTPS 服务器
- 现成的模板(通用、Microsoft 365、Google)
- 通过 POST 捕获凭据并完整记录日志
- 捕获后可配置重定向
- 记录真实 IP 的日志(支持 X-Forwarded-For 和 X-Real-IP)
- 线程安全的日志写入
## 安装
```
git clone https://github.com/ispectr3/phishing-toolkit.git
cd phishing-toolkit
go build -o phish .
```
## 用法
```
# 在端口 8080 上使用通用 template 的基础服务器
./phish
# 在端口 80 上的 Microsoft template
./phish -port 80 -template microsoft
# 带有 HTTPS 和自定义重定向
./phish -cert server.pem -key server.key -redirect "https://office.com"
# 列出可用的 template
./phish -list
```
### Flags
| Flag | 描述 | 默认值 |
|------|-----------|--------|
| `-port` | HTTP 端口 | `8080` |
| `-tls-port` | HTTPS 端口 | `8443` |
| `-template` | 页面模板 | `generic` |
| `-log` | 日志文件 | `logs/captured.log` |
| `-cert` | TLS 证书 | - |
| `-key` | TLS 私钥 | - |
| `-redirect` | 捕获后的重定向 URL | `https://google.com` |
| `-list` | 列出模板 | - |
## 模板
- `generic` - 简洁的通用登录页
- `microsoft` - Microsoft 365 登录风格
- `google` - Google Accounts 风格
要创建自定义模板,只需在 `templates/` 目录中添加一个包含向 `/` 发送 POST 请求表单的 HTML 文件即可。
## 结构
```
phishing-toolkit/
├── main.go # Entry point e CLI
├── server/
│ └── server.go # Servidor HTTP, captura e logging
├── templates/
│ ├── generic.html # Template generico
│ ├── microsoft.html # Template Microsoft 365
│ └── google.html # Template Google
├── logs/ # Credenciais capturadas
├── go.mod
├── README.md
├── LICENSE
└── .gitignore
```
## 日志格式
```
[2026-07-31 14:30:22] IP=192.168.1.50:54321 | UserAgent=Mozilla/5.0... | email=user@corp.com | password=Welcome123
```
## 免责声明
此工具出于教育目的及授权的渗透测试而创建。未经目标系统所有者明确授权的任何使用均属非法。作者不对不当使用承担责任。
## 许可证
[MIT](LICENSE)
标签:Go, Ruby工具, Web服务器, 后端开发, 底层编程, 日志审计, 钓鱼工具