Advertisement
Guest User

tetss

a guest
Jan 26th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var randomstring = require("randomstring");
  2. var request = require("request");
  3. var colors = require('colors');
  4. var fs = require('fs');
  5. setInterval(function(){
  6.  
  7. with open('Words.txt') as f:
  8.     Words = [line.rstrip() for line in f]
  9.  
  10.  
  11. options = { method: 'GET',
  12.   url: 'http://nitestats.com/byte-username-checker/?usernames=' + code + "&json=true",
  13. };
  14.  
  15. request(options, function (error, response, body)  {
  16.           if (error) throw new Error(error);
  17.  
  18. var splitcode = code.match(/.{1,5}/g)
  19.  
  20. if(body.includes("Invalid")){
  21.     console.log(splitcode.join("-") + " - Invalid".red)
  22.    
  23. }
  24. else{
  25.    
  26.     options = { method: 'GET',
  27.   url: 'http://nitestats.com/byte-username-checker/?usernames=' + code + "&json=true",
  28. };
  29.  
  30. request(options, function (error, response, body)  {
  31.           if (error) throw new Error(error);
  32.          
  33.           if(body.includes("Invalid")){
  34.               console.log("False username!")
  35.           }
  36.          
  37.           else{
  38.          
  39.     fs.writeFile(splitcode.join("-") + ".txt", body, function(err) {
  40.     if(err) {
  41.         return console.log(err);
  42.     }
  43.     })
  44.     console.log(splitcode.join("-") + " VALID Username!".green)}
  45. })
  46. }
  47. })
  48. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement