Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- def getsite():
- global site
- site = raw_input("[!] Enter the URL: ")
- if site[:7] == "http://":
- site = site[7:]
- elif site[:8] == "https://":
- site=site[8:]
- getsite()
- def getip():
- list = ["cpanel.","ftp.","mail.","webmail.","direct.","direct-connect.", "record."]
- print("[!] Trying to grab the real IP using different protocols.")
- for item in list:
- try:
- ip = socket.gethostbyname(item + site)
- print "[+] " + item + site + ", " + ip + " found."
- except:
- print("[-] " + item + site + " not found.")
- getip()
Advertisement
Add Comment
Please, Sign In to add comment