!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/picomail.picotech.app/public_html/vendor/async-aws/core/src/Stream/   drwxr-xr-x
Free 28.77 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ResourceStream.php (2.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace AsyncAws\Core\Stream;

use 
AsyncAws\Core\Exception\InvalidArgument;

/**
 * Convert a resource into a Stream.
 *
 * @author Jérémy Derussé <jeremy@derusse.com>
 *
 * @internal
 */
final class ResourceStream implements RequestStream
{
    
/**
     * @var resource
     */
    
private $content;

    private 
$chunkSize;

    private function 
__construct($contentint $chunkSize 64 1024)
    {
        
$this->content $content;
        
$this->chunkSize $chunkSize;
    }

    public static function 
create($contentint $chunkSize 64 1024): ResourceStream
    
{
        if (
$content instanceof self) {
            return 
$content;
        }
        if (
\is_resource($content)) {
            if (!
stream_get_meta_data($content)['seekable']) {
                throw new 
InvalidArgument(sprintf('The give body is not seekable.'));
            }

            return new 
self($content$chunkSize);
        }

        throw new 
InvalidArgument(sprintf('Expect content to be a "resource". "%s" given.'\is_object($content) ? \get_class($content) : \gettype($content)));
    }

    public function 
length(): ?int
    
{
        return 
fstat($this->content)['size'] ?? null;
    }

    public function 
stringify(): string
    
{
        if (-
=== fseek($this->content0)) {
            throw new 
InvalidArgument('Unable to seek the content.');
        }

        return 
stream_get_contents($this->content);
    }

    public function 
getIterator(): \Traversable
    
{
        if (-
=== fseek($this->content0)) {
            throw new 
InvalidArgument('Unable to seek the content.');
        }

        while (!
feof($this->content)) {
            yield 
fread($this->content$this->chunkSize);
        }
    }

    
/**
     * @return resource
     */
    
public function getResource()
    {
        return 
$this->content;
    }

    public function 
hash(string $algo 'sha256'bool $raw false): string
    
{
        
$pos ftell($this->content);

        if (
$pos && -=== fseek($this->content0)) {
            throw new 
InvalidArgument('Unable to seek the content.');
        }

        
$ctx hash_init($algo);
        
hash_update_stream($ctx$this->content);
        
$out hash_final($ctx$raw);

        if (-
=== fseek($this->content$pos)) {
            throw new 
InvalidArgument('Unable to seek the content.');
        }

        return 
$out;
    }
}

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