View difference between Paste ID: wcWNTLip and GDu4zZ8t
SHOW: | | - or go back to the newest paste.
1
<?php
2
error_reporting(0);
3
/* Description
4
PHPMail Mass Sender v.1.2 Bl4ckAr13s - n0cturn4l#
5
You can use weevely for using with other connection!
6
Req:	-MAIL SERVER
7
		-PHP
8
		-PHP-CLI
9
Copyrigt 2017 n0cturn4lā„¢ Bl4ckAr13s
10
If you need plugin for cms(Wordpress and Joomla)
11
12
contact:	[email protected]
13
			[email protected]
14
*/
15
16
17
#Tag
18
n0cturn4l();
19
20
#Run Script
21
echo "\n-Email\t:";
22
$x_email = rtrim( fgets( STDIN ));
23
isEmail($x_email);
24
echo "-Name\t:";
25
$x_name = rtrim( fgets( STDIN ));
26
isName($x_name);
27
echo "-Subject:";
28
$x_subject = rtrim( fgets( STDIN ));
29
isSubject($x_subject);
30
echo "-Message:";
31
$x_message = rtrim( fgets( STDIN ));
32
isMessage($x_message);
33
echo "-Attachment:";
34
$x_attachment = rtrim( fgets( STDIN ));
35
$headers = "From: $x_name <".$x_email.">";
36
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
37
if($x_attachment==""){
38
	echo "File Added[No!]\n";
39
}
40
else{
41
	echo "File Added[Yes!]";
42
}
43
echo "-EmailFile(.txt)/Email:";
44
$x_tomail = rtrim( fgets( STDIN ));
45
isMailto($x_tomail);
46
echo "-Mail/sec(blank, if you need fast)(example:1 [for send mail/1 sec]\):";
47
$x_mailsec = rtrim( fgets( STDIN ));
48
$x_email_regex_to= preg_match("/(.*)@(.*)/", $x_tomail);
49
if($x_email_regex_to){
50
	echo "Sending to $x_tomail";
51
	$send = mail($x_tomail,$x_subject,$x_message,$headers);
52
	echo $send ? ("[Success]\n"):("[Failed]\n");
53
}
54
else{
55
	echo "-OS(windows/linux)\t:";
56
	$x_os = rtrim( fgets( STDIN ));
57
	if($x_os=="windows"){
58
		$newline_type = "\r\n";
59
	}
60
	else{
61
		$newline_type = "\n";
62
	}
63
	if($x_mailsec==""){
64
		$set_mailsec = "[/fast/]";
65
	}
66
	else{
67
		$set_mailsec = mailsec();
68
	}
69
	$get_email = file_get_contents("$x_tomail");
70
	$explode_mail = explode($newline_type, $get_email);
71
	foreach($x_tomail as $p_tomail){
72
		echo "Sending to $p_tomail";
73
	$send = mail($p_tomail,$x_subject,$x_message,$headers);
74
	echo $send ? ("[Success\n]"):("[Failed\n]");
75
	echo $set_mailsec;
76
	}
77
}
78
echo "\nFinish :D";
79
#Function
80
81
#Valid
82
function isEmail($x_email){
83
$x_email_regex = preg_match("/(.*)@(.*)/", $x_email);
84
if($x_email_regex){
85
}
86
else{
87
	echo "[die]";
88
	die("Please input a valid email!");
89
}
90
}
91
function isName($x_name){
92
if(strlen($x_name)<2){
93
	die("Please input a valid name!");
94
}
95
else{
96
	
97
}
98
}
99
function isSubject($x_subject){
100
if(strlen($x_subject)<4){
101
	die("Please input a valid subject!");
102
}
103
else{
104
	
105
}
106
}
107
function isMessage($x_message){
108
if(strlen($x_message)<4){
109
	die("Please entered a message!");
110
}
111
else{
112
	
113
}
114
}
115
function isMailto($x_tomail){
116
if($x_tomail==""){
117
	die("Please input a client email!");
118
}
119
else{
120
	
121
}
122
}
123
#Set Mail/sec
124
function mailsec($x_mailsec){
125
sleep($x_mailsec);
126
echo "mail/$x_mailsec sec";
127
}
128
#Tag
129
function n0cturn4l(){
130
$a = "                    #cn0c \n"."         #n0c     #n      0 \n"."       #0    n  #0   cn   0#n0    [+]Bl4ckAr13s | Vision_Ard | MR.J0n3s[+] \n"."     #c       0#n  n #n  n0    n \n"."    #0    n    c  c #c  cn      0 \n"."   #n   0 #0   c  cn   0   cn   0 \n"."  #c   n #n   0c     cn   0 #0cn \n"."  #cno   #n0c  #n0cn #n   0 \n"."                      #0   cn \n"."     -n0cturn4L-       #c    0 \n"."                        #n0cn \n"."PHPMail Mass Sender v.1.2 Bl4ckAr13s - n0cturn4l";
131
print $a;
132
}
133
?>