!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_addRealStudyPlan.php (7.43 KB)      -rwxr-xr-x
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;
$row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $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")."fee/processRealStudyPlan", array("name" => "myform""id" => "myform"));?>
            <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                <tr>
                    <td colspan="3" align="center"><font size="3" color="<?php echo $font_color_err;?>" class="h"><b>บันทึกโปรแกรมการเรียนจริง</b></font><br></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">หลักสูตร</font></td>
                            <td><font size="2"><?php echo setValue("curName",$row_cur);?></font>
                            <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"><font size="2">ปีการศึกษาที่รับเข้า</font></td>
                            <td><font size="2"><?php echo $adY;?></font>
                            <input type="hidden" name="adY" id="adY" value="<?php echo $adY;?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">ชั้นปีที่</font></td>
                            <td><font size="2"><?php echo setValue('syCode',$row_sy);?></font>
                            <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"><font size="2">ปีการศึกษา</font></td>
                            <td><font size="2"><?php echo $acY;?></font>
                            <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>"></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">ภาคการศึกษา</font></td>
                            <td><font size="2"><?php echo setValue('tmCode',$row_tm);?></font>
                            <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>"></td>
                        </tr>
                    </table></td>
                </tr>
<?php
                
if(isset($rs_rsp) && $rs_rsp->num_rows()==0) {
?>
                <tr>
                    <td height="22" colspan="3"><input type="submit" name="confirm" id="confirm" value="ตามหลักสูตร"></td>
                </tr>
<?php
                
}
?>                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="2">
                    <table class="headCol" border="1">
                        <tr>
                            <th><font size="2" color="<?php echo $font_color_table;?>">รหัสรายวิชา</font></th>
                            <th><font size="2" color="<?php echo $font_color_table;?>">ชื่อรายวิชา</font></th>
                            <th><font size="2" color="<?php echo $font_color_table;?>">หน่วยกิต</font></th>
                            <th><font size="2" color="<?php echo $font_color_table;?>">ลบ</font></th>
                        </tr>
<?php
            $cnt 
0;
            if(
count($arr)) {
                foreach(
$arr as $key => $val) {
                    if (
$arr[$key]['level'] == 0) {
?>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td colspan="2" class="indent"><font size="2" ><b><?php echo $arr[$key]['cd'];?></b></font></td>
                            <td align="right"><input type="submit" name="addOrder<?php echo $cnt;?>" value="+"></td>
                            <td></td>
                        </tr>
<?php
                    
} else {
?>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td colspan="2" class="indent"><font size="2" ><b><?php echo $arr[$key]['cd'];?></b></font></td>
                            <td align="right"><input type="submit" name="addOrder<?php echo $cnt;?>" id="addOrder<?php echo $cnt;?>" value="+"></td>
                            <td></td>
                        </tr>
<?php
                        
for ($i 0$i count($arr[$key]['crs']); $i++) {
?>
                        <tr>
                            <td align="center"><font size="2"><?php echo $arr[$key]['crs'][$i]->crsCode;?></font></td>
                            <td class="indent"><font size="2"><?php echo explodeSquare($arr[$key]['crs'][$i]->crsName);?></font></td>
                            <td align="center"><font size="2"><?php echo $arr[$key]['crs'][$i]->crsUnit;?></font></td>
                            <td align="center">
                            <span onClick="confirmDel2(<?php echo $arr[$key]['url'][$i];?>, 'm_form1','<?php echo site_url($this->config->item('rg_folder').'fee/deleteRsp');?>')" /><img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span></td>
                        </tr>
<?php
                        
}
                    }

                        if(isset(
$order) && $order==$cnt) {
?>
                        <tr>
                            <td align="center">
                            <input type="text" name="crsCode" id="crsCode" size="10" class="input1" readonly /></td>
                            <td><input type="text" name="crsName" id="crsName" size="50" class="input1" readonly />
                            <input type="hidden" name="crsId" id="crsId" readonly />
                            <img src="<?php echo base_url().$this->config->item("rg_search");?>" align="absmiddle" border="0" class="hand"
                            onClick="sendPost('hidform',
                            {'curId':<?php echo setValue('curId',$row_cur);?>,
                             'syId':<?php echo setValue('syId',$row_sy);?>,
                             'tmId':<?php echo setValue('tmId',$row_tm);?>,
                             'adY':<?php echo $adY;?>,
                             'acY':<?php echo $acY;?>,
                             'cdId1':<?php echo $arr[$key]['cdId1'];?>},
                             '<?php echo site_url($this->config->item('rg_folder').'popup/coAndRsp_popup');?>',
                             {})" />
                            <!-- <'400,250)'> -->
                            <font size="2" color="<?php echo $font_color_err;?>">*</font>
                            <input type="hidden" name="coId" id="coId" readonly />
                            <input type="hidden" name="cdId" id="cdId" readonly >
                            <input type="hidden" name="cdId2" id="cdId2"></td>
                            <td align="center">
                            <input type="text" name="crsUnit" id="crsUnit" size="12" class="input1" readonly></td>
                            <td><input type="text" name="splitStudy" size="1" maxlength="1" value="1"></td>
                        </tr>
<?php
                        
}

                    
$cnt++;
                }
            }
?>
                        <tr>
                            <th align="center" colspan="2"><font size="2" color="<?php echo $font_color_table;?>">รวมหน่วยกิต</font></th>
                            <th align="center"><font size="2"><?php echo $sumCreditTotal;?></font></th>
                            <th><input type="hidden" name="cnt" id="cnt" value="<?php echo $cnt;?>" /></th>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="3" align="center"><br>
                    <input name="add" type="submit" value="บันทึก" />
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                    <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url($this->config->item("rg_folder"))."/fee/showRealStudyPlan";?>'" />
                    <input type="hidden" name="method" value="add"></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>หมายเหตุ : </b></span></td>
                <td><span class="error">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</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 ]--