!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/vendor/fgrosse/phpasn1/lib/Utility/   drwxr-xr-x
Free 28.21 GB of 117.98 GB (23.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     BigIntegerBcmath.php (2.97 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * This file is part of the PHPASN1 library.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace FG\Utility;

/**
 * Class BigIntegerBcmath
 * Integer representation of big numbers using the bcmath library to perform large operations.
 * @package FG\Utility
 * @internal
 */
class BigIntegerBcmath extends BigInteger
{
    protected 
$_str;

    public function 
__clone()
    {
        
// nothing needed to copy
    
}

    protected function 
_fromString($str)
    {
        
$this->_str = (string)$str;
    }

    protected function 
_fromInteger($integer)
    {
        
$this->_str = (string)$integer;
    }

    public function 
__toString()
    {
        return 
$this->_str;
    }

    public function 
toInteger()
    {
        if (
$this->compare(PHP_INT_MAX) > || $this->compare(PHP_INT_MIN) < 0) {
            throw new 
\OverflowException(sprintf('Can not represent %s as integer.'$this->_str));
        }
        return (int)
$this->_str;
    }

    public function 
isNegative()
    {
        return 
bccomp($this->_str'0'0) < 0;
    }

    protected function 
_unwrap($number)
    {
        if (
$number instanceof self) {
            return 
$number->_str;
        }
        return 
$number;
    }

    public function 
compare($number)
    {
        return 
bccomp($this->_str$this->_unwrap($number), 0);
    }

    public function 
add($b)
    {
        
$ret = new self();
        
$ret->_str bcadd($this->_str$this->_unwrap($b), 0);
        return 
$ret;
    }

    public function 
subtract($b)
    {
        
$ret = new self();
        
$ret->_str bcsub($this->_str$this->_unwrap($b), 0);
        return 
$ret;
    }

    public function 
multiply($b)
    {
        
$ret = new self();
        
$ret->_str bcmul($this->_str$this->_unwrap($b), 0);
        return 
$ret;
    }

    public function 
modulus($b)
    {
        
$ret = new self();
        if (
$this->isNegative()) {
            
// bcmod handles negative numbers differently
            
$b $this->_unwrap($b);
            
$ret->_str bcsub($bbcmod(bcsub('0'$this->_str0), $b), 0);
        }
        else {
            
$ret->_str bcmod($this->_str$this->_unwrap($b));
        }
        return 
$ret;
    }

    public function 
toPower($b)
    {
        
$ret = new self();
        
$ret->_str bcpow($this->_str$this->_unwrap($b), 0);
        return 
$ret;
    }

    public function 
shiftRight($bits 8)
    {
        
$ret = new self();
        
$ret->_str bcdiv($this->_strbcpow('2'$bits));
        return 
$ret;
    }

    public function 
shiftLeft($bits 8) {
        
$ret = new self();
        
$ret->_str bcmul($this->_strbcpow('2'$bits));
        return 
$ret;
    }

    public function 
absoluteValue()
    {
        
$ret = new self();
        if (-
=== bccomp($this->_str'0'0)) {
            
$ret->_str bcsub('0'$this->_str0);
        }
        else {
            
$ret->_str $this->_str;
        }
        return 
$ret;
    }
}

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