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


Viewing file:     menu_std.php (16.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "./link/function.php";
include(
"./includes/FunctionDB.php");
include(
"admin_menu.php");
include(
"./includes/Function.php");
ConnectDB();
$sql1 "Select * From StudentMaster  Where  studentId='$studentId' ";     
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
$row mysql_fetch_array($result1);

$sql "Select * From StudentBio  Where  studentId='$studentId' ";     
$result mysql_query($sql) or die(" Error".mysql_error());
$rss mysql_fetch_array($result);
?> 

<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">
<!--
.style1 {
    font-size: 14px;
    font-weight: bold;
}
.style3 {font-size: 14px; font-family: Tahoma; }
.style4 {font-size: 14px}
-->
</style>
<table width="830" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="830" ><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="./StudentList.php">ข้อมูลนักศึกษา</a></font></legend>
            <form id="form1" name="form1" method="post" action="">
<font size="2" face="Tahoma"><img src="./picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
              <tr>
                <td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style4"><font face="Tahoma">ประวัตินักศึกษา</font></div></td>
              </tr>
      
              <tr>
                <td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"></div></td>
              </tr>
              <tr>
                <td colspan="2" bgcolor="#EBEBEB"><table width="100%" border="0" cellpadding="1" cellspacing="1" bordercolor="#999999">
                    <tr bgcolor="#FFFFFF">
                      <td width="32%" bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">รหัส</font></div>
                      </div></td>
                      <td width="68%" bgcolor="#FFFFFF">
                        <font color="#000000" size="2" face="Tahoma">:<strong>
                        <?=$rs["studentCode"]?>
                        </strong></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">ชื่อ-นามสกุล (ไทย)</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">
                        : <?php
               $prefixId 
=  $rs[prefixId];
               
$sql3"Select * From Prefix  Where prefixId='$prefixId'";
               
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs3 mysql_fetch_array($result3);
               echo
"$rs3[prefixName]";
               
?>
                      </font><font color="#990099" size="2" face="Tahoma"><a href="./StdDetail.php?studentId=<?=$rs["studentId"]?>" title="Click to see Detail"  class="d">
                      <?=$rs["studentName"]?>
                      <?=$rs["studentSurname"]?>
                      </a><a href="checkEnrollItem.php?studentCode=<?=$rs["studentCode"]?>" ></a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">ชื่อ-นามสกุล (อังกฤษ)</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF">
                        <font color="#990099" size="2" face="Tahoma">: </font><font color="#990099" size="2" face="Tahoma"><?=$rs["studentNameEng"]?>
                        <?=$rs["studentSurnameEng"]?>
                        </a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">หลักสูตร</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF">
                        <font color="#000000" size="2" face="Tahoma">
                        : <?php
              $programId 
=  $rs[programId];
               
$sql2"Select * From  Program   Where  programId='$programId' ";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[programName]";
               
?>
                        </font><font color="#003300" size="2" face="Tahoma">                        รุ่น </font><font color="#000000" size="2" face="Tahoma">
                        <?php
              $programId 
=  $rs[programId];
               
$sql2"Select * From  Generation   Where  programId='$programId' ";
               
$result2 mysql_query($sql2) or die("Error Select".mysql_query());
               
$rs2 mysql_fetch_array($result2);
               echo
"$rs2[genNo]";
               
?>
                        </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">ชั้นปีที่</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
                        <font color="#000000" size="2" face="Tahoma">:<strong>
                        <?=$rs["studentYear"]?>
                        </strong></font></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">อายุ</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                        : <?php //// Show Age
                             
$studentId =  $rs[studentId];
                               
$sql4"Select * From  StudentBio   Where  studentId='$studentId' ";
                               
$result4 mysql_query($sql4) or die("Error Select".mysql_query());
                               
$rs4 mysql_fetch_array($result4);        
                              
$age =  $rs4[birthDate];
                              
$year =  explode("-",$age);
                              
$year =   intval($year[0]);    
                             
$year $year 543;
                             
$currentyear date("Y");
                             
$currentyear =   intval($currentyear);          
                            
$age $currentyear $year ;
                              echo
"$age";
      
?>
                      </font><font color="#000000" size="2" face="Tahoma">ปี</font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">วันที่เข้ารับการศึกษา</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
                      : <?php 
       $sday 
$rs[admitDate];
    
$yearthai explode("-",$sday);
    
$day =      intval($yearthai[2]);
    
$month =  intval($yearthai[1]);
    
$year =     intval($yearthai[0]);     
          
//////////////////
 //   $yearthai =  $day ;
  
$m getThaiSubMonth($month);
     echo
"$day"." "."$m"." "."$year";
    
?>
                      </font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="18" bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">สถานะการลงทะเบียน</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#990099" face="Tahoma"><a href="checkEnrollItem.php?studentCode=<?=$rs["studentCode"]?>" class="style4" >ตรวจสอบรายวิชาลงทะเบียนเรียน</a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="18" bgcolor="#FFFFFF"><div align="left"></div></td>
                      <td bgcolor="#FFFFFF"><font color="#990099" face="Tahoma"><a href="/mis/eregis/login.php" target="_blank" class="style4" onclick='OpenWindow("showDetailEnrollFee.php?studentId=<?=$rs["studentId"]?>&amp;acadYear = <?=$rs["acadYear"]?>&amp;studentYear=<?=$rs["studentYear"]?>&amp;semester=<?=$rs["semester"]?>",700,500)'>ตรวจสอบค่าลงทะเบียน</a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td height="18" bgcolor="#FFFFFF"><div align="center" class="style3">
                        <div align="left"><font color="#000000">อาจารย์ที่ปรึกษา</font></div>
                      </div></td>
                      <td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma"> :&nbsp;อ. 
                        <?php
              $officerId1 
=  $rs[officerId1];
              
$sql3"Select * From  Officer  Where officerId='$officerId1'";
              
$result3 mysql_query($sql3) or die("Error Select".mysql_query());
               
$rs mysql_fetch_array($result3);
              echo
"$rs[officerName]&nbsp;$rs[officerSurname]";
               
?>
                      </font></td>
                    </tr>
                </table></td>
                <td width="22%" rowspan="4" bgcolor="#FFFFFF"><table width="106" border="2" align="center" cellpadding="0" cellspacing="2" bordercolor="#0000FF">
                  <tr>
                    <td width="94"><div align="center">
                        <?php
        
echo"<center>";
        echo
"<img src=\"$rss[picturePath]\" width=\"110\" height=\"130\" >";
        echo
"</center>";
       
?>
                    </div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF"><div align="center" class="style4"><font color="#000000" face="Tahoma">สภาพนักศึกษา</font></div></td>
                <td bgcolor="#FFFFFF"><font color="#003300" size="2" face="Tahoma">
                  : <?php
              $studentStatus 
=  $rs[studentStatus] ;
              
$sql4"Select * From   SysStudentStatusDes  ";
              
$result4 mysql_query($sql4) or die("Error Select".mysql_query());
               
$rs mysql_fetch_array($result4);
              echo
"$rs[description]";
               
?>
                </font></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                                <td bgcolor="#FFFFFF"><a href="checkEnrollItem.php?studentId=<?=$rs["studentCode"]?>" ></a></td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td rowspan="8" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td width="7%" bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td width="93%" bgcolor="#FFFFFF" ><span class="style4"><font face="Tahoma"><a href="./StdDetail.php?studentId=<?=$rss["studentId"]?>" > ข้อมูลนักศึกษา</a></font></span></td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma">ข้อมูลผู้ปกครอง</font></span></td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><font face="Tahoma">ข้อมูลทุนการศึกษา</font></font></span></td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><a href="/mis/eregis/login.php">ข้อมูลผลการเรียน</a></font></span></td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td bgcolor="#FFFFFF"><span class="style4"><font face="Tahoma"><font face="Tahoma">ข้อมูลสุขภาพ</font></font></span></td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td align="left" bgcolor="#FFFFFF"><span class="style4"><font color="#000000" face="Tahoma">ข้อมูลการลา</font></span></td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td bgcolor="#FFFFFF"><div align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></div></td>
                      <td bgcolor="#FFFFFF"><span class="style4"><font color="#000000" face="Tahoma">ข้อมูลพฤติกรรม 
                        และ วินัย นักศึกษา</font></span></td>
                    </tr>
                </table></td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td width="25%" bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            </table>
          </form>
          </fieldset>
        <br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
      </font></td>
    </tr>
</table>

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