钉钉告警通知
本模块不会对IP进行封禁,仅作为向钉钉机器人推送通知
下载模块
shell
wget https://raw.githubusercontent.com/SecAegis/SecAutoBan/main/device/block/dingtalk_robot/dingtalk_robot.py配置说明
安装依赖
shell
pip3 install SecAutoBan配置模块
修改回连核心模块配置
更改脚本第55-57行
python
server_ip = "127.0.0.1",
server_port = 80,
sk = "sk-xxx",修改钉钉机器人配置
创建机器人后,安全设置选择加签

更改脚本第51、52行,修改Webhook地址以及签名密钥:
python
webhook = "https://oapi.dingtalk.com/robot/send?access_token="
secret = "this is secret"运行
shell
python3 dingtalk_robot.py