!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/Models/   drwxr-xr-x
Free 28.31 GB of 117.98 GB (24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Models;

use 
App\Notifications\AdminResetPasswordNotification;
use 
Illuminate\Database\Eloquent\Factories\HasFactory;
use 
Illuminate\Foundation\Auth\User as Authenticatable;
use 
Illuminate\Notifications\Notifiable;
use 
Illuminate\Support\Facades\DB;
use 
Spatie\Permission\Traits\HasRoles;

class 
Admin extends Authenticatable
{
    use 
HasFactoryHasRolesNotifiable;

    protected 
$guard 'admin';

    
/**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    
protected $guarded = [];

    
/**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    
protected $hidden = [
        
'password',
        
'remember_token',
    ];

    
/**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    
protected $casts = [
        
'email_verified_at' => 'datetime',
    ];

    public static function 
getPermissionGroup()
    {
        
$permission_group DB::table('permissions')
            ->
select('group_name as name')
            ->
groupBy('group_name')
            ->
get();

        return 
$permission_group;
    }

    public static function 
getpermissionsByGroupName($group_name)
    {
        
$permissions DB::table('permissions')
            ->
select('name''id')
            ->
where('group_name'$group_name)
            ->
get();

        return 
$permissions;
    }

    public static function 
roleHasPermission($role$permissions)
    {
        
$hasPermission true;
        foreach (
$permissions as $permission) {
            if (! 
$role->hasPermissionTo($permission->name)) {
                
$hasPermission false;

                return 
$hasPermission;
            }
        }

        return 
$hasPermission;
    }

    
/**
     * Backend user image url
     *
     * @return string
     */
    
public function getImageUrlAttribute()
    {
        
$image $this->image;
        if (
$image) {
            return 
asset($image);
        } else {
            return 
'/backend/image/default-user.png';
        }
    }

    
/**
     * Send a password reset notification to the user.
     *
     * @param  string  $token
     * @return void
     */
    
public function sendPasswordResetNotification($token)
    {
        
$this->notify(new AdminResetPasswordNotification($token));
    }
}

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