!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.25 GB of 57.97 GB (22.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Raw RSA Key Handler
 *
 * PHP version 5
 *
 * An array containing two \phpseclib3\Math\BigInteger objects.
 *
 * The exponent can be indexed with any of the following:
 *
 * 0, e, exponent, publicExponent
 *
 * The modulus can be indexed with any of the following:
 *
 * 1, n, modulo, modulus
 *
 * @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;

/**
 * Raw RSA Key Handler
 *
 * @package RSA
 * @author  Jim Wigginton <terrafrost@php.net>
 * @access  public
 */
abstract class Raw
{
    
/**
     * 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 (!
is_array($key)) {
            throw new 
\UnexpectedValueException('Key should be a array - not a ' gettype($key));
        }
        if (isset(
$key['isPublicKey']) && isset($key['modulus'])) {
            if (isset(
$key['privateExponent']) || isset($key['publicExponent'])) {
                if (!isset(
$key['primes'])) {
                    return 
$key;
                }
                if (isset(
$key['exponents']) && isset($key['coefficients']) && isset($key['publicExponent']) && isset($key['privateExponent'])) {
                    return 
$key;
                }
            }
        }
        
$components = ['isPublicKey' => true];
        switch (
true) {
            case isset(
$key['e']):
                
$components['publicExponent'] = $key['e'];
                break;
            case isset(
$key['exponent']):
                
$components['publicExponent'] = $key['exponent'];
                break;
            case isset(
$key['publicExponent']):
                
$components['publicExponent'] = $key['publicExponent'];
                break;
            case isset(
$key[0]):
                
$components['publicExponent'] = $key[0];
        }
        switch (
true) {
            case isset(
$key['n']):
                
$components['modulus'] = $key['n'];
                break;
            case isset(
$key['modulo']):
                
$components['modulus'] = $key['modulo'];
                break;
            case isset(
$key['modulus']):
                
$components['modulus'] = $key['modulus'];
                break;
            case isset(
$key[1]):
                
$components['modulus'] = $key[1];
        }
        if (isset(
$components['modulus']) && isset($components['publicExponent'])) {
            return 
$components;
        }

        throw new 
\UnexpectedValueException('Modulus / exponent not present');
    }

    
/**
     * Convert a public key to the appropriate format
     *
     * @access public
     * @param \phpseclib3\Math\BigInteger $n
     * @param \phpseclib3\Math\BigInteger $e
     * @return array
     */
    
public static function savePublicKey(BigInteger $nBigInteger $e)
    {
        return [
'e' => clone $e'n' => clone $n];
    }
}

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