Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- /* Description
- PHPMail Mass Sender v.1.2 Bl4ckAr13s - n0cturn4l#
- You can use weevely for using with other connection!
- Req: -MAIL SERVER
- -PHP
- -PHP-CLI
- Copyrigt 2017 n0cturn4l™ Bl4ckAr13s
- If you need plugin for cms(Wordpress and Joomla)
- contact: [email protected]
- */
- #Tag
- n0cturn4l();
- #Run Script
- echo "\n-Email\t:";
- $x_email = rtrim( fgets( STDIN ));
- isEmail($x_email);
- echo "-Name\t:";
- $x_name = rtrim( fgets( STDIN ));
- isName($x_name);
- echo "-Subject:";
- $x_subject = rtrim( fgets( STDIN ));
- isSubject($x_subject);
- echo "-Message:";
- $x_message = rtrim( fgets( STDIN ));
- isMessage($x_message);
- echo "-Attachment:";
- $x_attachment = rtrim( fgets( STDIN ));
- $headers = "From: $x_name <".$x_email.">";
- $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
- if($x_attachment==""){
- echo "File Added[No!]\n";
- }
- else{
- echo "File Added[Yes!]";
- }
- echo "-EmailFile(.txt)/Email:";
- $x_tomail = rtrim( fgets( STDIN ));
- isMailto($x_tomail);
- echo "-Mail/sec(blank, if you need fast)(example:1 [for send mail/1 sec]\):";
- $x_mailsec = rtrim( fgets( STDIN ));
- $x_email_regex_to= preg_match("/(.*)@(.*)/", $x_tomail);
- if($x_email_regex_to){
- echo "Sending to $x_tomail";
- $send = mail($x_tomail,$x_subject,$x_message,$headers);
- echo $send ? ("[Success]\n"):("[Failed]\n");
- }
- else{
- echo "-OS(windows/linux)\t:";
- $x_os = rtrim( fgets( STDIN ));
- if($x_os=="windows"){
- $newline_type = "\r\n";
- }
- else{
- $newline_type = "\n";
- }
- if($x_mailsec==""){
- $set_mailsec = "[/fast/]";
- }
- else{
- $set_mailsec = mailsec();
- }
- $get_email = file_get_contents("$x_tomail");
- $explode_mail = explode($newline_type, $get_email);
- foreach($x_tomail as $p_tomail){
- echo "Sending to $p_tomail";
- $send = mail($p_tomail,$x_subject,$x_message,$headers);
- echo $send ? ("[Success\n]"):("[Failed\n]");
- echo $set_mailsec;
- }
- }
- echo "\nFinish :D";
- #Function
- #Valid
- function isEmail($x_email){
- $x_email_regex = preg_match("/(.*)@(.*)/", $x_email);
- if($x_email_regex){
- }
- else{
- echo "[die]";
- die("Please input a valid email!");
- }
- }
- function isName($x_name){
- if(strlen($x_name)<2){
- die("Please input a valid name!");
- }
- else{
- }
- }
- function isSubject($x_subject){
- if(strlen($x_subject)<4){
- die("Please input a valid subject!");
- }
- else{
- }
- }
- function isMessage($x_message){
- if(strlen($x_message)<4){
- die("Please entered a message!");
- }
- else{
- }
- }
- function isMailto($x_tomail){
- if($x_tomail==""){
- die("Please input a client email!");
- }
- else{
- }
- }
- #Set Mail/sec
- function mailsec($x_mailsec){
- sleep($x_mailsec);
- echo "mail/$x_mailsec sec";
- }
- #Tag
- function n0cturn4l(){
- $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";
- print $a;
- }
- ?>
Add Comment
Please, Sign In to add comment