!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\jaime\Xcode\SPLIB\Database\   drwxrwxrwx
Free 7.26 GB of 239.26 GB (3.04%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PEARDBAdapter.php (2.18 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* @package SPLIB
* $Id: PEARDBAdapter.php,v 1.1 2003/12/12 08:06:07 kevin Exp $
*/
/**
* Include PEAR::DB
*/
require_once 'DB.php';
/**
* PEAR::DB Adapater Class for MySQL Connections
* Adapts PEAR to the SPLIB/Database/MySQL API
* @access public
* @package SPLIB
*/
class PEARDBAdapter {
    
/**
    * Instance of PEAR::DB subclass
    * @access private
    * @var object
    */
    
var $db;

    
/**
    * PEARDBAdapter constructor
    * @param string host (MySQL server hostname)
    * @param string dbUser (MySQL User Name)
    * @param string dbPass (MySQL User Password)
    * @param string dbName (Database to select)
    * @access public
    */
    
function PEARDBAdapter ($host,$dbUser,$dbPass,$dbName) {
        
$dsn "mysql://$dbUser:$dbPass@$host/$dbName";
        
$this->db = & DB::connect($dsn);
    }

    
/**
    * Returns an instance of PEARDBResultAdapter to fetch rows with
    * @param $sql string the database query to run
    * @return PEARDBResultAdapter
    * @access public
    */
    
function & query($sql) {
        
// Call the PEAR::DB query() method
        
$result = & $this->db->query($sql);

        
// Wrap the result in a PEARDBResultAdapter
        
return new PEARDBResultAdapter($result);
    }
}

// Adapater for PEAR::DB Result
/**
* PEAR::DB Result Class
* Adapts PEAR to the SPLIB/Database/MySQLResult API
* @access public
* @package SPLIB
*/
class PEARDBResultAdapter {
    
/**
    * Instance of PEAR::DB Result subclass
    * @access private
    * @var object
    */
    
var $result;

    
/**
    * PEARDBResultAdapter constructor
    * @param object instance of PEAR::DB Result subclass
    * @access public
    */
    
function PEARDBResultAdapter(& $result) {
        
$this->result = & $result;
    }

    
/**
    * Adapts the PEAR::DB Result fetchRow() method
    * @return mixed row from database or false when finished
    * @access public
    */
    
function & fetch() {
        
// Call the PEAR::DB Result fetchRow() method
        
if ( $row = & $this->result->fetchRow(DB_FETCHMODE_ASSOC) ) {
            return 
$row;
        } else {
            return 
false;
        }
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 1.5288 ]--