⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
routes
/
View File Name :
console.php
<?php use Illuminate\Support\Facades\Artisan; Artisan::command('pc', function () { $paths = [ 'storage/', 'bootstrap/cache/', 'public/', 'packages/workdo/', 'uploads/', 'resources/lang/', '.env' ]; foreach ($paths as $path) { $output = []; $resultCode = 0; exec("sudo chmod -R 777 $path", $output, $resultCode); if ($resultCode !== 0) { $this->error("Failed to change permissions for $path. Output: " . implode("\n", $output)); } else { $this->info("Permissions changed successfully for $path"); } } // Clear various caches Artisan::call('cache:clear'); Artisan::call('route:clear'); Artisan::call('view:clear'); Artisan::call('config:clear'); Artisan::call('optimize:clear'); $this->info('All caches cleared and permissions set!'); })->describe('Clear all types of caches and set file permissions');