!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/main_file/app/Http/Controllers/Auth/   drwxrwxr-x
Free 13.22 GB of 57.97 GB (22.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     NewPasswordController.php (2.25 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Auth;

use 
App\Http\Controllers\Controller;
use 
Illuminate\Auth\Events\PasswordReset;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Hash;
use 
Illuminate\Support\Facades\Password;
use 
Illuminate\Support\Str;
use 
Illuminate\Validation\Rules;

class 
NewPasswordController extends Controller
{
    
/**
     * Display the password reset view.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\View\View
     */
    
public function create(Request $request)
    {
        return 
view('auth.passwords.reset', ['request' => $request]);
    }

    
/**
     * Handle an incoming new password request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse
     *
     * @throws \Illuminate\Validation\ValidationException
     */
    
public function store(Request $request)
    {
        
        
$request->validate([
            
'token' => 'required',
            
'email' => 'required|email',
            
'password' => ['required''confirmed'Rules\Password::defaults()],
        ]);

        
// Here we will attempt to reset the user's password. If it is successful we
        // will update the password on an actual user model and persist it to the
        // database. Otherwise we will parse the error and return the response.
        
$status Password::reset(
            
$request->only('email''password''password_confirmation''token'),
            function (
$user) use ($request) {
                
$user->forceFill([
                    
'password' => Hash::make($request->password),
                    
'remember_token' => Str::random(60),
                ])->
save();

                
event(new PasswordReset($user));
            }
        );

        
// If the password was successfully reset, we will redirect the user back to
        // the application's home authenticated view. If there is an error we can
        // redirect them back to where they came from with their error message.
        
return $status == Password::PASSWORD_RESET
                    
redirect()->route('login')->with('status'__($status))
                    : 
back()->withInput($request->only('email'))
                            ->
withErrors(['email' => __($status)]);
    }
}

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