Advertisement
John4711

fortiguard sdns

Nov 11th, 2022
1,016
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.body.onpaste=function(ev){var txt=ev.clipboardData.getData('text'); var a= [... new Set(txt.match(/[a-z0-9_.-]+\.[a-z]+/gim))];window._list1=a;
  2. function aa(){var x=a.shift();if(!x)return false;
  3. fetch("https://www.fortiguard.com/learnmore/dns", {"headers": {"content-type": "application/json;charset=UTF-8"},"body": "{\"value\":\""+x+"\",\"version\":9}","method": "POST"}).then(r=>r.json()).then(d=>{aa();
  4. if (d.found) {d.dns.domain=x;console.log([d.dns.domain,d.dns.categoryname,d.dns.rating].join('\t'));}else {console.log('NOT FOUND',x);}
  5. })            
  6.              }                                  
  7. for (var i=0;i<25;i++)aa();                                  
  8. } // https://www.fortiguard.com/services/sdns
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement