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()

Related Posts :

  • VMware VMware Workstation is a desktop virtual machine software. It provides the best solution for us… Read More...
  • GufwGufw is an Ubuntu built-in firewall UFW graphical management tool that can protect your computer fro… Read More...
  • VirtualBox VirtualBox is being actively developed with frequent releases and has an ever growing list of … Read More...
  • Audacity Audacity is a sound editing software mainly used for recording and editing audio. It has a foo… Read More...
  • Master PDFMaster PDF Editor is a powerful PDF and XPS document editing tool. It can help you view and edit PDF… Read More...