예제 #1
0
def dnsdump(domain):
    res = DNSDumpsterAPI(False).search(domain)
    print '\n%s DNS Records' % good
    for entry in res['dns_records']['dns']:
        print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
    for entry in res['dns_records']['mx']:
        print '\n%s MX Records' % good
        print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
    print '\n\033[1;32m[+]\033[1;m Host Records (A)'
    for entry in res['dns_records']['host']:
        if entry['reverse_dns']:
            print '{domain} ({reverse_dns}) ({ip}) {as} {provider} {country}'.format(**entry)
        else:
            print '{domain} ({ip}) {as} {provider} {country}'.format(**entry)
    print '\n%s TXT Records' % good
    for entry in res['dns_records']['txt']:
        print entry
    print '\n%s DNS Map: https://dnsdumpster.com/static/map/%s.png\n' % (good, domain.strip('www.'))
예제 #2
0
def dnsdump(domain):
    res = DNSDumpsterAPI(False).search(domain)
    print('\n[+] DNS Records')
    for entry in res['dns_records']['dns']:
        print(("{domain} ({ip}) {as} {provider} {country}".format(**entry)))
    for entry in res['dns_records']['mx']:
        print("\n[+] MX Records")
        print(("{domain} ({ip}) {as} {provider} {country}".format(**entry)))
    print("\n[+] Host Records (A)")
    for entry in res['dns_records']['host']:
        if entry['reverse_dns']:
            print(
                ("{domain} ({reverse_dns}) ({ip}) {as} {provider} {country}".format(**entry)))
        else:
            print(("{domain} ({ip}) {as} {provider} {country}".format(**entry)))
    print('\n[+] TXT Records')
    for entry in res['dns_records']['txt']:
        print(entry)
    print '\n[+] DNS Map: https://dnsdumpster.com/static/map/%s.png\n' % domain