Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re,urllib, os, time
- def reverse_ip(ip_addr):
- domains = []
- ip_pattern = re.compile(".+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).+")
- site_pattern = re.compile(".+target\=\"_blank\"\>(.+\..+) whois\<\/a\>")
- url = "http://sameip.org/ip/"
- query = url + ip_addr
- page = urllib.urlopen(query).read()
- for i in site_pattern.findall(page): domains.append(i)
- print "\n[+] Domains : [%s]" % len(domains)
- file_name = ip_addr+'.txt'
- log = open(file_name,'w')
- log.write("Domain List for %s\n\n" % ip_addr)
- for i in domains: log.write("[+] %s\n" % i)
- log.close()
- print "\n\n[+]Domain list saved to %s" % file_name
- def get_ip(site):
- global ip_address
- ip_pattern = re.compile("\<title\>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).+\<\/title\>")
- query = "http://reverseip.domaintools.com/search/?q=%s" % site
- page = urllib.urlopen(query).read()
- ip_address = str(ip_pattern.findall(page)).strip("[']")
- print "\n[+] IP Address : %s " % ip_address
- def main():
- print'''
- +===============================+
- |IP checker & Reverse IP checker|
- +===============================+
- By ~Yamagata of FB and Other Accounts Hacking'''
- site = raw_input("\nEnter Website (without www): ")
- print "[+] Finding IP address & Reverse IP domains"
- get_ip(site)
- reverse_ip(ip_address)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement