!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)

/uploads/script/app/Http/Controllers/Customer/   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:     LoginController.php (2.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Customer;

use 
App\Http\Controllers\Controller;
use 
Illuminate\Http\Request;
use 
Illuminate\Foundation\Auth\ThrottlesLogins;
use 
Auth;

class 
LoginController extends Controller
{
       public function 
__construct()
    {
       if(
env('MULTILEVEL_CUSTOMER_REGISTER') != true || url('/') == env('APP_URL')){
        
abort(404);
       }


    }
       use 
ThrottlesLogins;

       
/**
    * Max login attempts allowed.
    */
       
public $maxAttempts 5;

   
/**
   * Number of minutes to lock the login.
   */
   
public $decayMinutes 3;

    
/**
     * Login the admin.
     * 
     * @param \Illuminate\Http\Request $request
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function login(Request $request)
    {
        
$validated $request->validate([
            
'email' => 'required|max:100|email',
            
'password' => 'required',
        ]);

        
//check if the user has too many login attempts.
        
if ($this->hasTooManyLoginAttempts($request)){
        
//Fire the lockout event.
            
$this->fireLockoutEvent($request);

        
//redirect the user back after lockout.
            
return $this->sendLockoutResponse($request);
        }

        if(
Auth::guard('customer')->attempt(['email' => $request->email'password' => $request->password'created_by' => domain_info('user_id')],$request->filled('remember'))){
        
//Authentication passed...
            
return redirect()
            ->
intended(url('/user/dashboard'))
            ->
with('status','You are Logged in as Admin!');
        }

        
//keep track of login attempts from the user.
        
$this->incrementLoginAttempts($request);

       
//Authentication failed...
        
return $this->loginFailed();
    }

     
/**
     * Username used in ThrottlesLogins trait
     * 
     * @return string
     */
    
public function username(){
        return 
'email';
    }

    
/**
     * Logout the admin.
     * 
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function logout()
    {
        
Auth::guard('customer')->logout();
        return 
redirect('/');
    }

    
/**
     * Validate the form data.
     * 
     * @param \Illuminate\Http\Request $request
     * @return 
     */
    
private function validator(Request $request)
    {
      
//validate the form...
    
}

    
/**
     * Redirect back after a failed login.
     * 
     * @return \Illuminate\Http\RedirectResponse
     */
    
private function loginFailed()
    {

      return 
redirect()
        ->
back()
        ->
withInput()
        ->
with('error','Login failed, please try again!');
    }
}

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