!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/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
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): string
    
{
        
$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): void
    
{
        
// Seeking arbitrarily is not supported.
        
if ($offset !== 0) {
            return;
        }

        
$this->hash->reset();
        
$this->stream->seek($offset);
    }
}

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