!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/gateway.picotech.app/public_html/app/Http/Controllers/Api/   drwxr-xr-x
Free 28.56 GB of 117.98 GB (24.21%)
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.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Api;

use 
App\Http\Controllers\Controller;
use 
App\Models\AuthorizationToken;
use 
App\Models\Customer;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Validator;

class 
AuthController extends Controller
{
    public function 
authentication(Request $request){

        
$validator Validator::make($request->all(), [
            
'email'=>'required',
            
'password'=>'required',
        ]);

        if (
$validator->fails()) {
            return 
response()->json(['message' => $validator->errors()->messages()], 404);
        }

        
$customer Customer::where('email'$request->email)->first();

        if (
$customer && \Hash::check($request->password$customer->password)) {
            
$authorization AuthorizationToken::where('customer_id'$customer->id)->first();
            if(!
$authorization) {
                
$authorization = new AuthorizationToken();
                
$access_token$customer->createToken($customer->email)->plainTextToken;
                
$authorization->access_token $access_token;
                
$authorization->customer_id $customer->id;
                
$authorization->refresh_token $access_token;
                
$authorization->save();
            }
            
$data=[
                
'token'=>$authorization->access_token
            
];

            return 
response()->json(['message' => 'Login successful''data'=>$data]);

        }else{
            return 
response()->json(['message' => 'Invalid email or password. Please try again.'], 401);
        }
    }
}

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