shell bypass 403

UnknownSec Shell

: /home/bouloter/infix/app/Console/Commands/ [ drwxr-xr-x ]

name : BackupDatabaseCommand.php
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Spatie\DbDumper\Databases\MySql;
class BackupDatabaseCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'backup:database';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }


    public function handle()
    {
        $today = date("d-m-Y-m-His".rand(1,999));

        $dir = public_path("database-backup/".$today);

        if(is_dir($dir))
        {
            rmdir($dir);
        }
        mkdir($dir,0777, true);


        MySql::create()
        ->setDbName(env('DB_DATABASE'))
        ->setUserName(env('DB_USERNAME'))
        ->setPassword(env('DB_PASSWORD'))
        ->dumpToFile($dir."/{$today}-dump.sql");
    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password