Advertisement
rg443

more (identipy)

Jan 28th, 2018
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function more1(link) {
  2.     fetch(link).then(function(r) {
  3.         return r.text()
  4.     }).then(function(d) {
  5.         var m = d.match(/<a href="(\/(dns|ns|mx)\/.*?)">more<\/a>/);
  6.         var _next = m ? m[1] : null;
  7.  
  8.         // if(_next) more1(_next);
  9.         var l = Array.from(new Set(d.match(/(\b[a-z0-9_\-.]+\.[a-z]{2,64}\b)|(\b\d+\.\d+\.\d+\.\d+\b)/gim))) || [];
  10.         // console.log(l);
  11.         var q = async.queue(function(v, callback) {
  12.             v = v.toLowerCase();
  13.             fetch("https://www2.rg443.tk/p/d2.php?q=" + v).then(function(r) {
  14.                 return r.text()
  15.             }).then(function(d) {
  16.                 console.log('\t' + v.padEnd(35, ' '), d);
  17.                 callback();
  18.             }).catch(function(err) {
  19.                 callback();
  20.                 console.log(err);
  21.             });
  22.         }, 5);
  23.         q.drain = function() {
  24.             console.log(_next);
  25.             if (_next) more1(_next);
  26.             if (!_next) console.log("done.");
  27.         }
  28.         q.push(l);
  29.  
  30.     })
  31.  
  32.  
  33. }
  34. var s = document.createElement("script");
  35. s.src = "https://cdnjs.cloudflare.com/ajax/libs/neo-async/2.3.0/async.js";
  36. document.head.appendChild(s);
  37. s.onload = function() {
  38.     more1(location.href);
  39. } // https://identipy.com/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement