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


Viewing file:     v_editStudentStatusCur.php (4.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur 
= (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
$row_sy = (isset($qu_sy) && $qu_sy!=NULL) ? $qu_sy->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")."student/processStdUpSstCur");?>
            <table align="center" width="100%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td colspan="2" align="center"><span class="h error">แก้ไขสถานะนักศึกษาตามหลักสูตร</span></td>
                </tr>
                <tr>
                    <td colspan="2"><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">หลักสูตร</td>
                            <td><?php echo setValue('curName',$row_cur);?>
                            <input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>" /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ชั้นปี</td>
                            <td><?php echo setValue('syCode',$row_sy);?>
                            <input type="hidden" name="syId" id="syId" value="<?php echo setValue('syId',$row_sy);?>" /></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">สถานะ</td>
                            <td>
<?php
                            
echo form_dropdown('stdSstId',$rs_sst,set_value('stdSstId'));
?>
                            <span class="error">*<?php echo form_error('stdSstId');?></span></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="2"><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr>
                            <th class="seqCol">เลือก</th>
                            <th class="stdCodeCol">รหัสนักศึกษา</th>
                            <th>ชื่อนักศึกษา</th>
                            <th class="domAmtCol">สถานะปัจจุบัน</th>
                        </tr>
<?php
                $i 
0;
                if(isset(
$rs_std) && $rs_std->num_rows()) {
                    foreach(
$rs_std->result() as $row) {
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center">
<?php
                            
if($row->stdSstId!=&& $row->stdSstId!=&& $row->stdSstId!=&& $row->stdSstId!=&& $row->stdSstId!=9) {
?>
                            <input type="checkbox" name="chkbox<?php echo $i;?>" id="chkbox<?php echo $i;?>" value="Y" <?php echo (set_value("chkbox".$i)!="") ? "checked" "";?> />
                            <input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $row->stdId;?>" />
<?php 
                            
}
?>
                            </td>
                            <td align="center"><?php echo $row->stdCode;?></font></td>
                            <td class="indent"><?php echo $row->prefixName.$row->stdName." ".$row->stdSurname;?></font></td>
                            <td class="indent"><?php echo $row->sstName;?></font>
                            <input type="hidden" name="stdSstId<?php echo $i;?>" id="stdSstId<?php echo $i;?>" value="<?php echo $row->stdSstId;?>" /></td>
                        </tr>
<?php
                        $i
++;
                    }
                } else {
?>
                        <tr>
                            <td colspan="4" align="center"><span class="error">** ไม่ปรากฏรายการนักศึกษาในหลักสูตร **</span></td>
                        </tr>
<?php
                
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="left"><input type="button" name="chkAll" id="chkAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true);" <?php if($i==0) { echo "disabled"; }?>>
                    <input type="reset" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false);" <?php if($i==0) { echo "disabled"; }?>></td>
                    <td align="right">รวม <?php echo $i;?> รายการ</font></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                    <input type="submit" name="edit" value="แก้ไข" <?php if($i==0) {echo "disabled";}?>>
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                    <input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>" /></td>
                </tr>
            </table><?php echo form_error();?></div>
        </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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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