Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
api.lmsschool /
app /
Console /
Commands /
[ HOME SHELL ]
Name
Size
Permission
Action
InstallApp.php
4.21
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : InstallApp.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Exception; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; use PDOException; use Symfony\Component\Console\Helper\SymfonyQuestionHelper; use Symfony\Component\Console\Question\Question; class InstallApp extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'install:app'; /** * The console command description. * * @var string */ protected $description = 'Installation of new and fresh HR management system'; /** * The filesystem instance. * * @var \Illuminate\Filesystem\Filesystem */ protected $files; /** * host for the database. */ protected $host; /** * port for the database. */ protected $port; /** * Database name. */ protected $database; /** * Username of database. */ protected $username; /** * Password for the Database. */ protected $password; /** * Create a new command instance. * * @return void */ public function __construct(Filesystem $files) { parent::__construct(); $this->files = $files; } /** * Execute the console command. * * @return mixed */ public function handle() { $this->line('------------------'); $this->line('Welcome to HR management system.'); $this->line('------------------'); exec('composer install'); $extensions = get_loaded_extensions(); $require_extensions = ['mbstring', 'openssl', 'curl', 'exif', 'fileinfo', 'tokenizer']; foreach (array_diff($require_extensions, $extensions) as $missing_extension) { $this->error('Missing '.ucfirst($missing_extension).' extension'); } if (!file_exists('.env')) { File::copy('.env.example', '.env'); } // Set database credentials in .env and migrate $this->setDatabaseInfo(); $this->line('------------------'); //Key Generate Artisan::call('key:generate'); $this->line('Key generated in .env file!'); $this->line('------------------'); //Cache Clear Artisan::call('cache:clear'); $this->info('Application cache cleared!'); $this->line('------------------'); //Route Clear Artisan::call('route:clear'); $this->info('Route cache cleared!'); $this->line('------------------'); //Config Clear Artisan::call('config:clear'); $this->info('Configuration cache cleared!'); $this->line('------------------'); //View Clear Artisan::call('view:clear'); $this->info('Compiled view cleared!'); $this->line('------------------'); //View Passport Artisan::call('passport:install'); $this->info('Passport successfully installed!'); $this->line('------------------'); $this->info('Now you can access the application'); // $this->line('Laravel development server started: <http://127.0.0.1:8000>'); // Artisan::call('serve'); } /** * Set Database info in .env file. * * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException * * @return void */ protected function setDatabaseInfo() { $this->database = env('DB_DATABASE'); $this->info('Checking up database connection (please make sure you have created database for this project)'); $this->migrateTables($this->database); // database migration } /** * Migrate Tables. * * @param object $database */ protected function migrateTables($database) { $this->line('Processing............'); Artisan::call('migrate'); // Artisan migration $this->info('Migration successfully done!'); $this->line('Processing............'); Artisan::call('db:seed'); // Artisan seed $this->info('Seeding successfully done!'); } }
Close