切换到 English Version
一个简单的 Go 命令行工具,用于监控 Openwall 安全邮件列表,并将新的漏洞帖子通知到 Slack 或者 DingTalk。该工具支持关键词过滤,确保只接收相关的安全通知。
- 定期轮询 Openwall oss-security 邮件列表。
- 将通知发送到 Slack 和 DingTalk。
- 根据关键词过滤消息。
- 可配置轮询间隔(以分钟为单位)。
- Go 1.18 或更高版本。
-
克隆代码库:
git clone https://github.com/yourusername/vuln-notifier.git cd vuln-notifier
-
编译 Go 应用程序:
go build vuln-notifier.go
-
编译完成后,可以直接运行该工具:
./vuln-notifier
标志 | 描述 |
---|---|
-keywords |
用逗号分隔的关键词列表,用于过滤消息(例如:apache) |
-slack-webhook |
用于通知的 Slack Webhook URL。 |
-dingtalk-webhook |
用于通知的 DingTalk Webhook URL。 |
-interval |
轮询间隔(以分钟为单位)。默认为 60 分钟。 |
过滤与 Apache 相关的漏洞帖子,并每 30 分钟向 Slack 和 DingTalk 发送通知:
./vuln-notifier -keywords="apache" -slack-webhook="https://hooks.slack.com/services/..." -dingtalk-webhook="https://oapi.dingtalk.com/..." -interval=30
这将仅发送与 Apache 相关的漏洞通知,过滤掉与其无关的帖子。
This project is licensed under the MIT License - see the LICENSE file for details.