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


Viewing file:     AmbiguousSuccessParser.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Aws\S3;

use 
Aws\Api\Parser\AbstractParser;
use 
Aws\Api\Parser\Exception\ParserException;
use 
Aws\Api\StructureShape;
use 
Aws\CommandInterface;
use 
Aws\Exception\AwsException;
use 
Psr\Http\Message\ResponseInterface;
use 
Psr\Http\Message\StreamInterface;

/**
 * Converts errors returned with a status code of 200 to a retryable error type.
 *
 * @internal
 */
class AmbiguousSuccessParser extends AbstractParser
{
    private static 
$ambiguousSuccesses = [
        
'UploadPart' => true,
        
'UploadPartCopy' => true,
        
'CopyObject' => true,
        
'CompleteMultipartUpload' => true,
    ];

    
/** @var callable */
    
private $errorParser;
    
/** @var string */
    
private $exceptionClass;

    public function 
__construct(
        callable 
$parser,
        callable 
$errorParser,
        
$exceptionClass AwsException::class
    ) {
        
$this->parser $parser;
        
$this->errorParser $errorParser;
        
$this->exceptionClass $exceptionClass;
    }

    public function 
__invoke(
        
CommandInterface $command,
        
ResponseInterface $response
    
) {
        if (
200 === $response->getStatusCode()
            && isset(
self::$ambiguousSuccesses[$command->getName()])
        ) {
            
$errorParser $this->errorParser;
            try {
                
$parsed $errorParser($response);
            } catch (
ParserException $e) {
                
$parsed = [
                    
'code' => 'ConnectionError',
                    
'message' => "An error connecting to the service occurred"
                        
" while performing the " $command->getName()
                        . 
" operation."
                
];
            }
            if (isset(
$parsed['code']) && isset($parsed['message'])) {
                throw new 
$this->exceptionClass(
                    
$parsed['message'],
                    
$command,
                    [
'connection_error' => true]
                );
            }
        }

        
$fn $this->parser;
        return 
$fn($command$response);
    }

    public function 
parseMemberFromStream(
        
StreamInterface $stream,
        
StructureShape $member,
        
$response
    
) {
        return 
$this->parser->parseMemberFromStream($stream$member$response);
    }
}

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