!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_passStCur.php (8.73 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script>
function checkFormat(pgName, stY, acY, se) {
    if(confirm("คุณต้องการเลื่อนชั้น หลักสูตร"+pgName+"\nจากชั้นปี "+stY+" (ภาคการศึกษา "+se+" ปีการศึกษา "+acY+") เป็นชั้นปี "+eval(parseInt(stY)+1)+" !!\n\nเมื่อกดปุ่ม OK แล้ว จะทำการเลื่อนชั้นทันที โดยที่จะไม่สามารถเปลี่ยนแปลงได้อีก\nถ้ายืนยัน ให้กดปุ่ม OK"))
        return true;
    else
        return false;
}
</script>
<?php
$row_tm 
= ($qu_tm->num_rows()) ? $qu_tm->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><div align="center">
            <?php echo form_open($this->config->item("rg_folder")."passSt/processPassStCur", array("name" => "myform""id" => "myform"));?>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                <tr>
                    <td align="center"><span class="h error">ยืนยันการประมวลผลเลื่อนชั้นปี</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ชื่อหลักสูตร</td>
                            <td colspan="3"><?php echo $qu_cur->row()->curName;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ปีการศึกษาที่เข้า</td>
                            <td><?php echo $adY;?></td>
                            <td class="coltd_szone">ชั้นปีปัจจุบัน</td>
                            <td><?php echo $qu_sy->row()->syCode;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ปีการศึกษา</td>
                            <td><span class="error"><b><?php echo $acY;?></b></span>
                            <input type="hidden" name="acY" id="acY" value="<?php echo isset($acY) ? $acY '';?>"></td>
                            <td class="coltd_szone">ภาคการศึกษา</td>
                            <td><span class="error"><b><?php echo isset($row_tm) ? $row_tm->tmCode '';?></b></span>
                            <input type="hidden" name="tmId" value="<?php echo isset($row_tm) ? $row_tm->tmId '';?>"></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
if (isset($err_msg)) {
?>
                <tr>
                    <td height="22" colspan="6" align="center"><span class="h error"><b><?php echo $err_msg;?></b>
                    <?php echo isset($msgIEPX) ? $msgIEPX '';?></span></td>
                </tr>
<?php
                
}
?>
                <tr>
                    <td><table class="headCol">
                        <tr>
                            <th class="stdCodeCol">รหัสนักศึกษา</th>
                            <th>ชื่อ-นามสกุล</th>
                            <th class="seqCol">GPA</th>
                            <th class="domAmtCol">คะแนนความประพฤติ</th>
                            <th class="groupCol">สถานะกลุ่ม</th>
                            <th>หมายเหตุ</th>
                        </tr>
<?php
                $rg_passStatus 
$this->config->item("rg_passStatus");
                
$i 0;
                
$num_rows count($rs);
                if (
$num_rows) {
                    foreach (
$rs as $key => $val) {
                        
$row_std $rs[$key]['qu_std']->row();
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td height="22" align="center"><?php echo $row_std->stdCode;?></td>
                            <td class="indent"><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?>
                            <span class="error"><?php echo $rs[$key]['grdStr'];?>
                            <input type="hidden" name="stdId[]" value="<?php echo $row_std->stdId;?>"></span></td>
                            <td align="center"><?php echo number_format($row_std->stdGPA2);?></td>
                            <td align="center"><?php echo $row_std->stdTotalPoint;?></td>
                            <td align="center"><?php echo form_dropdown('passStatus[]'$rs_passStatus$rs[$key]['passStatus']);?></td>
                            <td><span class="error"><?php echo isset($rg_passStatus[$rs[$key]['passStatus']]) ? $rg_passStatus[$rs[$key]['passStatus']] : '';?></span></td>
                        </tr>
<?php
                        $i
++;
                    }

                } else {
?>
                        <tr>
                            <td height="22" colspan="6" align="center"><span class="error">** ไม่ปรากฏรายชื่อนักศึกษาดังกล่าว **</span></td>
                        </tr>
<?php
                
}

                if (
$num_rows && ($flagPass == 0)) {
?>
                        <tr>
                            <td height="22" colspan="6" align="center"><span class="error"><b>** เลื่อนชั้นแล้ว **</span></td>
                        </tr>
<?php
                
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="6" align="right">รวม <?php echo $i;?> รายการ</td>
                </tr>
                <tr>
                    <td colspan="6" align="center">
                    <input type="submit" name="confirm" value="ยืนยัน" 
<?php
//                    if ($num_rows == 0 || !$qu_tm->row()->tmId || $qu_tm->row()->tmId==1 || $flagIEPX)
                    
if ($num_rows == || !$qu_tm->row()->tmId || $flagIEPX)
                        echo 
'disabled';
?>
                    onClick="return checkFormat('<?php echo $qu_cur->row()->curName;?>','<?php echo $qu_sy->row()->syCode;?>','<?php echo $acY;?>','<?php echo setValue('tmCode',$row_tm);?>')">
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                    <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url().$this->config->item("rg_folder")."passSt/showPassStCur";?>'"></td>
                </tr>
            </table><?php echo form_close();?></div>
        <br></td>
    </tr>
    <tr>
        <td><table class="mark">
            <tr>
                <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </span></td>
                <td width="10%"><span class="error">กลุ่ม 1 หมายถึง </span></td>
                <td><span class="error">เลื่อนชั้นได้ คะแนนเฉลี่ยสะสม ตั้งแต่ 2.00 ขึ้นไป และไม่มีตกในรายวิชา</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">กลุ่ม 2 หมายถึง </span></td>
                <td><span class="error">เลื่อนชั้นได้อย่างมีเงื่อนไข คะแนนเฉลี่ยสะสม ตั้งแต่ 2.00 ขึ้นไป และตกในบางวิชา</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td></td>
                <td><span class="error">ต้องลงทะเบียนเรียนใหม่ในรายวิชาที่ตก</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">กลุ่ม 3 หมายถึง </span></td>
                <td><span class="error">เลื่อนชั้นได้อย่างมีเงื่อนไข คะแนนเฉลี่ยสะสม ระหว่าง 1.95-1.99</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td></td>
                <td><span class="error">ต้องทำคะแนนเฉลี่ยสะสม เมื่อจบปี 2 ไม่น้อยกว่า 2.00 จึงจะเลื่อนชั้นได้</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">กลุ่ม 4 หมายถึง </span></td>
                <td><span class="error">ซ้ำชั้น คะแนนเฉลี่ยสะสม น้อยกว่า 1.95 หรือคะแนนความประพฤติต่ำกว่า 80 คะแนน</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">กลุ่ม 5 หมายถึง </span></td>
                <td><span class="error">พ้นสภาพนักศึกษา ได้คะแนนเฉลี่ยสะสม น้อยกว่า 1.75 หรือไม่ชำระเงิน เกิน 1 ภาค</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td></td>
                <td><span class="error">จำนวนปีที่ศึกษาเกินกว่า 2 เท่าของเวลาที่หลักสูตรกำหนด</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"><b><span class="error">คำเตือน : </span></td>
                <td colspan="2"><span class="error">เมื่อกดปุ่มยืนยันแล้ว จะทำการเลื่อนชั้นทันที <span class="error">โดยที่จะไม่สามารถเปลี่ยนแปลงได้อีก</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.0109 ]--