fcavallarin / htcap

htcap is a web application scanner able to crawl single page application (SPA) recursively by intercepting ajax calls and DOM changes.
GNU General Public License v2.0
610 stars 114 forks source link

probe option scene : meta/url #32

Closed ring04h closed 5 years ago

ring04h commented 6 years ago
<meta http-equiv=refresh content="1;url=ccnt/sczr/login" >
ring04h commented 6 years ago
var metas = document.getElementsByTagName("meta");

for (var a = 0; a < metas.length; a++) {
    if (metas[a].getAttribute("http-equiv") == 'refresh') {
        var meta_url = metas[a].getAttribute("content").split("url=")[1];
    }
}

console.log(meta_url);