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


Viewing file:     Subject&Detail.php (6.2 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 subject_tb  Where Subject_no='$Subject_no'";
$result mysql_query($sql) or die("Select Has Error").mysql_error();
$rs mysql_fetch_array($result);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="833" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="741" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a> <img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="menuEdu.php">ข้อมูลการฝ่ายวิชาการ</a> <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="79%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E8E8E8" style="border:1px solid gray">
      <tr bordercolor="#CCCCCC" bgcolor="#E4EEFA">
        <td colspan="3" bordercolor="#999999"><div align="left"><font color="#FFFFFF" size="3" face="Tahoma"><strong><font color="#003366">&nbsp;<font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;รายละเอียดวิชา</font>&nbsp;<font color="#993333">&nbsp;</font></font><font color="#993333">&nbsp;&nbsp;&nbsp;<? echo $rs[Subject_name]?> </font><font color="#003300"> </font></strong></font></div></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#000066" size="2" face="Tahoma">รหัสวิชา</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Subject_code]?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#000066" size="2" face="Tahoma">ชื่อวิชา</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Subject_name]?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">กลุ่มวิชา</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma">
          <?php
      $Subject_group 
$rs[Subject_group];
      
$sql_1 "Select * From subject_group_tb Where Subject_group='$Subject_group'"
      
$result_1 mysql_query($sql_1) or die("Error".mysql_error());;
      
$rss mysql_fetch_array($result_1);
      echo 
"$rss[Short_name]&nbsp; $rss[Thai_name]";
      
?>
        </font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td width="26%" bordercolor="#999999"><div align="center"><strong><font color="#000066" size="2" face="Tahoma">หลักสูตร</font></strong></div></td>
        <td width="2%"><font size="2" face="Tahoma">&nbsp;</font></td>
        <td width="72%" bordercolor="#CCCCCC"><div align="left"><font color="#003399" size="2" face="Tahoma">
            <?php
      $Course_code 
$rs[Course_code];
      
$sql ="Select * From course_tb Where  Course_code='$Course_code' Order by Course_code" ;
      
$result mysql_query($sql);
      
$rssmysql_fetch_array($result);
       echo 
"$rss[Course_name]";
      
      
?>
        </font></div></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">หมวดวิชา</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma">
          <?php
      $SubCate_code 
$rs[SubCate_code];
      
$sql ="Select * From subject_category_tb Where SubCate_code=$SubCate_code" ;
      
$result2 mysql_query($sql);
      
$rss mysql_fetch_array($result2);
       echo 
"$rss[Cate_name]";
      
      
?>
        </font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">จำนวนชั่วโมงทั้งหมด</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Total_hour]?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">หน่วยกิต</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Unit]?> </font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">วัตถุประสงค</font>์</strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo $rs[Objective]?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#000066" size="2" face="Tahoma">ลักษณะวิชา</font></strong></div></td>
        <td><font size="2" face="Tahoma">&nbsp;</font></td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo nl2br($rs[Detail])?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
        <td bordercolor="#999999"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">สมรรถนะชั้นปี</font></strong></div></td>
        <td>&nbsp;</td>
        <td bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma"><? echo nl2br($rs[Class_Affect])?></font></td>
      </tr>
      <tr bordercolor="#CCCCCC" bgcolor="#E4EEFA">
        <td colspan="3" bordercolor="#999999"><div align="center">
          <input name="button" type="button" class="button"onclick="window.print()"value="     พิมพ์     " />
        </div></td>
      </tr>
    </table>
  </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </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.0149 ]--