python编写端口扫描_python端口扫描代码
如何扫描网络中的端口 python
from socket import socket
def scan_address(host, port):
s = socket()
s.settimeout(3)
try:
s.connect((host, port))
except:
return False
s.close()
237
0
2023-04-05
端口扫描