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


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

use 
GuzzleHttp\Psr7\StreamDecoratorTrait;
use 
Psr\Http\Message\StreamInterface;

/**
 * Stream decorator that calculates a rolling hash of the stream as it is read.
 */
class HashingStream implements StreamInterface
{
    use 
StreamDecoratorTrait;

    
/** @var StreamInterface */
    
private $stream;

    
/** @var HashInterface */
    
private $hash;

    
/** @var callable|null */
    
private $callback;

    
/**
     * @param StreamInterface $stream     Stream that is being read.
     * @param HashInterface   $hash       Hash used to calculate checksum.
     * @param callable        $onComplete Optional function invoked when the
     *                                    hash calculation is completed.
     */
    
public function __construct(
        
StreamInterface $stream,
        
HashInterface $hash,
        callable 
$onComplete null
    
) {
        
$this->stream $stream;
        
$this->hash $hash;
        
$this->callback $onComplete;
    }

    public function 
read($length)
    {
        
$data $this->stream->read($length);
        
$this->hash->update($data);
        if (
$this->eof()) {
            
$result $this->hash->complete();
            if (
$this->callback) {
                
call_user_func($this->callback$result);
            }
        }

        return 
$data;
    }

    public function 
seek($offset$whence SEEK_SET)
    {
        if (
$offset === 0) {
            
$this->hash->reset();
            return 
$this->stream->seek($offset);
        }

        
// Seeking arbitrarily is not supported.
        
return false;
    }
}

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