!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/version_client/application/controllers/version/   drwxr-xr-x
Free 50.9 GB of 127.8 GB (39.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     user.php (2.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once('ver_controller.php');
class 
User extends Ver_controller {
  
    function 
change_pwd () {
        
$data['msg_submit'] = "";
        
        if (
$this->input->post('btnSubmit')) {
            
$this->load->library('form_validation');
            
$this->form_validation->set_error_delimiters('<div class="error">','</div>');
            
$this->form_validation->set_rules('txtOldPwd','รหัสผ่านเดิม','trim|required|xss_clean');
            
$this->form_validation->set_rules('txtNewPwd','รหัสผ่านใหม่','trim|required|xss_clean|matches[txtNewPwdConf]');
            
$this->form_validation->set_rules('txtNewPwdConf','ยืนยันรหัสผ่าน ','trim|required|xss_clean');
            
            if (
$this->form_validation->run() == TRUE) {
                
$this->db->trans_begin();
                
//$this->load->model($this->config->item("ums_folder").'m_umuser', 'umus');
                
$this->load->model($this->ver_path.'m_umuser''umus');
                
$UsLogin $this->session->userdata('UsLogin');
                
$UsPassword $this->input->post('txtOldPwd');
               
                
$qu_umus $this->umus->check_user2($UsLogin$UsPassword$this->config->item("secretcode"));

                if (
$qu_umus) {
                    
$this->umus->UsID $qu_umus["UsID"];
                    
$this->umus->UsName $qu_umus["UsName"];
                    
$this->umus->UsLogin $qu_umus["UsLogin"];
                    
$this->umus->UsPassword md5($this->config->item("secretcode").$this->input->post('txtNewPwd').$this->config->item("secretcode"));
                    
$this->umus->UsPsCode $qu_umus["UsPsCode"];
                    
$this->umus->UsActive $qu_umus["UsActive"];
                    
$this->umus->UsSessionID $qu_umus["UsSessionID"];
                    
$this->umus->update();
                    
                    
$data['msg_submit'] = "<div class=\"green\">เปลี่ยนรหัสผ่านเรียบร้อย</div>";
                } else {
                    
$data['msg_submit'] = "<div class=\"error\">รหัสผ่านไม่ถูกต้อง</div>";
                }
                
                if (
$this->db->trans_status() === FALSE) {
                    
$this->db->trans_rollback();
                } else {
                    
$this->db->trans_commit();
                }
                
                
            } else {
                
$data['msg_submit'] = "<div class=\"error\">ไม่สามารถเปลี่ยนรหัสผ่านได้</div>";
            }
        }
        
$this->ver_view $this->load->view($this->config->item("ver_folder").'v_change_pwd',$data,TRUE);
        
$this->ver_out();
    }
}
?>

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