!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 52.98 GB of 127.8 GB (41.45%)
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.98 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">
<link href="./source/style.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
<table width="816" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="816" ><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:0px solid gray">
      <tr bgcolor="#CCEEFF">
        <td height="25" colspan="3" 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="#CCEEFF">
        <td height="25" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style2"><font color="#000000" face="Tahoma">รายขื่อหลักสูตรที่เปิดสอน</font></div></td>
      </tr>
      <tr bgcolor="#DADADA">
        <td width="45" height="23" ><div align="center" class="style2"><font color="#000000" face="Tahoma">No.</font></div></td>
        <td width="658"  ><div align="center" class="style2"><font color="#000000" face="Tahoma"><b>ชื่อหลักสูตร</b></font></div></td>
        <td width="144"><div align="center" class="style2"><font color="#000000" face="Tahoma">โครงสร้างหลักสูตร</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" bgcolor="#EBFAFE" ><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 align="center" bgcolor="#EBFAFE" ><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" bgcolor="#EBFAFE" ><font face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d style2">รายละเอียด</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" 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 height="18" align="center" bgcolor="#FFFFFF" ><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" bgcolor="#FFFFFF" ><font face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d style2">รายละเอียด</a></font></td>
      </tr>
      <?
$count
=0;
}
$i++;
 }    
CloseDB();
?>
      <tr bgcolor="#CCEEFF">
        <td height="22" colspan="3" align="center" bgcolor="#FFFFFF"><div align="center"><font color="#000000" face="Tahoma"><span class="style2">ทั้งหมด</span></font><font color="#000000" size="2" face="Tahoma"><strong> <? echo $num ?> </strong></font><font color="#000000" face="Tahoma"><span class="style2">รายการ</span></font><span class="style2"><strong><font color="#000000" face="Tahoma">&nbsp;</font> </strong></span></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.0062 ]--