Advertisement
rg443

radb country asn query

Dec 17th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var s = document.createElement("script");
  2. s.src = "https://cdnjs.cloudflare.com/ajax/libs/neo-async/2.1.0/async.js";
  3. document.head.appendChild(s);
  4. s.onload = function() {
  5.   var q = async.queue(function(v, callback) {
  6.     fetch("https://www2.rg443.tk/p/radb.php?q=!gas" + v).then(function(r) {
  7.       callback();
  8.       return r.text();
  9.     }).then(function(d) {
  10.       document.body.innerHTML = "<pre>" + d + "</pre>";
  11.       q2.push(d.match(/\d+\.\d+\.\d+\.\d+\/\d+/gim) || []);
  12.     });
  13.   }, 5);
  14.   fetch("https://stat.ripe.net/data/country-asns/data.json?lod=1&resource=at").then(function(r) {
  15.     return r.json();
  16.   }).then(function(d) {
  17.     q.push(d.data.countries[0].routed);
  18.     q.push(d.data.countries[0].non_routed);
  19.     q3.push(d.data.countries[0].routed);
  20.     q3.push(d.data.countries[0].non_routed);
  21.   });
  22.   var q2 = async.queue(function(v, callback) {
  23.     fetch("https://www2.rg443.tk/p/radb.php?q=" + v).then(function(r) {
  24.       callback();
  25.       return r.text();
  26.     }).then(function(d) {
  27.       document.body.innerHTML = "<pre>" + d + "</pre>";
  28.     });
  29.   }, 5);
  30.   q2.drain = function() {
  31.     console.log("q2 done.");
  32.   };
  33.   var q3 = async.queue(function(v, callback) {
  34.     fetch("https://www2.rg443.tk/p/radb.php?q=as" + v).then(function(r) {
  35.       callback();
  36.       return r.text();
  37.     }).then(function(d) {
  38.       document.body.innerHTML = "<pre>" + d + "</pre>";
  39.     });
  40.   }, 5);
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement