webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
intervention
/
image
/
src
/
Intervention
/
Image
/
Imagick
/
Commands
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
BackupCommand.php
0.54KB
edt
ren
BlurCommand.php
0.457KB
edt
ren
BrightnessCommand.php
0.472KB
edt
ren
ColorizeCommand.php
1.307KB
edt
ren
ContrastCommand.php
0.482KB
edt
ren
CropCommand.php
1.329KB
edt
ren
DestroyCommand.php
0.546KB
edt
ren
ExifCommand.php
1.492KB
edt
ren
FillCommand.php
3.31KB
edt
ren
FitCommand.php
1.212KB
edt
ren
FlipCommand.php
0.613KB
edt
ren
GammaCommand.php
0.462KB
edt
ren
GetSizeCommand.php
0.575KB
edt
ren
GreyscaleCommand.php
0.397KB
edt
ren
HeightenCommand.php
0.787KB
edt
ren
InsertCommand.php
1.038KB
edt
ren
InterlaceCommand.php
0.603KB
edt
ren
InvertCommand.php
0.374KB
edt
ren
LimitColorsCommand.php
1.751KB
edt
ren
MaskCommand.php
1.893KB
edt
ren
OpacityCommand.php
0.599KB
edt
ren
PickColorCommand.php
0.779KB
edt
ren
PixelCommand.php
0.8KB
edt
ren
PixelateCommand.php
0.655KB
edt
ren
ResetCommand.php
0.897KB
edt
ren
ResizeCanvasCommand.php
3.099KB
edt
ren
ResizeCommand.php
0.703KB
edt
ren
RotateCommand.php
0.753KB
edt
ren
SharpenCommand.php
0.45KB
edt
ren
TrimCommand.php
3.583KB
edt
ren
WidenCommand.php
0.781KB
edt
ren
<?php namespace Intervention\Image\Imagick\Commands; use Intervention\Image\Commands\AbstractCommand; use Intervention\Image\Exception\NotReadableException; use Intervention\Image\Image; use Intervention\Image\Imagick\Color; use Intervention\Image\Imagick\Decoder; class FillCommand extends AbstractCommand { /** * Fills image with color or pattern * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { $filling = $this->argument(0)->value(); $x = $this->argument(1)->type('digit')->value(); $y = $this->argument(2)->type('digit')->value(); $imagick = $image->getCore(); try { // set image filling $source = new Decoder; $filling = $source->init($filling); } catch (NotReadableException $e) { // set solid color filling $filling = new Color($filling); } // flood fill if coordinates are set if (is_int($x) && is_int($y)) { // flood fill with texture if ($filling instanceof Image) { // create tile $tile = clone $image->getCore(); // mask away color at position $tile->transparentPaintImage($tile->getImagePixelColor($x, $y), 0, 0, false); // create canvas $canvas = clone $image->getCore(); // fill canvas with texture $canvas = $canvas->textureImage($filling->getCore()); // merge canvas and tile $canvas->compositeImage($tile, \Imagick::COMPOSITE_DEFAULT, 0, 0); // replace image core $image->setCore($canvas); // flood fill with color } elseif ($filling instanceof Color) { // create canvas with filling $canvas = new \Imagick; $canvas->newImage($image->getWidth(), $image->getHeight(), $filling->getPixel(), 'png'); // create tile to put on top $tile = clone $image->getCore(); // mask away color at pos. $tile->transparentPaintImage($tile->getImagePixelColor($x, $y), 0, 0, false); // save alpha channel of original image $alpha = clone $image->getCore(); // merge original with canvas and tile $image->getCore()->compositeImage($canvas, \Imagick::COMPOSITE_DEFAULT, 0, 0); $image->getCore()->compositeImage($tile, \Imagick::COMPOSITE_DEFAULT, 0, 0); // restore alpha channel of original image $image->getCore()->compositeImage($alpha, \Imagick::COMPOSITE_COPYOPACITY, 0, 0); } } else { if ($filling instanceof Image) { // fill whole image with texture $image->setCore($image->getCore()->textureImage($filling->getCore())); } elseif ($filling instanceof Color) { // fill whole image with color $draw = new \ImagickDraw(); $draw->setFillColor($filling->getPixel()); $draw->rectangle(0, 0, $image->getWidth(), $image->getHeight()); $image->getCore()->drawImage($draw); } } return true; } }
<=Back
Liking