Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #zebyzeby
- from multiprocessing import pool
- import urllib
- import urllib2
- import httplib
- import socket
- import sys, os, re
- import requests
- from platform import system
- import sys
- print "Saber's website grabber"
- print "[1] Bing"
- print "[2] reverse ip lookup"
- ch1=raw_input("\n[>] ")
- def menu():
- print ''' _
- YOU HAVE TO PUT IP LISTS ON ip.txt'''
- menu()
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if ch1 == '2' :
- url = 'http://api.hackertarget.com/reverseiplookup/?q='
- lista = raw_input(" Enter List : ")
- lista = open(lista,'r')
- read = lista.readlines()
- for ip in read:
- ip = ip.rstrip("\n")
- print("Scanning -> "+ip)
- curl = url+ip
- openurl = urllib2.urlopen(curl)
- read = openurl.read()
- file = open('ranged.txt','a')
- file.write(read)
- file.close()
- file = open('ranged.txt','r')
- read = file.readlines()
- file.close()
- os.system('rm ranged.txt')
- for z in read:
- z = z.rstrip("\n")
- file = open('ranged.txt','a')
- z = 'http://'+z
- file.write(z+"\n")
- file.close()
- print(" good -> "+i)
- print("Good,Saved In ranged.txt")
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if ch1 == '1' :
- try:
- lists = open(sys.argv[1], 'r').readlines()
- for ips in lists:
- ip = ips.rstrip()
- page = 1
- while page <= 50:
- bing = "http://www.bing.com/search?q=ip%3A"+ip+"&count=50&first="+str(page)
- openbing = urllib2.urlopen(bing, timeout = 5)
- readbing = openbing.read()
- data = re.findall('<h2><a href="(.*?)"',readbing)
- page += 50
- print "Grabbed Domains[+]:", ip,"\n",
- open('SitesBing.txt', "a").write("\n"+"\n".join(data))
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement