Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array.prototype.unique=function(){var c={},d=[],b,a;for(b=0;a=this[b];b++)c[a]=1;for(a in c)d.push(a);return d};
- var dl=document.body.innerHTML.match(/[a-z0-9_\-]+\.[a-z]{2,64}(?=\t)/gim).unique().sort();
- var qm=5;ql=0;
- function fetch1(){
- var v=dl.shift();
- if (v && ql<qm) {
- v=v.toLowerCase();
- ql++
- fetch("/p/tc.php?q="+v)
- .then(function(r){ql--;return r.json()})
- .then(function(d){
- //console.log(v,d);
- for(var i=0;i<qm-ql;i++) fetch1();
- if (d.subdomains) {console.log(v,d.subdomains.slice(0,10).join(", ").toLowerCase()); d2q=d2q.concat(d.subdomains)}
- if (d.resolutions) {
- var ips=d.resolutions.map(function(v){return v.ip_address})
- console.log(v,ips.slice(0,10).join(", "))
- d2q=d2q.concat(d.ips)
- }
- if (d2q.length && ql2<qm) fetch2(d2q.shift());
- })
- }
- }
- var d2q=[],ql2=0;
- function fetch2(h) {
- ql2++;
- fetch("https://rg443.tk/p/d2.php?q="+h)
- .then(function(r){ql2--;return r.text()})
- .then(function(d){
- console.log(h,d);
- for (var i=0;i<qm-ql2;i++,h=d2q.shift()) {
- if (h) {fetch2(h)}
- }
- })
- }
- // d2q=d2q.concat(dl);
- fetch1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement