import ipaddress
from mywinbox import connect
from threading import Thread

#oskolnet='37.110.224.0/20'

def scan(oskolnet):
  for i in ipaddress.ip_network(oskolnet):
         print  (connect(str(i)))



t1 = Thread (target=scan,args=('37.110.224.0/24',))
t2 = Thread (target=scan,args=('37.110.225.0/24',))
t3 = Thread (target=scan,args=('37.110.226.0/24',))
t4 = Thread (target=scan,args=('37.110.227.0/24',))
t5 = Thread (target=scan,args=('37.110.228.0/24',))
t6 = Thread (target=scan,args=('37.110.229.0/24',))
t7 = Thread (target=scan,args=('37.110.230.0/24',))
t8 = Thread (target=scan,args=('37.110.231.0/24',))
t9 = Thread (target=scan,args=('37.110.232.0/24',))
t10 = Thread (target=scan,args=('37.110.233.0/24',))
t11 = Thread (target=scan,args=('37.110.234.0/24',))
t12 = Thread (target=scan,args=('37.110.235.0/24',))
t13 = Thread (target=scan,args=('37.110.236.0/24',))
t14 = Thread (target=scan,args=('37.110.237.0/24',))
t15 = Thread (target=scan,args=('37.110.238.0/24',))
t16 = Thread (target=scan,args=('37.110.239.0/24',))
t1.start()
t2.start()
t3.start()
t4.start()
t5.start()
t6.start()
t7.start()
t8.start()
t9.start()
t10.start()
t11.start()
t12.start()
t13.start()
t14.start()
t15.start()
t16.start()
t1.join()
t2.join()
t3.join()
t4.join()
t5.join()
t6.join()
t7.join()
t8.join()
t9.join()
t10.join()
t11.join()
t12.join()
t13.join()
t14.join()
t15.join()
t16.join()
