webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
rachidlaasri
/
laravel-installer
/
src
/
Helpers
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
DatabaseManager.php
2.536KB
edt
ren
EnvironmentManager.php
3.452KB
edt
ren
FinalInstallManager.php
2.008KB
edt
ren
InstalledFileManager.php
0.869KB
edt
ren
MigrationsHelper.php
0.81KB
edt
ren
PermissionsChecker.php
1.757KB
edt
ren
RequirementsChecker.php
3.105KB
edt
ren
functions.php
0.575KB
edt
ren
<?php namespace RachidLaasri\LaravelInstaller\Helpers; use Exception; use Illuminate\Support\Facades\Artisan; use Symfony\Component\Console\Output\BufferedOutput; class FinalInstallManager { /** * Run final commands. * * @return string */ public function runFinal() { $outputLog = new BufferedOutput; $this->generateKey($outputLog); $this->publishVendorAssets($outputLog); return $outputLog->fetch(); } /** * Generate New Application Key. * * @param \Symfony\Component\Console\Output\BufferedOutput $outputLog * @return \Symfony\Component\Console\Output\BufferedOutput|array */ private static function generateKey(BufferedOutput $outputLog) { try { if (config('installer.final.key')) { Artisan::call('key:generate', ['--force'=> true], $outputLog); } } catch (Exception $e) { return static::response($e->getMessage(), $outputLog); } return $outputLog; } /** * Publish vendor assets. * * @param \Symfony\Component\Console\Output\BufferedOutput $outputLog * @return \Symfony\Component\Console\Output\BufferedOutput|array */ private static function publishVendorAssets(BufferedOutput $outputLog) { try { if (config('installer.final.publish')) { Artisan::call('vendor:publish', ['--all' => true], $outputLog); } } catch (Exception $e) { return static::response($e->getMessage(), $outputLog); } return $outputLog; } /** * Return a formatted error messages. * * @param $message * @param \Symfony\Component\Console\Output\BufferedOutput $outputLog * @return array */ private static function response($message, BufferedOutput $outputLog) { return [ 'status' => 'error', 'message' => $message, 'dbOutputLog' => $outputLog->fetch(), ]; } }
<=Back
Liking