Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
cotizadorinsepet /
prearmado /
[ HOME SHELL ]
Name
Size
Permission
Action
.sass-cache
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
fonts
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
scss
[ DIR ]
drwxr-xr-x
vendor
[ DIR ]
drwxr-xr-x
apple-touch-icon.png
16.53
KB
-rw-r--r--
enviar.php
3.45
KB
-rw-r--r--
favicon-16x16.png
2.47
KB
-rw-r--r--
favicon-32x32.png
3.52
KB
-rw-r--r--
index.html
52.3
KB
-rw-r--r--
readme.txt
130
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : enviar.php
<?php /* Creado por Engelberth Script que gestiona el envío de un formulario por correo electrónico a la cuenta indicada. */ require("../PHPMailer/src/PHPMailer.php"); require("../PHPMailer/src/SMTP.php"); //Correo de destino; donde se enviará el correo. $correoDestino = "mercadeo@insepet.com"; //Texto emisor; sólo lo leerá quien reciba el contenido. $textoEmisor = "MIME-VERSION: 1.0\r\n"; $textoEmisor .= "Content-type: text/html; charset=UTF-8\r\n"; $textoEmisor .= "From: Formulario creado desde Cotizador de Insepet"; /* Recopilo los datos vía POST Con strip_tags suprimo etiquetas HTML y php para evitar una posible inyección. Como no gestiona base de datos no es necesario limpiar de inyección SQL. */ $nombre = strip_tags($_POST['Nombre']); $correo = strip_tags($_POST['Email']); $telefono = strip_tags($_POST['Telefono']); $ciudad = strip_tags($_POST['Ciudad']); $comentario = strip_tags($_POST['Mensaje']); $movil = strip_tags($_POST['movil']); $pais = strip_tags($_POST['pais']); $equipoFinal = strip_tags($_POST['equipo-final']); $marcas = strip_tags($_POST['marcas']); $producto1 = strip_tags($_POST['producto1']); $producto2 = strip_tags($_POST['producto2']); $producto3 = strip_tags($_POST['producto3']); $producto4 = strip_tags($_POST['producto4']); //Formateo el asunto del correo $asunto = "Equipo Pre-Armado - $nombre"; //Formateo el cuerpo del correo $cuerpo = "<b>DATOS PERSONALES DEL SOLICITANTE</b><br />"; $cuerpo .= "<br />"; $cuerpo .= "<b>Nombre:</b> " . $nombre . "<br />"; $cuerpo .= "<b>E-mail:</b> " . $correo . "<br />"; $cuerpo .= "<b>Teléfono: </b>" . $telefono . "<br />"; $cuerpo .= "<b>Ciudad: </b>" . $ciudad . "<br />"; $cuerpo .= "<b>Mensaje:</b> " . $comentario . "<br />"; $cuerpo .= "<br />"; $cuerpo .= "<b>DATOS DE EQUIPO A COTIZAR</b><br />"; $cuerpo .= "<br />"; $cuerpo .= "<b>Tipo de automovil:</b> " . $movil . "<br />"; $cuerpo .= "<b>Modelo de Equipo:</b> " . $equipoFinal . "<br />"; $cuerpo .= "<b>Marca:</b> " . $marcas . "<br />"; $cuerpo .= "<b>Productos:</b> " . $producto1 . "<br />"; $cuerpo .= "<b>Productos:</b> " . $producto2 . "<br />"; $cuerpo .= "<b>Productos:</b> " . $producto3 . "<br />"; $cuerpo .= "<b>Productos:</b> " . $producto4 . "<br />"; // Envío el mensaje //mail( $correoDestino, $asunto, $cuerpo, $textoEmisor); $mail = new PHPMailer\PHPMailer\PHPMailer(); $mail->CharSet = "UTF-8"; $mail->IsSMTP(); // enable SMTP $mail->SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only $mail->SMTPAuth = true; // authentication enabled $mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for Gmail $mail->Host = "mail.insepet.com"; $mail->Port = 465; // or 587 $mail->IsHTML(true); $mail->Username = "mercadeo@insepet.com"; $mail->Password = "Cosecha592"; $mail->SetFrom("mercadeo@insepet.com"); $mail->Subject = $asunto; $mail->Body = $cuerpo; $mail->AddAddress($correoDestino); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { switch($_POST['accion']) { case '¡Asegurar mi equipo!': header("location:https://insepet.com/tienda/module/linktocart/direct?id_product=77&qty=1&SubmitCurrency=1&id_currency=1"); // Te llevará a la tienda break; case 'Cotizar': header("location:https://insepet.com/nosotros/gracias.html"); // Te llevará a la página "gracias" break; } } //header("location:https://insepet.com/TestEngel/web/nosotros/gracias.html"); ?>
Close