-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmail.php
75 lines (58 loc) · 2.23 KB
/
mail.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
function get_data($smtp_conn)
{
$data="";
while($str = fgets($smtp_conn,515))
{
$data .= $str;
if(substr($str,3,1) == " ") { break; }
}
return $data;
}
$header="Date: ".date("D, j M Y G:i:s")." +0700\r\n";
$header.="From: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Ñàøà')))."?= <[email protected]>\r\n";
$header.="X-Mailer: The Bat! (v3.99.3) Professional\r\n";
$header.="Reply-To: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Ñàøà')))."?= <[email protected]>\r\n";
$header.="X-Priority: 3 (Normal)\r\n";
$header.="Message-ID: <172562218.".date("YmjHis")."@mail.ru>\r\n";
$header.="To: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Ñàøà')))."?= <[email protected]>\r\n";
$header.="Subject: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('ïðîâåðêà')))."?=\r\n";
$header.="MIME-Version: 1.0\r\n";
$header.="Content-Type: text/plain; charset=windows-1251\r\n";
$header.="Content-Transfer-Encoding: 8bit\r\n";
$text="ïðèâåò, ïðîâåðêà ñâÿçè.";
$smtp_conn = fsockopen('94.100.177.1', 2525,$errno, $errstr, 10);
//if (! $smtp_conn) print_r($smtp_conn);
//echo gethostbyname("smtp.rambler.ru");
echo "</br>".$errstr;
exit;
//$data = get_data($smtp_conn);
echo $data."</br>";
fputs($smtp_conn,"EHLO mail.ru\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,"AUTH LOGIN\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,base64_encode("[email protected]")."\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,base64_encode("cybergroup224")."\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,"MAIL FROM:[email protected]\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,"RCPT TO:[email protected]\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,"DATA\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,$header."\r\n".$text."\r\n.\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
fputs($smtp_conn,"QUIT\r\n");
//$data = get_data($smtp_conn);
//echo $data."</br>";
?>