!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/domains/sms.picotech.app/public_html_old/vendor/maennchen/zipstream-php/src/   drwxr-xr-x
Free 28.7 GB of 117.98 GB (24.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Bigint.php (3.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
declare(strict_types=1);

namespace 
ZipStream;

use 
OverflowException;

class 
Bigint
{
    
/**
     * @var int[]
     */
    
private $bytes = [00000000];

    
/**
     * Initialize the bytes array
     *
     * @param int $value
     */
    
public function __construct(int $value 0)
    {
        
$this->fillBytes($value08);
    }

    
/**
     * Fill the bytes field with int
     *
     * @param int $value
     * @param int $start
     * @param int $count
     * @return void
     */
    
protected function fillBytes(int $valueint $startint $count): void
    
{
        for (
$i 0$i $count$i++) {
            
$this->bytes[$start $i] = $i >= PHP_INT_SIZE $value 0xFF;
            
$value >>= 8;
        }
    }

    
/**
     * Get an instance
     *
     * @param int $value
     * @return Bigint
     */
    
public static function init(int $value 0): self
    
{
        return new 
self($value);
    }

    
/**
     * Fill bytes from low to high
     *
     * @param int $low
     * @param int $high
     * @return Bigint
     */
    
public static function fromLowHigh(int $lowint $high): self
    
{
        
$bigint = new Bigint();
        
$bigint->fillBytes($low04);
        
$bigint->fillBytes($high44);
        return 
$bigint;
    }

    
/**
     * Get high 32
     *
     * @return int
     */
    
public function getHigh32(): int
    
{
        return 
$this->getValue(44);
    }

    
/**
     * Get value from bytes array
     *
     * @param int $end
     * @param int $length
     * @return int
     */
    
public function getValue(int $end 0int $length 8): int
    
{
        
$result 0;
        for (
$i $end $length 1$i >= $end$i--) {
            
$result <<= 8;
            
$result |= $this->bytes[$i];
        }
        return 
$result;
    }

    
/**
     * Get low FF
     *
     * @param bool $force
     * @return float
     */
    
public function getLowFF(bool $force false): float
    
{
        if (
$force || $this->isOver32()) {
            return (float)
0xFFFFFFFF;
        }
        return (float)
$this->getLow32();
    }

    
/**
     * Check if is over 32
     *
     * @psalm-suppress ArgumentTypeCoercion
     * @param bool $force
     * @return bool
     */
    
public function isOver32(bool $force false): bool
    
{
        
// value 0xFFFFFFFF already needs a Zip64 header
        
return $force ||
            
max(array_slice($this->bytes44)) > ||
            
min(array_slice($this->bytes04)) === 0xFF;
    }

    
/**
     * Get low 32
     *
     * @return int
     */
    
public function getLow32(): int
    
{
        return 
$this->getValue(04);
    }

    
/**
     * Get hexadecimal
     *
     * @return string
     */
    
public function getHex64(): string
    
{
        
$result '0x';
        for (
$i 7$i >= 0$i--) {
            
$result .= sprintf('%02X'$this->bytes[$i]);
        }
        return 
$result;
    }

    
/**
     * Add
     *
     * @param Bigint $other
     * @return Bigint
     */
    
public function add(Bigint $other): Bigint
    
{
        
$result = clone $this;
        
$overflow false;
        for (
$i 0$i 8$i++) {
            
$result->bytes[$i] += $other->bytes[$i];
            if (
$overflow) {
                
$result->bytes[$i]++;
                
$overflow false;
            }
            if (
$result->bytes[$i] & 0x100) {
                
$overflow true;
                
$result->bytes[$i] &= 0xFF;
            }
        }
        if (
$overflow) {
            throw new 
OverflowException;
        }
        return 
$result;
    }
}

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