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=('128.140.192.0/24',))
t2 = Thread (target=scan,args=('128.140.193.0/24',))
t3 = Thread (target=scan,args=('128.140.194.0/24',))
t4 = Thread (target=scan,args=('128.140.195.0/24',))
t5 = Thread (target=scan,args=('128.140.196.0/24',))
t6 = Thread (target=scan,args=('128.140.197.0/24',))
t7 = Thread (target=scan,args=('128.140.198.0/24',))
t8 = Thread (target=scan,args=('128.140.199.0/24',))
t1.start()
t2.start()
t3.start()
t4.start()
t5.start()
t6.start()
t7.start()
t8.start()
t1.join()
t2.join()
t3.join()
t4.join()
t5.join()
t6.join()
t7.join()
t8.join()
