Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 'Off');
- echo '<body background="https://temporarytattoos.com/pub/media/catalog/product/cache/image/700x560/e9c3970ab036de70892d86c6d221abfe/h/i/hipster-fox-temporary-tattoo-6222.jpg"></body>';
- print '<!DOCTYPE html>
- <html><head><title></title></head><body><center><h1>SPAMFOX</h1></center>
- <hr align="center" width="1350" size="2" color="#A9A9A9" /><br></body></html>';
- $from = $_SERVER['HTTP_HOST'].'@mail.com';
- function generatemail($length = 19){ // Генерирование email
- $email = 'abdefhiknrstyzABDEFGHKNQRSTYZ234567892001ISDNDLFJLSDOJFPAKASQGM';
- $numChars = strlen($email);
- global $string;
- $string = '';
- for ($i = 0; $i < $length; $i++) {
- $string .= substr($email, rand(1, $numChars) - 1, 1);
- $string1 .= substr($email, rand(1, $numChars) - 1, 1);
- }
- $string = $string.'@mail.com';
- echo $string;
- $message = $_GET['mess'];
- $headers = $_GET['head'];
- $subject = $_GET['subj'];
- if (mail($string,$subject,$message,$headers,'-f'.$from)) {echo "Yes!!!<br/>";}
- $string1 = $string1.'@mail.ru';
- if (mail($string1,$subject,$message,$headers,'-f'.$from)) {echo "<br/>";}
- else {
- $connect = fsockopen($server, 25, $errno, $errstr, 30);
- fputs($connect, "Hi\r\n");
- fputs($connect, "MAIL FROM: $from\n");
- fputs($connect, "RCPT TO: $to\n");
- fputs($connect, "DATA\r\n");
- fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\n");
- fputs($connect, "To: $to\n");
- fputs($connect, "Subject: $subject\n");
- fputs($connect, "\n\n");
- fputs($connect, stripslashes($message)." \r\n");
- fputs($connect, ".\r\n");
- fputs($connect, "RSET\r\n");
- }
- }
- function spam(){
- // Указываем параиетры отправки
- $message = $_GET['mess'];
- $headers = $_GET['head'];
- $subject = $_GET['subj'];
- // Считываем mail адреса
- $text = file_get_contents('http://pastebin.com/raw/djxaViTq');
- $f = fopen('w.txt', 'w');
- fwrite($f, $text);
- fclose($f);
- $text = fopen("w.txt", "r");
- $array = null;
- if ($text) {
- while (($buffer = fgets($text)) !== false) {
- $array[] = $buffer;
- }
- }
- fclose($text);
- foreach ($array as $key) {
- echo $key;
- if(isset($_GET['file'])){$r = sendMailAttachment($key, $from, $subject, $message, $file);}
- mail($key,$subject,$message,$headers,'-f'.$from);
- }
- $server = $_GET['server'];
- $message = $_GET['mess'];
- $connect = fsockopen($server, 25, $errno, $errstr, 30);
- fputs($connect, "Hi\r\n");
- fputs($connect, "MAIL FROM: $from\n");
- fputs($connect, "RCPT TO: $to\n");
- fputs($connect, "DATA\r\n");
- fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\n");
- fputs($connect, "To: $to\n");
- fputs($connect, "Subject: $subject\n");
- fputs($connect, "\n\n");
- fputs($connect, stripslashes($message)." \r\n");
- fputs($connect, ".\r\n");
- fputs($connect, "RSET\r\n");
- }
- function sendMailAttachment($string, $from, $subject, $message, $file = false){ // С вложением (не мое)
- $separator = "---";
- $headers = "MIME-Version: 1.0\r\n";
- $headers .= "From: $from\nReply-To: $from\n";
- $headers .= "Content-Type: multipart/mixed; boundary=\"$separator\"";
- if($file){
- $bodyMail = "--$separator\n"; // начало тела письма, выводим разделитель
- $bodyMail .= "Content-type: text/html; charset='utf-8'\n"; // кодировка письма
- $bodyMail .= "Content-Transfer-Encoding: quoted-printable"; // задаем конвертацию письма
- $bodyMail .= "Content-Disposition: attachment; filename==?utf-8?B?".base64_encode(basename($file))."?=\n\n";
- $bodyMail .= $message."\n";
- $bodyMail .= "--$separator\n";
- $fileRead = fopen($file, "r"); // открываем файл
- $contentFile = fread($fileRead, filesize($file));
- fclose($fileRead);
- $bodyMail .= "Content-Type: application/octet-stream; name==?utf-8?B?".base64_encode(basename($file))."?=\n";
- $bodyMail .= "Content-Transfer-Encoding: base64\n";
- $bodyMail .= "Content-Disposition: attachment; filename==?utf-8?B?".base64_encode(basename($file))."?=\n\n";
- $bodyMail .= chunk_split(base64_encode($contentFile))."\n"; // кодируем и прикрепляем файл
- $bodyMail .= "--".$separator ."--\n";
- }else{
- $bodyMail = $message;
- }
- $result = mail($string, $subject, $bodyMail, $headers);
- return $result;
- }
- function script(){
- print '<script type="text/javascript">
- function locs(){
- document.location.href="'.$_GET['address'].'";
- }
- setTimeout("locs()", 10);
- </script>';
- }
- $timei = time();
- $time = $_GET['time'];
- while (time() - $timei < $time) {
- echo generatemail(9);
- spam();
- script();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement