!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ircmaxell/security-lib/lib/SecurityLib/BigMath/   drwxrwxr-x
Free 11.54 GB of 61.93 GB (18.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PHPMath.php (4.99 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * A class for arbitrary precision math functions implemented in PHP
 *
 * PHP version 5.3
 *
 * @category   PHPPasswordLib
 * @package    Core
 * @subpackage BigMath
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    Build @@version@@
 */
namespace SecurityLib\BigMath;

use 
SecurityLib\BaseConverter;

/**
 * A class for arbitrary precision math functions implemented in PHP
 *
 * @category   PHPPasswordLib
 * @package    Core
 * @subpackage BigMath
 */
class PHPMath extends \SecurityLib\BigMath {

    
/**
     * Add two numbers together
     *
     * @param string $left  The left argument
     * @param string $right The right argument
     *
     * @return A base-10 string of the sum of the two arguments
     */
    
public function add($left$right) {
        if (empty(
$left)) {
            return 
$right;
        } elseif (empty(
$right)) {
            return 
$left;
        }
        
$negative '';
        if (
$left[0] == '-' && $right[0] == '-') {
            
$negative '-';
            
$left     substr($left1);
            
$right    substr($right1);
        } elseif (
$left[0] == '-') {
            return 
$this->subtract($rightsubstr($left1));
        } elseif (
$right[0] == '-') {
            return 
$this->subtract($leftsubstr($right1));
        }
        
$left   $this->normalize($left);
        
$right  $this->normalize($right);
        
$result BaseConverter::convertFromBinary(
            
$this->addBinary($left$right),
            
'0123456789'
        
);
        return 
$negative $result;
    }

    
/**
     * Subtract two numbers
     *
     * @param string $left  The left argument
     * @param string $right The right argument
     *
     * @return A base-10 string of the difference of the two arguments
     */
    
public function subtract($left$right) {
        if (empty(
$left)) {
            return 
$right;
        } elseif (empty(
$right)) {
            return 
$left;
        } elseif (
$right[0] == '-') {
            return 
$this->add($leftsubstr($right1));
        } elseif (
$left[0] == '-') {
            return 
'-' $this->add(ltrim($left'-'), $right);
        }
        
$left    $this->normalize($left);
        
$right   $this->normalize($right);
        
$results $this->subtractBinary($left$right);
        
$result  BaseConverter::convertFromBinary($results[1], '0123456789');
        return 
$results[0] . $result;
    }

    
/**
     * Add two binary strings together
     *
     * @param string $left  The left argument
     * @param string $right The right argument
     *
     * @return string The binary result
     */
    
protected function addBinary($left$right) {
        
$len    max(strlen($left), strlen($right));
        
$left   str_pad($left$lenchr(0), STR_PAD_LEFT);
        
$right  str_pad($right$lenchr(0), STR_PAD_LEFT);
        
$result '';
        
$carry  0;
        for (
$i 0$i $len$i++) {
            
$sum     ord($left[$len $i 1])
                 + 
ord($right[$len $i 1])
                 + 
$carry;
            
$result .= chr($sum 256);
            
$carry   $sum >> 8;
        }
        while (
$carry) {
            
$result .= chr($carry 256);
            
$carry >>= 8;
        }
        return 
strrev($result);
    }

    
/**
     * Subtract two binary strings using 256's compliment
     *
     * @param string $left  The left argument
     * @param string $right The right argument
     *
     * @return string The binary result
     */
    
protected function subtractBinary($left$right) {
        
$len    max(strlen($left), strlen($right));
        
$left   str_pad($left$lenchr(0), STR_PAD_LEFT);
        
$right  str_pad($right$lenchr(0), STR_PAD_LEFT);
        
$right  $this->compliment($right);
        
$result $this->addBinary($left$right);
        if (
strlen($result) > $len) {
            
// Positive Result
            
$carry  substr($result0, -$len);
            
$result substr($resultstrlen($carry));
            return array(
                
'',
                
$this->addBinary($result$carry)
            );
        }
        return array(
'-'$this->compliment($result));
    }

    
/**
     * Take the 256 base compliment
     *
     * @param string $string The binary string to compliment
     *
     * @return string The complimented string
     */
    
protected function compliment($string) {
        
$result '';
        
$len    strlen($string);
        for (
$i 0$i $len$i++) {
            
$result .= chr(255 ord($string[$i]));
        }
        return 
$result;
    }

    
/**
     * Transform a string number into a binary string using base autodetection
     *
     * @param string $string The string to transform
     *
     * @return string The binary transformed number
     */
    
protected function normalize($string) {
        return 
BaseConverter::convertToBinary(
            
$string,
            
'0123456789'
        
);
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.8098 ]--