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/soltelcocrm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/soltelcocrm/check_kashplusagent_login.php
<?php

$curl = curl_init();
$url = 'https://172.22.22.180:6099/api/login';
$crmapirequest = '{
    "schemaVersion": "1.0",
    "requestId": "d4245d27-37dc-41f5-ac3b-5ee2fa20c6dd",
    "timestamp": 1646768970707,
    "channel": "Web",
    "systemInfo": {
        "systemId": "",
        "systemSecret": ""
    },
    "serviceInfo": {
        "requestAttributes": {
            "deviceId": "",
            "deviceIdType": "",
            "locationInformation": {
                "locationInfoType": "",
                "cellId": "",
                "LACId": "",
                "MNC": "",
                "MCC": "",
                "IP": "",
                "MAC": "",
                "latitude": "",
                "longitude": ""
            },
            "subscriptionId": "",
            "username": "crmadmin",
            "userType": "DISTRIBUTOR",
            "userNature": "ADMIN",
            "userPassword": "Crm##43251@",
            "currencyCode": "840",
            "channelName": "",
            "serviceType": ""
        },
        "serviceCode": "0103",
        "serviceName": "CustomerLogin"
    }
}';
curl_setopt_array($curl, array(
    CURLOPT_URL => $url,
    CURLOPT_PORT => 6099,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS =>$crmapirequest,
    CURLOPT_HTTPHEADER => array(
        'Content-Type: application/json'
    ),
));
$response = curl_exec($curl);
$arrResponse = json_decode($response,true);
curl_close($curl);
$sessionId = $arrResponse['serviceInfo']['responseAttributes']['sessionId'];


$curl = curl_init();
$url = 'https://172.22.22.180:6099/api/cashActivityByPartnerUID';
$crmapirequest = '{
    "schemaVersion": "1.0",
    "requestId": "81e0d6b0-3ee6-468c-8f23-cf866685afac",
    "timestamp": 1657536304367,
    "channel": "Web",
    "systemInfo": {
        "systemId": "",
        "systemSecret": ""
    },
    "serviceInfo": {
        "requestAttributes": {
            "deviceId": "",
            "deviceIdType": "",
            "locationInformation": {
                "locationInfoType": "",
                "cellId": "",
                "LACId": "",
                "MNC": "",
                "MCC": "",
                "IP": "",
                "MAC": "",
                "latitude": "",
                "longitude": ""
            },
            "accountId": 0,
            "currencyId": 218,
            "customerActivityStartDate": "2022-04-11",
            "customerActivityEndDate": "2022-07-11",
            "sessionId": "'.$sessionId.'",
            "partnerUID": "700024",
            "parentPartnerId": 0,
            "userType": "AGENT"
        },
        "serviceCode": "2110",
        "serviceName": "AgentCashActivity"
    }
}';
curl_setopt_array($curl, array(
    CURLOPT_URL => $url,
    CURLOPT_PORT => 6099,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_POSTFIELDS =>$crmapirequest,
    CURLOPT_HTTPHEADER => array(
        'Content-Type: application/json'
    ),
));
$response = curl_exec($curl);
$arrResponse = json_decode($response,true);
echo "<pre>";
print_r($arrResponse);

Youez - 2016 - github.com/yon3zu
LinuXploit