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

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../include/Function.php" );
        
        
/**  Chart  */
        
include ("../includes/charts.php");
        
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
$sql " SELECT *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE Teacher_code='$Teacher_code' ";
        
$result mysql_query($sql);
        
$rss mysql_fetch_array($result);
        
        
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<title>ข้อมูลการพัฒนาบุคลากร - ประวัติการรับพระราชทานเครื่องราชอิสริยาภรณ์บุคลากรทั้งหมด</title>
<style type="text/css">
<!--
.style4 {    font-family: Tahoma;
    font-size: 14px;
}
.style5 {font-size: 14px}
-->
</style>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<br />
<table width="624" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="624" height="229"><fieldset>
      <form id="form1" name="form1" method="post" action="InsertPositionSave.php">
              <br />
                            <table width="86%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                <tr bgcolor="#D9ECFF">
                  <td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style5"><font color="#000000" face="Tahoma">เพิ่มข้อมูลประวัติการดำรงตำแหน่ง</font></div></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ชื่อ- 
                    นามสกุล</font></div></td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#993333"><strong><font color="#993333"><strong><font size="2" face="Tahoma"> &nbsp;<?php echo $rss['First_name'] ;?> <?php echo $rss['Teacher_name'] ;?> <? echo $rss['Teacher_lastname'];?></font></strong></font></strong></font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td width="30%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">วัน/เดือน/ปี</font></div></td>
                  <td width="2%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td width="68%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">วัน
                    <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" >
                          <? getDay1to31();?>
                  </select>
                    เดือน
                    <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)">
                      <? getThaiMonth();?>
                    </select>
                    ปี พ.ศ
                    <input name="mYear" type="text" class="style5" id="mYear" size="3" maxlength="4" />
                  </font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">เลขที่ตำแหน่ง</font></div></td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Position_id" type="text" class="style5" id="Position_id" size="30" /></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ตำแหน่ง</font></div></td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Gover_pos" type="text" id="Gover_pos" size="40" class="style5" />
                      <font size="2" face="Tahoma">ระดับ
                        <input name="Level" type="text" class="style5" id="Level" size="2" maxlength="3" />
                    </font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font 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="style5" id="Salary" size="6" maxlength="9" />
                    บาท <font color="#FF0000">(ไม่ต้องใส่เครื่องหมาย , )</font></font></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">คำสั่ง</font></div></td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                  <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
                    <textarea name="Order_id" cols="45" id="Order_id"></textarea>
                  </label></td>
                </tr>
                <tr bgcolor="#D9ECFF">
                  <td colspan="3" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                </tr>
                <tr bgcolor="#D9ECFF">
                  <td colspan="3" align="center" bgcolor="#FFFFFF"><input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" />
                    <input name="Submit3" type="submit" class="WIDTH60" id="Submit2" value="บันทึก" />
                     <input name="Reset2" type="reset" class="WIDTH60" id="Reset2" value="Reset" />
&nbsp;
<input type="button" name="Submit22" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" /></td>
                </tr>
        </table>
              <p>&nbsp;</p>
      </form>
      </label>
    </fieldset>
      <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"> </font></td>
  </tr>
</table>

</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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