!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/info/   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_showCourseSendGradeRow.php (5.31 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cfg 
= isset($qu_cfg) ? $qu_cfg->row() : NULL;
?>
<table class="headCol">
    <tr>
        <th><span class="fontT">ลำดับ</span></td>
        <th><span class="fontT">รหัสวิชา</span></td>
        <th><span class="fontT">ชื่อวิชา</span></td>
        <th><span class="fontT">กลุ่ม</span></td>
        <th><span class="fontT">จำนวน<br>นักศึกษา</span></td>
        <th><span class="fontT">หน่วยกิต</span></td>
        <th colspan="2"><span class="fontT">สถานะ<br>การส่งเกรด</span></td>
        <th><span class="fontT">พิมพ์</span></td>
<?php
        
if ($tc) {
?>
        <th>ใบกรอก<br>เกรด</th>
<?php
        
}
?>
    </tr>
<?php
$num_rows 
count($rs);
if (
$num_rows) { 
    
$i=0;
    foreach (
$rs as $key => $val) {
        
$row_crs $rs[$key]['crs']->row();
        
$row_co $rs[$key]['co']->row();
        
$i=$i+1;
        echo 
"<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
        <td class="indent"><?php echo $i;?></td>
        <td class="indent"><?php echo $row_crs->crsCode;?></td>
        <td class="indent"><?php echo explodeSquare($row_crs->crsName);?><br />
        <font color="<?php echo getval('cfgFnClErrSpec'$row_cfg);?>">[<?php echo isset($rs[$key]['pgNames']) ? $rs[$key]['pgNames'] : '';?>]</font></td>
        <td align="center"><?php echo ($rs[$key]['view'] == 's') ? '-' $row_co->coSection;?></td>
        <td align="center"><?php echo ($rs[$key]['view'] == 's') ? $rs[$key]['sumEnrollSeat'] : $row_co->coNumSeatReg;?></td>
        <td align="center"><?php echo $row_crs->crsUnit;?></td>
        <td align="center">
<?php
        
if (($rs[$key]['view'] == 's' && $rs[$key]['flagAllSend']) || ($rs[$key]['view'] <> 's' && $row_co->coSendGradeStatus == 'Y')) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_stamp');?>" width="19" height="19" align="absmiddle" border="0" />

<?php
        
} else if ($rs[$key]['view'] == 's' && $rs[$key]['flagSomeSend']) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" />
<?php
        
} else {
            if (
$flagSendGr) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" class="hand" onClick="sendPost('hidform_add', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>','tc':'<?php echo $tc;?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/addSendGrade');?>')" />
<?php
            
} else {
?>
        <img src="<?php echo base_url().$this->config->item('rg_listmenu');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" />
<?php
            
}
        }
?>
        </td>
        <td align="center">
<?php
        
if (($rs[$key]['view'] == 's' && $rs[$key]['flagAllSend']) || ($rs[$key]['view'] <> 's' && $row_co->coSendGradeStatus == 'Y')) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_stamp');?>" width="19" height="19" align="absmiddle" border="0" />
<?php
        
} else if ($rs[$key]['view'] == 's' && $rs[$key]['flagSomeSend']) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" />
<?php
        
} else {
            if (
$flagSendGr) {
?>
        <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" class="hand" onClick="sendPost('hidform_1', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>','tc':'<?php echo $tc;?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/addGradeTextarea');?>')" />
<?php
            
} else {
?>
        <img src="<?php echo base_url().$this->config->item('rg_ico_excel');?>" width="19" height="19" align="absmiddle" border="0" title="ยังไม่ส่งเกรดบางกลุ่ม" />
<?php
            
}
        }
?>
        </td>
        <td class="hand" align="center"><img src="<?php echo base_url().$this->config->item('rg_print');?>" align="absmiddle" border="0" onClick="sendPost('hidform', {'coId':<?php echo $row_co->coId;?>,'clIdStr':'<?php echo $rs[$key]['clIdStr'];?>','view':'<?php echo $rs[$key]['view'];?>'}, '<?php echo site_url($this->config->item('rg_folder').'grade/printSendGradePDF');?>', {})" /></td>
<?php
        
if ($tc) {
?>
        <td align="center">
<?php
            
if (((($rs[$key]['view'] == 's') && !$rs[$key]['flagAllSend']) || (($rs[$key]['view'] <> 's') && ($row_co->coSendGradeStatus == 'N'))) && !$flagSendGr) {
?>
        <span class="hand" onClick="sendPost('hidform', {'coId':<?php echo $row_co->coId;?>}, '<?php echo site_url($this->config->item('rg_folder').'rpt_regis/rptRis110');?>')"><img src="<?php echo base_url().$this->config->item('rg_excel_exp');?>" align="absmiddle" border="0" /></span>
<?php
            
} else {
                echo 
'-';
            }
?>
        </td>
<?php
        
}
?>
    </tr>
<?php
    
}
} else {
?>
    <tr>
        <td colspan="9" align="center"><span class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</span></td>
    </tr>
<?php
}
?>
</table>
<table width="100%">
    <td align="right">รวม <?php echo $num_rows;?> รายการ</td>
</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.0133 ]--