!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_showNews.php (6.95 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_nw 
= (isset($qu_nw) && $qu_nw!=NULL) ? $qu_nw->row() : NULL;

if(isset(
$passvalid)) {
    
$frDate set_value('nwFrDate');
    
$toDate set_value('nwToDate');
} else {
    
$frDate = (setValue('nwFrDate',$row_nw)=="") ? getNowDateFw2() : splitDateDb2(setValue('nwFrDate',$row_nw),'/');
    
$toDate = (setValue('nwToDate',$row_nw)=="") ? getNowDateFw2() : splitDateDb2(setValue('nwToDate',$row_nw),'/');
}
?>
<table width="100%">
    <tr>
        <td class="h error">แจ้งข่าวประกาศ</td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td><table class="szone"><?php echo form_open_multipart($this->config->item("rg_folder")."faq/nw_insert_update", array("name" => "myform""id" => "myform"));?>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone">หัวเรื่องข่าว</td>
                <td><input type="text" name="nwTitle" id="nwTitle" value="<?php echo set_value('nwTitle',setValue('nwTitle',$row_nw));?>" size="60" maxlength="150" />
                <span class="error">*<?php echo form_error('nwTitle');?><span></td>
                <td class="coltd_szone">ข่าวประจำระบบ</td>
                <td>
<?php
                
echo form_dropdown('nwSystem'$rs_sysset_value('nwSystem',setValue('nwSystem',$row_nw)));
?>
                <span class="error">*<?php echo form_error('nwSystem');?><span></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone">วันที่เริ่มการแสดงข่าว</td>
                <td><script>DateInput('nwFrDate', true, 'DD/MM/YYYY', "<?php echo $frDate;?>");</script>
                <?php echo form_error('nwFrDate');?></td>
                <td class="coltd_szone">วันที่สิ้นสุดการแสดงข่าว</td>
                <td><script>DateInput('nwToDate', true, 'DD/MM/YYYY', "<?php echo $toDate;?>");</script></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone">ไฟล์รูปภาพ</td>
                <td><input type="file" name="nwPicture" id="nwPicture" value="<?php echo set_value('nwPicture');?>" />
                <span class="error"><br />(ขนาดรูปภาพควรมีขนาด 100x115 pixels เป็น .jpg เท่านั้น และขนาดไฟล์ไม่เกิน 2 MB)</span><br />
<?php
                
if($row_nw!=NULL && setValue('nwPicture',$row_nw)!="") {
?>
                <img src="<?php echo base_url().$this->config->item('rg_pictureNews').setValue('nwPicture',$row_nw);?>" width="100" height="115" />
<?php
                
}
?>
                <?php echo form_error('nwPicture');?></td>
                <td class="coltd_szone">ประกาศโดย</td>
                <td><input type="text" id="nwAnnoucedBy" name="nwAnnoucedBy" size="20" value="<?php echo set_value('nwAnnoucedBy',setValue('nwAnnoucedBy'$row_nw));?>">
                <span class="error"> *<?php echo form_error('nwAnnoucedBy');?></span></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone">รายละเอียด</td>
                <td>
<?php
                $att 
= array('name'        => 'nwDetail',
                             
'id'        => 'nwDetail',
                             
'value'    => set_value('nwDetail',setValue('nwDetail',$row_nw)),
                             
'rows'        => 5,
                             
'cols'        => 50);
                echo 
form_textarea($att);
?>
                <span class="error">* <?php echo form_error('nwDetail');?></span></td></td>
                <td class="coltd_szone">วันที่แจ้งข่าวประกาศ</td>
                <td><?php echo ($row_nw==NULL) ? abbreDate2(getNowDate()) : (abbreDate2(setValue('dateCreate',$row_nw)));?></td>
            </tr>
            <tr  bgcolor="<?php echo $tr_color_even;?>">
                <td colspan="4" align="center">
                <input type="submit" name="add" id="add" value="บันทึก" />
                <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                <input type="hidden" name="nwId" id="nwId" value="<?php echo setValue('nwId',$row_nw);?>" /></td>
            </tr>
        <?php echo form_close();?></table></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td align="right"><a href="<?php echo site_url($this->config->item('rg_folder'))."/faq/nw_showAll";?>" />ดูข่าวประกาศทั้งหมด</a></td>
    </tr>
    <tr>
        <td><table class="headCol">
            <tr>
                <th class="seqCol">ลำดับที่</th>
                <th>หัวเรื่องข่าวประกาศ</th>
                <th>ข่าวประจำระบบ</th>
                <th class="hourCol">วันที่แจ้งข่าวประกาศ</th>
                <th class="editCol">แก้ไข</th>
                <th class="deleteCol">ลบ</th>
            </tr>
<?php
    $i 
0;
    if(isset(
$rs_nw) && $rs_nw->num_rows()) {
        foreach(
$rs_nw->result() as $row_nw) {
        echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                <td align="center"><?php echo $i+1;?></td>
                <td class="indent">
                <span class="hand" onClick="sendPost(
                'frm_detail', 
                {'nwId':<?php echo $row_nw->nwId;?>},
                 '<?php echo site_url($this->config->item('rg_folder').'faq/nw_showDetail');?>',
                 {'width':500, 'height':600})" /><?php echo $row_nw->nwTitle;?></span></td>
                <td class="indent"><?php echo $row_nw->StNameT;?></td>
                <td class="indent"><?php echo abbreDate2($row_nw->dateCreate);?></td>
                <td align="center"><img src="<?php echo base_url()."images/".$this->config->item("rg_folder")."picture/edit.gif";?>" align="absmiddle" border="0" class="hand" 
                onClick="sendPost('hidform', 
                {'nwId':<?php echo $row_nw->nwId;?>},
                '<?php echo site_url($this->config->item('rg_folder').'faq/nw_show');?>')" />
                </td>
                <td align="center">
                <span onClick="confirmDel2({nwId:<?php echo $row_nw->nwId;?>}, 'del_form1','<?php echo site_url($this->config->item('rg_folder').'faq/nw_delete');?>')" /><img src="<?php echo base_url()."images/".$this->config->item("rg_folder")."picture/delete.gif";?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span>
                </td>
            </tr>
<?php
            $i
++;
        }
    } else {
?>
            <tr>
                <td colspan="6" class="error" align="center">** ไม่ปรากฏรายการข่าวในฐานข้อมูล **</td>
            </tr>
<?php
    
}
?>
        </table></td>
    </tr>
    <tr>
        <td align="right">รวม <?php echo $i;?> รายการ</td>
    </tr>
    <tr>
        <td><br /></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"><span class="error"></span></td>
                <td><span class="error">2. * หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</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.0137 ]--