!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/   drwxr-xr-x
Free 51 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_paymentRegisCurriculum.php (9.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%">
    <tr>
        <td>
            <?php echo form_open_multipart($this->config->item("rg_folder").'payment/'.(isset($action) ? $action 'paymentRegisCur'), array("name" => "myform""id" => "myform"));?>
            <table width="100%">
                <tr>
                    <td colspan="2" align="center"><span class="h error">ชำระค่าลงทะเบียนเรียนรายกลุ่ม (ผ่านทางธนาคาร)</b></span></td>
                </tr>
                <tr>
                    <td colspan="2"></td>
                </tr>
<?php
                
if (!isset($btnSend) && !isset($btnConfirm)) {
?>
                <tr>
                    <td colspan="2"><span class='error'><b>1. ดาวน์โหลดแฟ้มข้อมูล เพื่อกรอกข้อมูล</b></span></td>
                </tr>
                <tr>
                    <td colspan="2" class="indentPm">ดาวน์โหลดแฟ้มตัวอย่าง
                    <?php echo anchor(base_url().'uploads/'.$this->config->item("rg_folder").'doc/template.csv''คลิกที่นี่');?></td>
                </tr>
                <tr>
                    <td colspan="2" class="indentPm"><br><b>ตัวอย่างการกรอกแฟ้มข้อมูล</b></td>
                </tr>
                <tr>
                    <td align="center" colspan="2"><br><img src="<?php echo base_url().$this->config->item('rg_paymentTP');?>"></td>
                </tr>
                <tr>
                    <td colspan="2"><br><span class='error'><b>2. อัพโหลดแฟ้มข้อมูล</b></span></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" class="indentPm"><b>เล่มที่</b>
                    <input type="text" name="refNoPmBook" id="refNoPmBook" size="<?php echo $this->config->item('rg_refNoPmBook_length');?>" maxlength="<?php echo $this->config->item('rg_refNoPmBook_length');?>" class="required-int" value="<?php echo set_value('refNoPmBook');?>" />
                    <span class="indentPm"><b>เลขที่</b></span>
                    <input type="text" name="refNoPmNo" id="refNoPmNo" size="<?php echo strlen($this->config->item('rg_refNoPmNo_max'));?>" maxlength="<?php echo strlen($this->config->item('rg_refNoPmNo_max'));?>" class="required-int" value="<?php echo set_value('refNoPmNo');?>" />
                    <?php echo form_error('refNoPmBook') ? form_error('refNoPmBook') : form_error('refNoPmNo');?>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="indentPm"><b>แฟ้มข้อมูล</b>
                    <input type="file" name="uploadfile" id="uploadfile" />
                    <input type="submit" name="btnSend" id="btnSend" value="อัพโหลดไฟล์"/>
                    <?php echo form_error('uploadfile');?></td>
                </tr>
<?php
                
}
?>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2"><table class='headCol'>
                        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                            <th>ลำดับ</th>
                            <th>ชื่อ-สกุล</th>
                            <th>วันที่ชำระ</th>
                            <th>ประเภท<br>การชำระ</th>
                            <th>เลขที่เอกสาร</th>
                            <th>จำนวนเงินที่ชำระ</th>
                            <th>เล่มที่</th>
                            <th>เลขที่</th>
                        </tr>
<?php
                        $num_rows 
count($rs);
                        if (
$num_rows) {
                            foreach (
$rs as $key => $val) {
                                
$row_std $rs[$key]['qu_std'] ? $rs[$key]['qu_std']->row() : NULL;
?>
                        <tr>
                            <td align="center"><?php echo $key 1;?></td>
                            <td class='indent'><?php echo setValue('pfName'$row_std).setValue('stdName'$row_std).' '.setValue('stdSurname'$row_std);?></td>
                            <td align="center"><?php echo $rs[$key]['payDate'];?>
<?php
                                
if (isset($rs[$key]['pmDate'])) {
?>
                            <input type="hidden" name="pmDate[]" value="<?php echo $rs[$key]['pmDate'];?>" />
<?php
                                
}
?>
                            </td>
                            <td class='indent'>ทางธนาคาร
                            <input type="hidden" name="pmType[]" value="2" /></td>
                            <td align="center"><?php echo $rs[$key]['refNo'];?>
<?php
                                
if (isset($rs[$key]['pmRfId'])) {
?>
                            <input type="hidden" name="pmRfId[]" value="<?php echo $rs[$key]['pmRfId'];?>">
<?php
                                
}
?>
                            </td>
                            <td align="right"><?php echo $rs[$key]['pmAmt'];?>
                            <input type="hidden" name="pmAmt[]" value="<?php echo $rs[$key]['pmAmt'];?>" /></td>
                            <td align="center"><?php echo isset($rs[$key]['pmBook']) ? $rs[$key]['pmBook'] : "";?></td>
                            <td align="center"><?php echo isset($rs[$key]['pmNo']) ? $rs[$key]['pmNo'] : "";?></td>
                        </tr>
<?php
                            
}
                        } else {
?>
                        <tr>
                            <td align="center" height="22" colspan="8"><span class='error'>** ไม่ปรากฏรายการชำระค่าลงทะเบียนเรียนในฐานข้อมูล **</span></td>
                        </tr>
<?php
                        
}
                        if (isset(
$btnConfirm)) {
?>
                        <tr>
                            <td colspan="8">
                            <input type="button" name="print1" value="พิมพ์ใบเสร็จ" onClick="document.print1.submit()">
                            <input type="button" name="print2" value="พิมพ์ใบสำคัญ" onClick="document.print2.submit()">
                            <!-- <input type="button" name="print3" value="ส่งออกระบบใบเสร็จ" onClick="document.print3.submit()"> -->
                            <input type="button" name="cancel" value="ย้อนกลับ" onClick="location.href = '<?php echo site_url($this->config->item("rg_folder").'payment/paymentRegisCur');?>'">
                            </td>
                        </tr>
<?php
                        
}
?>
                    </table></td>
                </tr>
                <tr>
                    <td>
<?php
                            
if (isset($btnSend)) {
?>
                            <input type="submit" name="btnConfirm" value="ยืนยัน" onClick="return checkFormat()" <?php echo ($dsb) ? 'disabled' '';?>>
                            <input type="button" name="clear" value="ยกเลิก" onClick="sendPost('hidform', {'docPath':'<?php echo $docPath;?>'}, '<?php echo site_url($this->config->item("rg_folder").'payment/delete_file');?>')">
                            <input type="hidden" name="refNoPmBook" value="<?php echo $refNoPmBook;?>">
                            <input type="hidden" name="refNoPmNo" value="<?php echo $refNoPmNo;?>">
                            <input type="hidden" name="docPath" value="<?php echo $docPath;?>">
<?php
}
?>                    </td>
                    <td align='right'>รวม <?php echo $num_rows;?> รายการ</td>
                </tr>
<?php
                
if (!isset($btnSend) && !isset($btnConfirm)) {
?>
                <tr>
                    <td colspan="2"><br><b>รายชื่อแฟ้มข้อมูลที่อัพโหลดแล้ว</b></td>
                </tr>
<?php
                    $files 
get_filenames($this->config->item("rg_upload_doc"));
                    for (
$i 0$i count($files); $i++) {
?>
                <tr>
                    <td colspan="2" >
<?php
                    
// echo anchor(base_url().$this->config->item("rg_upload_doc").$files[$i], $files[$i] );
                    
echo ($i+1).'. [ '.$files[$i].' ]&nbsp;&nbsp';
                    
$image_rg_listmenu = array(
                        
'src' => base_url().$this->config->item('rg_listmenu'),
                        
'alt' => '',
                        
'border' => '0',
                        
'width' => '19',
                        
'height' => '19',
                        
'align' => 'absmiddle',
                    );
                    
$image_ico_excel = array(
                        
'src' => base_url().$this->config->item('rg_ico_excel'),
                        
'alt' => 'download',
                        
'title' => 'download',
                        
'border' => '0',
                        
'width' => '19',
                        
'height' => '19',
                        
'align' => 'absmiddle',
                    );
                    echo 
anchor(base_url().$this->config->item("rg_upload_doc").$files[$i], img($image_rg_listmenu) );
                    echo 
"&nbsp;";
                    echo 
anchor("eregis/payment/downloadFile/".$files[$i], img($image_ico_excel) );
                    
?>
                    </td>
                </tr>
<?php
                    
}
                }
?>
            </table><?php echo form_close();?>
<?php
            
if (isset($btnConfirm)) {
                echo 
form_open($this->config->item("rg_folder").'payment/prePrintPaymentRegisAllPDF', array("name" => "print1""id" => "print1""target" => "_blank"));

                if (
$num_rows) {
                    foreach (
$rs as $key => $val) {
                        
$row_rf $rs[$key]['qu_rf']->row();
?>
                <input type="hidden" name="pmId[]" value="<?php echo $rs[$key]['pmId'];?>" />
                <input type="hidden" name="stdId[]" value="<?php echo $row_rf->rfStdId;?>" />
                <input type="hidden" name="acY[]" value="<?php echo $row_rf->rfAcY;?>" />
                <input type="hidden" name="tmId[]" value="<?php echo $row_rf->rfTmId;?>" />
                <input type="hidden" name="syId[]" value="<?php echo $row_rf->rfSyId;?>" />
<?php
                    
}
                }

                echo 
form_close();

                echo 
form_open($this->config->item("rg_folder").'payment/printPaymentRegis2AllPDF', array("name" => "print2""id" => "print2""target" => "_blank"));

                if (
$num_rows) {
                    foreach (
$rs as $key => $val) {
                        
$row_rf $rs[$key]['qu_rf']->row();
?>
                <input type="hidden" name="pmId[]" value="<?php echo $rs[$key]['pmId'];?>" />
                <input type="hidden" name="stdId[]" value="<?php echo $row_rf->rfStdId;?>" />
                <input type="hidden" name="acY[]" value="<?php echo $row_rf->rfAcY;?>" />
                <input type="hidden" name="tmId[]" value="<?php echo $row_rf->rfTmId;?>" />
<?php
                    
}
                }

                echo 
form_close();

                echo 
form_open($this->config->item("rg_folder").'fee/sendToReceipt_cur', array("name" => "print3""id" => "print3""target" => "_blank"));

                if (
$num_rows) {
                    foreach (
$rs as $key => $val) {
                        
$row_rf $rs[$key]['qu_rf']->row();
?>
                <input type="hidden" name="pmId[]" value="<?php echo $rs[$key]['pmId'];?>" />
                <input type="hidden" name="stdId[]" value="<?php echo $row_rf->rfStdId;?>" />
                <input type="hidden" name="acY[]" value="<?php echo $row_rf->rfAcY;?>" />
                <input type="hidden" name="tmId[]" value="<?php echo $row_rf->rfTmId;?>" />
<?php
                    
}
                }
            }
?>
            </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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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