SqLasticSoftware

CloudFlare Resolver

Feb 18th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import socket
  2.  def getsite():
  3.     global site
  4.     site = raw_input("[!] Enter the URL: ")
  5.     if site[:7] == "http://":
  6.      site = site[7:]
  7.     elif site[:8] == "https://":
  8.      site=site[8:]
  9.  
  10. getsite()
  11.  
  12. def getip():
  13.     list = ["cpanel.","ftp.","mail.","webmail.","direct.","direct-connect.", "record."]
  14.     print("[!] Trying to grab the real IP using different protocols.")
  15.     for item in list:
  16.   try:
  17.      ip = socket.gethostbyname(item + site)
  18.      print "[+] " + item + site +  ", " + ip + " found."
  19.   except:
  20.     print("[-] " + item + site + " not found.")
  21.  
  22. getip()
Advertisement
Add Comment
Please, Sign In to add comment