swaggboi

Untitled

May 26th, 2023
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env node
  2.  
  3. const hostnames = require('yargs').argv;
  4. const dnsPacket = require('dns-packet');
  5.  
  6. hostnames._.forEach((hostname) => {
  7.     let query = dnsPacket.encode({
  8.         questions: [{name: hostname, type: 'A'}]
  9.     });
  10.  
  11.     console.log(encodeURIComponent(query.toString('base64')));
  12. });
Add Comment
Please, Sign In to add comment