!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/mis2222/application/views/eregis/   drwxrwxrwx
Free 50.65 GB of 127.8 GB (39.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_checkRegistDetails.php (6.64 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= isset($qu_std) ? $qu_std->row() : NULL;
$row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <div align="center"><span class="h" style="color:<?php echo $font_color_err;?>">ผลการลงทะเบียน</span>
            <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1">
<?php
                
if (!$std) {
?>
                <tr>
                    <td><?php echo form_open($this->config->item('rg_folder').'checkregis/checkRegistDetails');?>
                    <span><b>รหัสนักศึกษา</b></span>
                    <input type="text" id="stdCode" name="stdCode" size="10" maxlength="10" />
                    <input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" />
                    <?php echo form_close();?></td>
                </tr>
<?php
                
}
?>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
if (isset($stdCode)) {
                    if (isset(
$qu_std)) {
?>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>รหัสนักศึกษา</b></span></td>
                            <td><span><?php echo getval('stdCode'$row_std);?></span>
                            <input type="hidden" id="stdId" name="stdId" value="<?php echo getval('stdId'$row_std);?>" /></td>
                            <td class="coltd_szone"><span><b>ชื่อ-นามสกุล</b></span></td>
                            <td><span><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
                            <td><span><?php echo explodeSquare(getval('curName'$row_std));?></span>
                            <input type="hidden" id="curId" name="curId" value="<?php echo getval('curId'$row_std);?>" /></td>
                            <td class="coltd_szone"><span><b>ชั้นปี</b></span></td>
                            <td><?php echo getval('syCode'$row_std);?>
                            <input type="hidden" id="syId" name="syId" value="<?php echo getval('syId'$row_std);?>" /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><span><b>ปีการศึกษา</b></span></td>
                            <td><span><?php echo $acY;?></span></td>
                            <td class="coltd_szone"><span><b>ภาคการศึกษา</b></span></td>
                            <td><span><?php echo getval('tmCode'$row_tm);?></span></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><span><b>ปีการศึกษา</b>
<?php
                    $js 
"id=\"acY\" onChange=\"sendPost('hidform', {'stdCode':".$stdCode.",'acY':this.value,'tmId':".$tmId.",'std':'".$std."'}, '".$std."checkRegistDetails')\"";
                    echo 
form_dropdown('acY'$rs_rgAcY$acY$js);
?>
                    <b>&nbsp;ภาคการศึกษา</b></span>
<?php
                    $js 
"id=\"tmId\" onChange=\"sendPost('hidform', {'stdCode':".$stdCode.",'acY':".$acY.",'tmId':this.value,'std':'".$std."'}, '".$std."checkRegistDetails')\"";
                    echo 
form_dropdown('tmId'$rs_rgTmId$tmId$js);
?>
                    </td>
                </tr>
                <tr>
                    <td><table class="headCol">
                        <tr>
                            <th class="domAmtCol"><span>รหัสรายวิชา</span></th>
                            <th><span>ชื่อรายวิชา</span></th>
                            <th class="stdCodeCol"><span>หน่วยกิต</span></th>
                            <th class="editCol"><span>กลุ่ม</span></th>
                            <th class="groupCol"><span>สถานะ</span></th>
                        </tr>
<?php                
                        $i 
0;
                        foreach (
$rs_rd->result() as $row_rd) {
                            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td class="indent"><span><?php echo $row_rd->crsCode;?></span></td>
                            <td class="indent"><span><?php echo $row_rd->crsName;?></span></td>
                            <td align="center"><span><?php echo $row_rd->crsUnit;?></span></td>
                            <td align="center"><span><?php echo $row_rd->coSection;?></span></td>
                            <td align="center"><span><?php echo $row_rd->rgStatus;?></span></td>
                        </tr>
<?php
                            $i
++;
                        }    
// end foreach

                        
$j $i;
                        foreach (
$rs_rw->result() as $row_rw) {
                            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td class="indent"><span><?php echo $row_rw->crsCode;?></span></td>
                            <td class="indent"><span><?php echo $row_rw->crsName;?></span></td>
                            <td align="center"><span><?php echo $row_rw->crsUnit;?></span></td>
                            <td align="center"><span><?php echo $row_rw->coSection;?></span></td>
                            <td align="center"><span><?php echo $row_rw->rgStatus.'*';?></span></td>
                        </tr>
<?php
                            $j
++;
                        }    
// end foreach
                        
                        
if ($j == 0) {
?>
                        <tr>
                            <td colspan="6" align="center"><span style="color:<?php echo $font_color_err;?>">** ไม่ปรากฏรายวิชาในการลงทะเบียนเรียน **</span></td>
                        </tr>
<?php
                        
}

                        if (isset(
$kssFlag)) {
?>
                        <tr>
                            <td colspan="6" align="center"><span style="color:<?php echo $font_color_err;?>"><?php echo $kssFlag;?></span></td>
                        </tr>
<?php
                        
}
?>
                        <tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
                            <td colspan="2" align="right"><span><b>รวมหน่วยกิต</b></span></td>
                            <td align="center"><span><?php echo number_format($sumCrAt);?></span></td>
                            <td colspan="3"></td>
                        </tr>
                    </table></td>
                </tr>
<?php
                    
} else {
?>
                <tr>
                    <td align="center"><span style="color:<?php echo $font_color_err;?>"><?php echo $err_msg;?></span></td>
                </tr>
<?php
                    
}    // end if qu_std
                
}    // end if stdCode
?>
            </table></div>
        <br></td>
    </tr>
    <tr>
        <td><table class="mark">
            <tr>
                <td class="coltd_mark"><span style="color:<?php echo $font_color_err;?>"><b>หมายเหตุ : </b></span></td>
                <td><span style="color:<?php echo $font_color_err;?>">N = ปกติ, N* = ถอนรายวิชาที่ลงทะเบียนก่อนช่วงเพิ่ม-ถอน</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span style="color:<?php echo $font_color_err;?>">A = เพิ่ม, A* = ถอนรายวิชาที่ลงทะเบียนในช่วงเพิ่ม-ถอน</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span style="color:<?php echo $font_color_err;?>">C = ถอนรายวิชาเนื่องจากรักษาสภาพ, T = รายวิชาเทียบเท่า/เทียบโอน</span></td>
            </tr>
        </table></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.0062 ]--