网络安全攻防:物联网安全攻防

复制def start(self): self.__send_search() while True: #rlist,网络物联网安wlist,xlist reads,_,_=select.select([self.__s],[],[],5) if reads: data,addr=self.__s.recvfrom(2048) list_data=data.split(\r\n) IP="" PORT="" ID="" for item in list_data: temp=item.split(:) if temp[0]=="Location": print "IP:"+temp[2].replace("//","") print "PORT:"+temp[3] IP=temp[2].replace("//","") PORT=temp[3] if temp[0]=="id": print "ID"+temp[1] ID=temp[1] self.operate(IP,PORT,ID) break else: #timeout self.__send_search() self.__s.close() 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.
本文地址:http://www.bzve.cn/html/364d9599540.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。