#coding:utf8
import socket,time,re,thread,os
timeout=3
socket.setdefaulttimeout(timeout)
def socket_port...(ip,port):
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
result=s.connect_ex((ip,port))...21,22,23,3389,1521,3940,]
start_time=time.time()
for i in list1:
thread.start_new_thread(socket_port