!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/aws/aws-sdk-php/src/Api/Serializer/   drwxr-xr-x
Free 13.1 GB of 57.97 GB (22.6%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     JsonRpcSerializer.php (2.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Aws\Api\Serializer;

use 
Aws\Api\Service;
use 
Aws\CommandInterface;
use 
Aws\EndpointV2\EndpointProviderV2;
use 
Aws\EndpointV2\EndpointV2SerializerTrait;
use 
GuzzleHttp\Psr7\Request;
use 
Psr\Http\Message\RequestInterface;

/**
 * Prepares a JSON-RPC request for transfer.
 * @internal
 */
class JsonRpcSerializer
{
    use 
EndpointV2SerializerTrait;

    
/** @var JsonBody */
    
private $jsonFormatter;

    
/** @var string */
    
private $endpoint;

    
/** @var Service */
    
private $api;

    
/** @var string */
    
private $contentType;

    
/**
     * @param Service  $api           Service description
     * @param string   $endpoint      Endpoint to connect to
     * @param JsonBody $jsonFormatter Optional JSON formatter to use
     */
    
public function __construct(
        
Service $api,
        
$endpoint,
        
JsonBody $jsonFormatter null
    
) {
        
$this->endpoint $endpoint;
        
$this->api $api;
        
$this->jsonFormatter $jsonFormatter ?: new JsonBody($this->api);
        
$this->contentType JsonBody::getContentType($api);
    }

    
/**
     * When invoked with an AWS command, returns a serialization array
     * containing "method", "uri", "headers", and "body" key value pairs.
     *
     * @param CommandInterface $command Command to serialize into a request.
     * @param $endpointProvider Provider used for dynamic endpoint resolution.
     * @param $clientArgs Client arguments used for dynamic endpoint resolution.
     *
     * @return RequestInterface
     */
    
public function __invoke(
        
CommandInterface $command,
        
$endpointProvider null,
        
$clientArgs null
    
)
    {
        
$operationName $command->getName();
        
$operation $this->api->getOperation($operationName);
        
$commandArgs $command->toArray();
        
$headers = [
                
'X-Amz-Target' => $this->api->getMetadata('targetPrefix') . '.' $operationName,
                
'Content-Type' => $this->contentType
            
];

        if (
$endpointProvider instanceof EndpointProviderV2) {
            
$this->setRequestOptions(
                
$endpointProvider,
                
$command,
                
$operation,
                
$commandArgs,
                
$clientArgs,
                
$headers
            
);
        }

        return new 
Request(
            
$operation['http']['method'],
            
$this->endpoint,
            
$headers,
            
$this->jsonFormatter->build(
                
$operation->getInput(),
                
$commandArgs
            
)
        );
    }
}

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