Python扫描局域网内指定端口的IP列表
最近在手撸一个基于Onvif协议的通用设备管理器,需要根据指定RTSP协议554端口来扫描局域网的所有设备列表及设备信息,废话不多说,直接上代码:import threadingimport socketlock = threading.Lock()class DeviceScan: routers = [] def __init__(self, start_ip, end_ip): self.start_ip = start_ip self.e
原创
2021-03-18 16:34:13 ·
527 阅读 ·
1 评论