Created
April 16, 2017 20:04
-
-
Save erm3nda/3ea6b6927e704e4b77054b3436200c60 to your computer and use it in GitHub Desktop.
Reverse ip lookup usando o site yougetsignal.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from sys import argv,exit | |
import urllib2 | |
import urllib | |
import json | |
print '\033[1;32m[+]\033[0m Reverse ip lookup by MMxM' | |
if(len(argv) != 2): | |
print '\033[1;36m[*]\033[0m How to use: %s <ip|hostname>'%argv[0] | |
exit(1) | |
try: | |
url = 'http://www.yougetsignal.com/tools/web-sites-on-web-server/php/get-web-sites-on-web-server-json-data.php' | |
req = urllib2.Request(url) | |
req.add_header('Referer', 'http://www.yougetsignal.com/tools/web-sites-on-web-server/') | |
params = {"remoteAddress": argv[1]} | |
query = urllib.urlencode(params) | |
r = urllib2.urlopen(req, query) | |
data = json.loads(r.read()) | |
domain = (data['domainArray']) | |
print "\n[+] Domains Found:\n" | |
for s in domain: | |
for d in s: | |
if d != '': | |
print d | |
except: | |
print "[-] Unexpected error" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment