shell bypass 403

UnknownSec Shell

: /home/bouloter/sms/sauvegarde/app/Rules/ [ drwxr-xr-x ]

name : ExcelRule.php
<?php
namespace App\Rules;

use Illuminate\Contracts\Validation\Rule;
use Illuminate\Http\UploadedFile;

class ExcelRule implements Rule
{
    private $file;

    /**
     * @param  UploadedFile  $file
     */
    public function __construct(UploadedFile $file)
    {
        $this->file = $file;
    }

    /**
     * @param  string  $attribute
     * @param  mixed  $value
     *
     * @return bool
     */
    public function passes($attribute, $value): bool
    {
        $extension = strtolower($this->file->getClientOriginalExtension());

        return in_array($extension, ['csv', 'xls', 'xlsx']);
    }

    public function message(): string
    {
        return 'The excel file must be a file of type: csv, xls, xlsx.';
    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password