Advertisement
7ourney

Reverse Ip Lookup Mass & Fast

Jul 28th, 2017
1,181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.00 KB | None | 0 0
  1. #!/usr/bin/python
  2. import re , urllib , sys , os
  3. from platform import system
  4.  
  5. #ReCoded By 7ourney
  6. if system() == 'Linux':
  7.     os.system('clear')
  8. if system() == 'Windows':
  9.     os.system('cls')
  10.  
  11. banner = '''
  12. ===================================================================|
  13. ===================================================================|        
  14. /$$$$$$$$                                                         |
  15. |_____ $$/                                                         |
  16.     /$$//$$$$$$  /$$   /$$  /$$$$$$  /$$$$$$$   /$$$$$$  /$$   /$$|
  17.    /$$//$$__  $$| $$  | $$ /$$__  $$| $$__  $$ /$$__  $$| $$  | $$|
  18.   /$$/| $$  \ $$| $$  | $$| $$  \__/| $$  \ $$| $$$$$$$$| $$  | $$|
  19.  /$$/ | $$  | $$| $$  | $$| $$      | $$  | $$| $$_____/| $$  | $$|
  20. /$$/  |  $$$$$$/|  $$$$$$/| $$      | $$  | $$|  $$$$$$$|  $$$$$$$|
  21. |__/    \______/  \______/ |__/      |__/  |__/ \_______/ \____  $$|
  22.                                                          /$$  | $$|
  23.                                                         |  $$$$$$/|
  24.                                                          \______/ |
  25.                                                                   |
  26. ReCoded By: 7ourney , FB.com/7ourney                               |
  27.                                                                   |
  28. ===================================================================|
  29. ===================================================================|
  30. \n'''
  31. print banner
  32.  
  33. def ReverseBing():
  34.  
  35.  try:
  36.     proxy = {'http':'http://199.102.45.110:80'}
  37.     lists = open(sys.argv[1], 'r').readlines()
  38.     for ips in lists:
  39.       ip = ips.rstrip()
  40.       bing = 'http://viewdns.info/reverseip/?host='+ip+'&t=1'
  41.       openbing  = urllib.urlopen(bing,proxies=proxy)
  42.       readbing = openbing.read()
  43.       data = re.findall('</td></tr><tr> <td>(.*?)</td><td',readbing)
  44.       print "Grabbed Domains[#]:", ip,'\n','[+] Found Sites :',len(data),'\n',
  45.       open('sites.txt', "a").write("\n"+"\n".join(data))
  46.  except:
  47.   pass
  48. ReverseBing()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement