Skip to content

Commit e99d633

Browse files
committed
update
1 parent 1595d93 commit e99d633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

device/sdk/python/SecAutoBan/websocket_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ def send_alarm(self, ip: str, attackAsset: str, attackMethod: str):
147147
iv = util.random_bytes()
148148
util.print("[+] 发送告警IP: " + ip + "->" + attackAsset + "\t" + attackMethod)
149149
self.ws.send(iv + util.aes_cfb_encrypt(self.sk[3:].encode(), iv, json.dumps(send_data).encode()))
150-
def send_alert(self, title: str, content: str):
150+
def send_notify(self, title: str, content: str):
151151
if not self.is_login:
152152
util.print("[-] 未登录成功,无法发送数据")
153153
return
154154
send_data = {
155-
"method": "alert",
155+
"method": "notify",
156156
"data": {
157157
"title": title,
158158
"content": content

0 commit comments

Comments
 (0)