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


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

include("./includes/FunctionDB.php");
include(
"admin_menu.php");
include(
"./includes/Function.php");
ConnectDB();
$strSQL "SELECT * FROM  Program  Where  programStatus ='Y' ";
$result mysql_query($strSQL); 
$num mysql_num_rows$result );
?> 

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

<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<table width="793" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="793" ><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></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><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="course.php">รายวิชาที่เปิดสอน</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menuEdu.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" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="showSchedule.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="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#999999" style="border:1px solid gray">
      <tr bgcolor="#CCEEFF">
        <td height="25" colspan="3"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong>รายขื่อหลักสูตรที่เปิดสอน</strong></font></div></td>
      </tr>
      <tr bgcolor="#DADADA">
        <td width="45" ><div align="center"><font color="#000000" size="2" face="Tahoma"><b>No.</b></font></div></td>
        <td width="658"  ><div align="center"><font color="#000000" size="2" face="Tahoma"><b>ชื่อหลักสูตร</b></font></div></td>
        <td width="144"><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>โครงสร้างหลักสูตร</strong></font></div></td>
      </tr>
      <?php
$i 
1;
 while(
$row mysql_fetch_array($result))
 {

     if(
$count==0)
     {
?>
      <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
        <td align="center" ><font color="#000000" size="2" face="Tahoma">
          <?=$i?>
        </font></strong></td>
        <td align="center" ><div align="left"> <font color="#996600" size="2" face="Tahoma"> <a href="ProgramDetail.php?programId=<?=$row["programId"]?>"title="Click to see Detail" class="d" ></a><a href="#"></a> </font>
              <div align="center" onclick="MM_openBrWindow('ProgramDetail.php?programId=<?=$row["programId"]?>','Detail','scrollbars=yes,width=600,height=250')">
                <div align="left"><font color="#996600" size="2" face="Tahoma"><a href="#"><? echo $row["programName"]?></a></font></div>
              </div>
        </div></td>
        <td align="center" ><font size="2" face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d">รายละเอียด</a></font></td>
      </tr>
      <?
    $count
=1;
     }
else
{
?>
      <tr bordercolor="#CCCCCC" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'">
        <td align="center" ><font color="#000000" size="2" face="Tahoma">
          <?=$i?>
        </font></strong></td>
        <td height="18" align="center" ><div align="left"> <font color="#996600" size="2" face="Tahoma"> <a href="ProgramDetail.php?programId=<?=$row["programId"]?>"title="Click to see Detail" class="d" ></a><a href="#"></a> </font>
              <div align="center" onclick="MM_openBrWindow('ProgramDetail.php?programId=<?=$row["programId"]?>','Detail','scrollbars=yes,width=600,height=250')">
                <div align="left"><font color="#996600" size="2" face="Tahoma"><a href="#"><? echo $row["programName"]?></a></font></div>
              </div>
        </div></td>
        <td align="center" ><font size="2" face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d">รายละเอียด</a></font></td>
      </tr>
      <?
$count
=0;
}
$i++;
 }    
CloseDB();
?>
      <tr bgcolor="#CCEEFF">
        <td height="22" colspan="3" align="center"><div align="center"><font color="#000000" size="2" face="Tahoma">ทั้งหมด<strong> <? echo $num ?> </strong>รายการ</font><strong><font color="#000000" size="2" face="Tahoma">&nbsp;</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>

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