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


Viewing file:     framework.php (25.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
 0) {
		error_reporting( $_Config_error_reporting );
	}

	#Connect to MySQL & Create Object
	//$local_backup_path = $_Config_absolute_path.'/administrator/backups';
	//$media_path = $_Config_absolute_path.'/media/';
	//$image_path = $_Config_absolute_path.'/images/stories';
	//$image_size = 100;

	//require_once( $_Config_absolute_path . "/includes/version.php" );
	require_once( $_Config_absolute_path . "/includes/connMySQL.class.php" );
	//require_once( $_Config_absolute_path . "/includes/gacl.class.php" );
	//require_once( $_Config_absolute_path . "/includes/gacl_api.class.php" );
	//require_once( $_Config_absolute_path . "/includes/phpmailer/class.phpmailer.php" );
	//require_once( $_Config_absolute_path . "/includes/mamboxml.php" );

	if (sizeof($_POST) > 0)
	  $_FORM = $_POST;
	else if (sizeof($_GET) > 0)
	  $_FORM = $_GET;
	else
	  $_FORM = array("");
	  
	/**
	* Utility function to return a value from a named array or a specified default
	*/
	define( "_MOS_NOTRIM", 0x0001 );
	define( "_MOS_ALLOWHTML", 0x0002 );
	
	function mosGetParam( &$arr, $name, $def=null, $mask=0 ) {
		$return = null;
		if (isset( $arr[$name] )) {
			if (is_string( $arr[$name] )) {
				if (!($mask&_MOS_NOTRIM)) {
					$arr[$name] = trim( $arr[$name] );
				}
				if (!($mask&_MOS_ALLOWHTML)) {
					$arr[$name] = strip_tags( $arr[$name] );
				}
				if (!get_magic_quotes_gpc()) {
					$arr[$name] = addslashes( $arr[$name] );
				}
			}
			return $arr[$name];
		} else {
			return $def;
		}
	}

	/**
	* Strip slashes from strings or arrays of strings
	* @param value the input string or array
	*/
	function mosStripslashes(&$value)
	{
		$ret = '';
		if (is_string($value)) {
			$ret = stripslashes($value);
		} else {
			if (is_array($value)) {
				$ret = array();
				while (list($key,$val) = each($value)) {
					$ret[$key] = mosStripslashes($val);
				} // while
			} else {
				$ret = $value;
			} // if
		} // if
		return $ret;
	} // mosStripSlashes

	/**
	* Copy the named array content into the object as properties
	* only existing properties of object are filled. when undefined in hash, properties wont be deleted
	* @param array the input array
	* @param obj byref the object to fill of any class
	* @param string
	* @param boolean
	*/
	function mosBindArrayToObject( $array, &$obj, $ignore="", $prefix=NULL, $checkSlashes=true ) {
		if (!is_array( $array ) 
bool(false)

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

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

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