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


Viewing file:     Show_profile.php (4.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
 {
 
$Username $valid_user;
 
$Password $password;
include(
"../../../include/FunctionDB.php");
ConnectDB();
$sql "Select * From personal_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error").mysql_error();
$rs mysql_fetch_array($result)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>History Detail</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" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC">
        <tr>
          <td height="18" colspan="4" bgcolor="#0066CC"><img src="../../../Image/Ponallogo.jpg" width="550" height="71"></td>
        </tr>
        <tr> 
          <td width="20%" height="18" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../../menu_teacher.php" class="d">กลับเมนูหลัก</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font size="2" face="Tahoma"><a href="../Menu_History.php" class="d">ข้อมูลประวัติ</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bart1.jpg" class="table"> 
            <div align="center"><strong><font color="#003366" size="2" face="Tahoma"><a href="Edit_profile.php" class="d">แก้ไขข้อมูล</a></font></strong></div></td>
          <td width="20%" background="../../../Image/bart1.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>
  <tr> 
    <td><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>ขณะนี้ 
        อ.</strong></font> <font color="#993333" size="2" face="Tahoma"><strong><?php echo $rs["Teacher_name"]?>&nbsp; 
        <?php echo $rs["Teacher_lastname"]?> </strong></font><font color="#000000" size="2" face="Tahoma"><strong>กำลังใช้งานระบบ</strong></font></div></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
</table>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid gray">
  <!--DWLayoutTable-->
  <form action="" method="POST">
    <tr bordercolor="#FFFFFF" bgcolor="#ECF5FF"> 
      <td height="20" colspan="3" nowrap bordercolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma"><strong><font color="#003366" size="4" face="Tahoma">แสดง</font><font size="4">ข้อมูลเข้าระบบ</font></strong></font></div></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <td width="165" height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> 
        <div align="center"><font color="#003300" size="2" face="Tahoma">ชื่อผู้ใช้</font></div></td>
      <td nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td nowrap bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma"> 
        <?php 
     
echo"$rs[Username] ";
  
      
?>
        </font></td>
    </tr>
    <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE"> 
      <td height="20" nowrap bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">รหัสผ่าน</font></div></td>
      <td width="32" nowrap bgcolor="#EEEEEE"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="554" nowrap bgcolor="#EEEEEE"> <font color="#003366" size="2" face="Tahoma"> 
        <?php
       
echo"$rs[Password]";

     
?>
        <font color="#993333">(รหัสผ่านถูกเข้ารหัสแล้ว) </font></font></td>
    </tr>
    <tr bordercolor="#FFFFFF" bgcolor="#ECF5FF"> 
      <td colspan="3" nowrap><!--DWLayoutEmptyCell-->&nbsp; </td>
    </tr>
  </form>
</table>

<p>&nbsp;</p>
</body>
</html>
<?php 
    
}
else
{
    echo
"<body bgcolor=\"#CCCCCC\">";
     echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../../../logout.php\" target=\"mainFrame\">\n";
     echo
"<center>";
      echo
"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>";
      echo
"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>";
      echo
"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>";
      echo
"</center>";
      echo
"</body>";

?>

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