!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/teacher_aj_viratt/training/Committee/   drwxr-xr-x
Free 50.66 GB of 127.8 GB (39.64%)
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 (10.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 session_start
();
 if (
session_is_registered("valid_user"))
 {
$Username $valid_user;
include(
"../../../include/FunctionDB.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);

?>
<html>
<head>
<title>Show  Edit List</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../../../css/style1.css" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#0066CC"><div align="left"><img src="../../../Image/Ponallogo.jpg" width="550" height="71"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
        <tr> 
          <td width="20%" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../Training_Menu.php" class="d">กลับหน้าหลัก</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="AddCommittee.php" class="d">เพิ่ม</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><font size="2" face="Tahoma"><strong><a href="CommitteeMe.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="d">แสดงทั้งหมด</a></strong></font></div></td>
          <td width="20%" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center" ><strong><font size="2" face="Tahoma"><a href="../../logout.php" class="d">Logout</a></font></strong></div></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td><div align="center"><font size="2" face="Tahoma">ขณะนี้ อ.<strong><font color="#993333"> 
        <? echo $rs['Teacher_name'?> &nbsp;<? echo $rs['Teacher_lastname'?> 
        </font></strong>กำลังใช้งานระบบ </font></div></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:1px solid gray">
  <form action="DelCommit.php" method="post">
    <tr bgcolor="#DFEBF9"> 
      <td height="21" colspan="6"> <div align="center"><font color="#003366" size="4" face="Tahoma"><strong><font color="#FF0000">แก้ไข 
          </font>- ข้อมูลการเป็นกรรมการบริการวิชาการ</strong></font></div></td>
    </tr>
    <tr bordercolor="#0066CC" bgcolor="#CCE6FF"> 
      <td colspan="4" align="center" bgcolor="#CCE6FF" style="border:1px solid gray">&nbsp;</td>
      <td width="293" align="center" bgcolor="#CCE6FF" style="border:1px solid gray"><font size="2" face="Tahoma">แยกประเภทตาม 
        สมศ. 5.2</font></td>
      <td width="388" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> 
        <font size="2" face="Tahoma">ให้บริการวิชาการอื่นฯ</font></td>
    </tr>
    <tr bordercolor="#0066CC" bgcolor="#CCE6FF"> 
      <td width="30" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="2" face="Tahoma"><strong>ลบ</strong></font></td>
      <td width="30" height="26" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font color="#000000" size="1" face="Tahoma">ลำดับ</font></td>
      <td width="51" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="2" face="Tahoma">ปี 
        พ.ศ</font> </td>
      <td width="202" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font color="#000000" size="1" face="Tahoma">ชื่อเรื่อง</font></td>
      <td align="center" style="border:1px solid gray"><table width="100%" height="34" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr bgcolor="#DFEBF9"> 
            <td width="25%" height="24" style="border:1px solid gray"> <div align="center"><font size="2" face="Tahoma">วิชาการ</font></div></td>
            <td width="25%" style="border:1px solid gray"> <div align="center"><font size="2" face="Tahoma">วิชาชีพ</font></div></td>
            <td width="25%" style="border:1px solid gray"> <div align="center"><font size="2" face="Tahoma">วิทยานิพนธ์</font></div></td>
          </tr>
        </table></td>
      <td align="center" 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" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">ตรวจเครื่องมือ</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">คปสข.10</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">ชมรม 
                พยบ. </font></div></td>
            <td width="20%" bgcolor="#DFEBF9" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">เครือข่าย 
                ว. ภาคเหนือ</font></div></td>
            <td width="20%" style="border:1px solid gray"> <div align="center"><font size="1" face="Tahoma">กรรมการ 
                อื่นๆ</font></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="25%" height="18"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
            <td width="25%"> <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[]" 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="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]?></font></div></td>
            <td width="25%"> <div align="center"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]?></font></div></td>
            <td width="25%"> <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"> <input type="submit" name="Submit" value="   ลบ   "> 
      </td>
    </tr>
  </form>
</table>
</body>
</html>
<?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.0118 ]--