本模块不会对IP进行封禁,仅作为向钉钉机器人推送通知
wget https://raw.githubusercontent.com/sec-report/SecAutoBan/main/device/block/dingtalk_robot/dingtalk_robot.py
pip3 install SecAutoBan
更改脚本第55
-57
行
server_ip = "127.0.0.1",
server_port = 80,
sk = "sk-xxx",
创建机器人后,安全设置选择加签
更改脚本第51
、52
行,修改Webhook地址以及签名密钥:
webhook = "https://oapi.dingtalk.com/robot/send?access_token="
secret = "this is secret"
python3 dingtalk_robot.py