Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2018
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function search(){
  2. var needle = require("needle");
  3. var cheerio = require("cheerio");
  4. var balance = require('crypto-balances');
  5. var password = "";
  6. var count = 64;
  7. var chars = "abcdef1234567890";
  8.  
  9. for (var i = 0; i < count; i++)
  10. {
  11. password += chars.charAt(Math.floor(Math.random() * chars.length));
  12. }
  13.  
  14. var url = "https://addresskeys.com/eth-address?id="+password;
  15. needle.get(url,function(err,res){
  16.     var $ = cheerio.load(res.body);
  17.     address = $('strong').html();
  18.     balance(address, function(error, result) {
  19.         var quantity = result[0].quantity;
  20.         switch(quantity) {
  21.         case '0':  
  22.             console.log('\x1b[41m[NOPE]\x1b[0m['+quantity+' ETH] '+address+' (key: '+password+')');
  23.         break;
  24.         case 'undefined':  
  25.             console.log('\x1b[34m[ERR!]\x1b[0m['+quantity+' ETH] '+address+' (key: '+password+')');
  26.         break;
  27.         default:
  28.             console.log('\x1b[42m[FIND]\x1b[0m['+quantity+' ETH] '+address+' (key: '+password+')');
  29.         break;
  30. }
  31.     });
  32. });
  33. }
  34. setInterval(search, 10000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement