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

/var/www/html/dokan/script/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/   drwxrwxrwx
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PKCS8.php (4.07 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * PKCS#8 Formatted RSA Key Handler
 *
 * PHP version 5
 *
 * Used by PHP's openssl_public_encrypt() and openssl's rsautl (when -pubin is set)
 *
 * Processes keys with the following headers:
 *
 * -----BEGIN ENCRYPTED PRIVATE KEY-----
 * -----BEGIN PRIVATE KEY-----
 * -----BEGIN PUBLIC KEY-----
 *
 * Analogous to ssh-keygen's pkcs8 format (as specified by -m). Although PKCS8
 * is specific to private keys it's basically creating a DER-encoded wrapper
 * for keys. This just extends that same concept to public keys (much like ssh-keygen)
 *
 * @category  Crypt
 * @package   RSA
 * @author    Jim Wigginton <terrafrost@php.net>
 * @copyright 2015 Jim Wigginton
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link      http://phpseclib.sourceforge.net
 */

namespace phpseclib3\Crypt\RSA\Formats\Keys;

use 
phpseclib3\Math\BigInteger;
use 
phpseclib3\Crypt\Common\Formats\Keys\PKCS8 as Progenitor;
use 
phpseclib3\File\ASN1;
use 
phpseclib3\Common\Functions\Strings;

/**
 * PKCS#8 Formatted RSA Key Handler
 *
 * @package RSA
 * @author  Jim Wigginton <terrafrost@php.net>
 * @access  public
 */
abstract class PKCS8 extends Progenitor
{
    
/**
     * OID Name
     *
     * @var string
     * @access private
     */
    
const OID_NAME 'rsaEncryption';

    
/**
     * OID Value
     *
     * @var string
     * @access private
     */
    
const OID_VALUE '1.2.840.113549.1.1.1';

    
/**
     * Child OIDs loaded
     *
     * @var bool
     * @access private
     */
    
protected static $childOIDsLoaded false;

    
/**
     * Break a public or private key down into its constituent components
     *
     * @access public
     * @param string $key
     * @param string $password optional
     * @return array
     */
    
public static function load($key$password '')
    {
        if (!
Strings::is_stringable($key)) {
            throw new 
\UnexpectedValueException('Key should be a string - not a ' gettype($key));
        }

        if (
strpos($key'PUBLIC') !== false) {
            
$components = ['isPublicKey' => true];
        } elseif (
strpos($key'PRIVATE') !== false) {
            
$components = ['isPublicKey' => false];
        } else {
            
$components = [];
        }

        
$key parent::load($key$password);

        if (isset(
$key['privateKey'])) {
            if (!isset(
$components['isPublicKey'])) {
                
$components['isPublicKey'] = false;
            }
            
$type 'private';
        } else {
            if (!isset(
$components['isPublicKey'])) {
                
$components['isPublicKey'] = true;
            }
            
$type 'public';
        }

        
$result $components PKCS1::load($key[$type 'Key']);

        if (isset(
$key['meta'])) {
            
$result['meta'] = $key['meta'];
        }

        return 
$result;
    }

    
/**
     * Convert a private key to the appropriate format.
     *
     * @access public
     * @param \phpseclib3\Math\BigInteger $n
     * @param \phpseclib3\Math\BigInteger $e
     * @param \phpseclib3\Math\BigInteger $d
     * @param array $primes
     * @param array $exponents
     * @param array $coefficients
     * @param string $password optional
     * @param array $options optional
     * @return string
     */
    
public static function savePrivateKey(BigInteger $nBigInteger $eBigInteger $d, array $primes, array $exponents, array $coefficients$password '', array $options = [])
    {
        
$key PKCS1::savePrivateKey($n$e$d$primes$exponents$coefficients);
        
$key ASN1::extractBER($key);
        return 
self::wrapPrivateKey($key, [], null$password$options);
    }

    
/**
     * Convert a public key to the appropriate format
     *
     * @access public
     * @param \phpseclib3\Math\BigInteger $n
     * @param \phpseclib3\Math\BigInteger $e
     * @param array $options optional
     * @return string
     */
    
public static function savePublicKey(BigInteger $nBigInteger $e, array $options = [])
    {
        
$key PKCS1::savePublicKey($n$e);
        
$key ASN1::extractBER($key);
        return 
self::wrapPublicKey($keynull);
    }
}

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