!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_beforeShowClassStudy.php (3.58 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
ini_set
('display_errors'1);
?>
<table width="100%">
    <tr>
        <td><!--<fieldset>!-->
            <div align="center"><br><form name="std" id="std" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><table width="100%" class="szone">
                <tr>
                    <td align="center" colspan="3"><span class="h error">ตารางเรียน/สอบ</span></td>
                </tr>
                <tr>
                    <td colspan="3">&nbsp;</td>
                </tr>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td class="coltd_szone">รหัสนักศึกษา 
                    <input type="text" name="stdCode" size="30" maxlength="10"></td>
                    <td class="coltd_szone">ชื่อ 
                    <input type="text" name="stdName" size="30"></td>
                    <td class="coltd_szone">นามสกุล 
                    <input type="text" name="stdSurname" size="30">
                    </td>
                </tr>
<?
    
if(isset($str_fault)) {
?>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td colspan="3" align="center"><span class="error"><?php echo $str_fault;?></span></td>
                </tr>
<?}?>
                <tr bgcolor="<?php echo $tr_color_even;?>">
                    <td colspan="3" align="center"><input type="submit" name="search" value="ค้นหา">
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล"></td>
                </tr>
                <tr>
                    <td height="22" colspan="3"></td>
                </tr>    
                <tr>
                    <td colspan="3"><table width="50%" align="center" class="headCol">
                        <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                            <th class="stdCodeCol">รหัสนักศึกษา</th>
                            <th class="teacherCol">ชื่อ-นามสกุล</th>
                        </tr>
<?php
                        $flagFound 
0;
                        
$i 0;
                        if(isset(
$rs_std) && $rs_std!=NULL) {
                            foreach(
$rs_std->result() as$row_std){
                                    echo 
"<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
                            <td align="center"><?php echo $row_std->stdCode;?></td>
                            <td class="indent"><a href="javascript:void(0)" onClick="sendPost('hidform',{'stdId':'<?echo $row_std->stdId;?>'},'<?echo ($this->session->userdata('UsPsCode'))? site_url($this->config->item("rg_folder").'timetable2/showTimeTableSt'):site_url($this->config->item("rg_folder").'general/showTimeTableSt');?>');"><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?></a></td>
                        </tr>
<?php                                                
                                $flagFound 
1;
                                
$i++;
                            }
                            
                            if(
$i == 0) {                    
?>
                        <tr>
                            <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                        </tr>
<?php
                            
}
                        }
                        else {
?>
                        <tr>
                            <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                        </tr>
<?php
                        
}
?>
                    </table></td>
                </tr>
            </table></form></div>
        <!--</fieldset>!--></td>
    </tr>
    <tr><td align="right">รวม <?php echo $i;?> รายการ</td></tr>
    <tr><td><br><span class="error"><b>หมายเหตุ : </b>
<?php
        
if(!$flagFound)
            echo 
'ระบุรหัส ชื่อ หรือนามสกุลนักศึกษา เพื่อดูข้อมูลตารางเรียนของนักศึกษา';
        else
            echo 
'คลิกที่ชื่อ-นามสกุลนักศึกษา เพื่อดูข้อมูลตารางเรียนของนักศึกษา';
?>
        </span></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.0123 ]--