!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/S3/   drwxr-xr-x
Free 28.74 GB of 117.98 GB (24.36%)
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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--