Advertisement
John4711

greynoise_ips

Jul 25th, 2022
869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var meta=await fetch("https://viz.greynoise.io/api/enterprise/v2/meta/metadata").then(r=>r.json());var ips=[];
  2. for (var x of meta.metadata) {
  3.    var d= await fetch(`https://viz.greynoise.io/api/v3/tags/${x.id}/ips/download?days=30&format=json`).then(r=>r.ok?r.json():{});
  4.    if(d.ips.length>0){console.log(d);ips=ips.concat(d.ips);}
  5.    }
  6. ips=Array.from(new Set(ips));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement