📅  最后修改于: 2022-03-11 14:56:16.929000             🧑  作者: Mango
def portscan(port):
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((target, port))
return True
except:
return False