!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/jiff/app/Helpers/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Helpers;

use 
GuzzleHttp\Client;

class 
CloudflareAPIHelper
{
    private 
$client;
    private 
$accountId;
    private 
$apiKey;

    public function 
__construct()
    {
        
$this->client = new Client([
            
'base_uri' => 'https://api.cloudflare.com/client/v4/accounts/',
            
'headers' => [
                
'Authorization' => 'Bearer ' env('CLOUDFLARE_API_KEY'),
                
'Content-Type' => 'application/json',
            ],
        ]);

        
$this->accountId env('CLOUDFLARE_ACCOUNT_ID');
        
$this->apiKey env('CLOUDFLARE_API_KEY');
    }

    public function 
put($namespaceId$key$value)
    {
        
$response $this->client->request(
            
'PUT',
            
$this->buildEndpoint($namespaceId$key),
            [
                
// 'json' => 'value' //for string
                
'json' => $value,
            ]
        );

        return 
$response->getStatusCode() === 200;
    }

    public function 
get($namespaceId$key)
    {
        try {
            
$response $this->client->request(
                
'GET',
                
$this->buildEndpoint($namespaceId$key)
            );
        
            
$content json_decode($response->getBody()->getContents(), true);
        
            if (
$response->getStatusCode() === 200 ) {
                return 
$content;
            }
            return 
null;
        }catch (
\Exception $exception) {
            return 
null;
        }
        
    }
    public function 
delete($namespaceId$key)
    {
        
$response $this->client->request(
            
'DELETE',
            
$this->buildEndpoint($namespaceId$key)
        );
   
        return 
$response->getStatusCode() === 204;
    }
    private function 
buildEndpoint($namespaceId$key)
    {
        return 
$this->accountId '/storage/kv/namespaces/' $namespaceId '/values/' $key;
    }
}

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