!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.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_showRepRis111.php (4.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <div align="center"><br />
            <?php echo form_open($this->config->item("rg_folder")."", array("name" => "myform""id" => "myform"));?>
            <table width="90%" align="center" border="0" cellpadding="0" cellspacing="1">
                <tr>
                    <td colspan="2"><br /></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><font size="3" color="<?php echo $font_color_err;?>"><b>รายวิชาที่สอน</b></font></td>
                </tr>
                <tr>
                    <td height="22" colspan="4"></td>
                </tr>
                <tr>
                    <td width="20%" height="22"><font size="2"><b>ภาค/ปีการศึกษา</b></font></td>
                    <td width="80%"><font size="2"> <?php echo $tmId."/".$acY;?></font>
                    <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" />
                    <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>" /></td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td height="22"><font size="2"><b>รหัสรายวิชา</b></font></td>
                    <td><font size="2">*<?php echo $crsCode;?>*</font>
                    <input type="hidden" name="crsCode" id="crsCode" value="<?php echo $crsCode;?>" /></td>
                </tr>
                <tr>
                    <td height="22" colspan="2"></td>
                </tr>
                <tr>
                    <td colspan="2">
                    <table width="100%" border="0">
                        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                            <td width="10%" height="22" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>รหัสรายวิชา</b></font></td>
                            <td width="45%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อรายวิชา</b></font></td>
                            <td width="35%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่ออาจารย์ผู้สอน</b></font></td>
                            <td width="5%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>พิมพ์</b></font></td>
                        </tr>
<?php
    $i 
=0;
    if(
$arr) {
        foreach(
$arr as $key => $karr) {        // คู่แรก [279] = array()
                
$i++;
                if((
$i%2) == 0)
                    echo 
"<tr>";
                else
                    echo 
"<tr bgcolor=\"".$tr_color_even."\">";

                if(
$key) {
?>
                    <td><input type="hidden" name="crsId" value="<?php echo $key;?>" />
<?php
                
}

                
$strCurName "";
                
$strPrsName "";
                
$strSection "";
                foreach(
$karr as $kk => $vv) {                    // คู่ใน check ว่าเป็น array หรือว่า value
                                                                //echo "$kk=$vv";
                    
if("crsCode"==$kk) {
?>
                        <font size="2"><?php echo $vv;?></font></td>
<?php
                    
}
                    
                    if(
"crsName"==$kk) {
?>
                        <td><font size="2"><?php echo $vv;?></font>

<?php
                    
}
                    if(
"coId"==$kk) {
                        
$coId $vv;
                    }

                    if(
is_array($vv)) {

                        foreach(
$vv as $kvv => $vvv) {            // คู่ในสุด เอาค่าออกมา
                                                                //echo "$kvv = $vvv<br />"; else echo "$kk = $vv<br />";
                            
if("curName"==$kvv) {

                                
$strCurName .= "[".$vvv."]<br />";
                            }
                            if(
"prsName"==$kvv) {
                                
$prs explode("||"$vvv);
                                foreach(
$prs as $kprs => $pvv) {
                                    
$strPrsName .= $pvv.", ";
                                }
                            }
                            if(
"coSectionClass"==$kvv) {
                                
$strSection .= $vvv.", <br />";
                            }
                        }
?>
<?php
                    
}
                }
                
$teacher substr($strPrsName0, -2);
?>
                            <font size="2" color="<?php echo $font_color_err;?>" /><?php echo "<br />".$strCurName;?></font></td>
                            <td><font size="2" color="<?php echo $font_color_err;?>" /><?php echo $teacher;?></font></td>
                            <td align="center">
<?php                        $lnk anchor($this->config->item("rg_folder")."rpt_misc/repRis111/$acY/$tmId/$coId""<img src=\"".base_url().$this->config->item("rg_print")."\" align=\"absmiddle\" border=\"0\" />");
                            echo 
$lnk;
?>
                            </td>
                        </tr>
<?php
            
}
        } else {
?>
                        <tr>
                            <td colspan="4" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายวิชาที่สอนในฐานข้อมูล **</font></td>
                        </tr>
<?php
        
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="4" align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>
                </tr>
            </table></form></div>
        </fieldset><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 ::
 
[ 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.0123 ]--