403Webshell
Server IP : 159.223.102.202  /  Your IP : 216.73.216.193
Web Server : nginx/1.26.0
System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User : albasshbotta ( 1021)
PHP Version : 8.2.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/bottaingenieriaUep/htdocs/www.bottaingenieria.com.ar/clases/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/bottaingenieriaUep/htdocs/www.bottaingenieria.com.ar/clases/guardarmail.php
<?php
//incluir clases
require_once "conexion.php";
require_once('class.phpmailer.php');

if (isset($_POST['name'])) {
    
    $enviado = false;
    $motivo = "";
    $popup = ($_POST["popup"] != "")  ? "popup=true" : "" ;
    $owner_email = "hernan@bottaingenieria.com.ar";
    $subject = 'Contacto: (desde WEB) ' . $_POST["subject"]. 'Seccion: '.$_POST["seccion"];

    $messageBody = "<body>";
    $messageBody .= '<p>Nombre: ' . $_POST["name"] . '</p>' . "\n";
    
    $messageBody .= '<p>Asunto: ' . $subject . '</p>' . "\n";
    
    $messageBody .= '<p>Email: ' . $_POST['email'] . '</p>' . "\n";
    
    $messageBody .= '<p>Telefono: ' . $_POST['phone'] . '</p>' . "\n";
      
    $messageBody .= '<p>Mensaje: ' . $_POST['message'] . '</p>' . "\n";
    $messageBody .= "</body>";

    if($_POST["stripHTML"] == 'true'){
      $messageBody = strip_tags($messageBody);
    }
    
    try{
        //crear objeto mail
        $mail = new PHPMailer(); // defaults to using php "mail()"

        //$body = "<body><h1>Miren que lindo que salio el email</h1></body>";
        //fijar destinatario/s
        $mail->CharSet="utf-8";

        $mail->AddAddress($owner_email , "Contacto Botta Ingenieria");

        //fijar a quien responder
        $mail->AddReplyTo($_POST['email'],$_POST["name"]);

        //fijar quien lo mando! esto esta especial para pescar despistados
        $mail->SetFrom($_POST['email'], $_POST["name"]);

        //fijar Copia Carbon Oculta - esto no me anduvo
//        $mail->AddBCC('hernan.botta@sametsis.com.ar', 'Contacto');
//        $mail->AddBCC('leandro.caballero@sametsis.com.ar', 'Contacto');

        //Asunto
        $mail->Subject = $subject;

        //cuerpo alternativo si el cliente de email no soporta html
        $mail->AltBody    = "Para ver el mensaje, por favor utiliza un cliente con soporte HTML!"; 

        $mail->MsgHTML($messageBody);    



        if(!$mail->Send()){
           $enviado = false;
          }else{
             $enviado = true;

                $mail2 = new PHPMailer(); // defaults to using php "mail()"

                //$body = "<body><h1>Miren que lindo que salio el email</h1></body>";
                //fijar destinatario/s
                $mail2->CharSet="utf-8";

                $mail2->AddAddress($_POST['email'] , $_POST["name"]);

                //fijar a quien responder
                $mail2->AddReplyTo("info@bottaingenieria.com.ar","Botta Ingenieria");

                //fijar quien lo mando! esto esta especial para pescar despistados
                $mail2->SetFrom("info@bottaingenieria.com.ar","Botta Ingenieria");

                //Asunto
                $mail2->Subject = "Consulta a Botta Ingenieria";
    //          $mail2->AddEmbeddedImage('images/logo_only_3.png', 'logosolo', 'images/logo_only_3.png');
    //          $mail2->AddEmbeddedImage('images/logo2.png', 'logotexto', 'images/logo2.png');
                //cuerpo alternativo si el cliente de email no soporta html
                $mail2->AltBody    = "Para ver el mensaje, por favor utiliza un cliente con soporte HTML!"; 
                $body=file_get_contents('http://www.bottaingenieria.com.ar/mailing/mailgracias.php?name='.$_POST["name"]);
                $mail2->MsgHTML($body); 
                $mail2->Send();


          }
    }catch(Exception $e){
        $enviado = false;
        $motivo = "error: ". $e->getMessage();
    }    

    $con = new conexion();
    $link = $con ->GetLink();
    if($link){
        
        $vNombre=$_POST['name'];
        $vAsunto=$subject;
        $vAsunto.=$enviado?" - Enviado":" - No enviado";
        
        $vTelefono=$_POST['phone'];
        $vEmail=$_POST['email'];
        $vMensaje=$_POST['message'];
        $vMensaje.="\n";
        $vMensaje.=$enviado ? "": $motivo;
        $vIp=$_SERVER['REMOTE_ADDR'];
        $query = "INSERT INTO `contacto` (`nombre` ,`asunto` ,`telefono`,`email` ,`mensaje` ,`fecha_hora` ,`ip` )
        VALUES ('$vNombre', '$vAsunto','$vTelefono', '$vEmail', '$vMensaje', NOW( ) , '$vIp')";

        $result = mysqli_query( $link,$query);

        mysqli_close($link);

               
    }
    
//    if($enviado){
//       header("Location: contacto.php?m=1&$popup");
//    }else{
//       //echo "estoy aca".mysql_errno().$link;
//       header("Location: contacto.php?m=error&$popup");
//    }

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit