Look for random IP addresses with port 80 open

                                                                                                                                                                                                                                                                                           script python random IP



                                                                                                                                                                # -*- coding:utf-8 -*-


import time
import socket
from random import randrange
import threading


i = 0
def GenerateIP():
   ip0 = randrange(0,256)
   ip1 = randrange(0,256)
   ip2 = randrange(0,256)
   ip3 = randrange(0,256)
   return str(ip0)+"."+str(ip1)+"."+str(ip2)+"."+str(ip3)

class scan(threading.Thread):
   def run(self):
      while 1:
         try:
            target = GenerateIP()
            s=socket.socket()
            s.connect((target, 80))
            print "Found ======>> : "+target
            #time.sleep(3)
            s.close()
         except:
            pass

for i in xrange(150):
   t = scan()
   #time.sleep(3)
   i += 1
   t.start()