Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.223.209.114
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
ubuntu /
ImageMagick-7.0.10-22 /
www /
source /
[ HOME SHELL ]
Name
Size
Permission
Action
core
[ DIR ]
drwxrwxr-x
wand
[ DIR ]
drwxrwxr-x
analyze.c
9.71
KB
-rw-rw-r--
coder.xml
899
B
-rw-rw-r--
colors.xml
1.35
KB
-rw-rw-r--
configure.xml
3.58
KB
-rw-rw-r--
contrast.c
2.68
KB
-rw-rw-r--
core.c
1.53
KB
-rw-rw-r--
delegates.xml
13.1
KB
-rw-rw-r--
english.xml
49.83
KB
-rw-rw-r--
examples.pl
10.47
KB
-rw-rw-r--
francais.xml
52.68
KB
-rw-rw-r--
incantation.msl
356
B
-rw-rw-r--
locale.xml
2.4
KB
-rw-rw-r--
log.xml
1.6
KB
-rw-rw-r--
magic.xml
888
B
-rw-rw-r--
mgk.c
15.8
KB
-rw-rw-r--
mime.xml
131.07
KB
-rw-rw-r--
piechart.mvg
3.84
KB
-rw-rw-r--
piechart.svg
2.84
KB
-rw-rw-r--
policy.xml
3.6
KB
-rw-rw-r--
quantization-table.xml
2.31
KB
-rw-rw-r--
thresholds.xml
11.18
KB
-rw-rw-r--
type-apple.xml
28.53
KB
-rw-rw-r--
type-dejavu.xml
9.28
KB
-rw-rw-r--
type-ghostscript.xml
9.45
KB
-rw-rw-r--
type-urw-base35.xml
7.97
KB
-rw-rw-r--
type-windows.xml
15.47
KB
-rw-rw-r--
type.xml
683
B
-rw-rw-r--
wand.c
1.23
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : contrast.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <wand/MagickWand.h> int main(int argc,char **argv) { #define QuantumScale ((MagickRealType) 1.0/(MagickRealType) QuantumRange) #define SigmoidalContrast(x) \ (QuantumRange*(1.0/(1+exp(10.0*(0.5-QuantumScale*x)))-0.0066928509)*1.0092503) #define ThrowWandException(wand) \ { \ char \ *description; \ \ ExceptionType \ severity; \ \ description=MagickGetException(wand,&severity); \ (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); \ description=(char *) MagickRelinquishMemory(description); \ exit(-1); \ } MagickBooleanType status; MagickPixelPacket pixel; MagickWand *contrast_wand, *image_wand; PixelIterator *contrast_iterator, *iterator; PixelWand **contrast_pixels, **pixels; register ssize_t x; size_t width; ssize_t y; if (argc != 3) { (void) fprintf(stdout,"Usage: %s image sigmoidal-image\n",argv[0]); exit(0); } /* Read an image. */ MagickWandGenesis(); image_wand=NewMagickWand(); status=MagickReadImage(image_wand,argv[1]); if (status == MagickFalse) ThrowWandException(image_wand); contrast_wand=CloneMagickWand(image_wand); /* Sigmoidal non-linearity contrast control. */ iterator=NewPixelIterator(image_wand); contrast_iterator=NewPixelIterator(contrast_wand); if ((iterator == (PixelIterator *) NULL) || (contrast_iterator == (PixelIterator *) NULL)) ThrowWandException(image_wand); for (y=0; y < (ssize_t) MagickGetImageHeight(image_wand); y++) { pixels=PixelGetNextIteratorRow(iterator,&width); contrast_pixels=PixelGetNextIteratorRow(contrast_iterator,&width); if ((pixels == (PixelWand **) NULL) || (contrast_pixels == (PixelWand **) NULL)) break; for (x=0; x < (ssize_t) width; x++) { PixelGetMagickColor(pixels[x],&pixel); pixel.red=SigmoidalContrast(pixel.red); pixel.green=SigmoidalContrast(pixel.green); pixel.blue=SigmoidalContrast(pixel.blue); pixel.index=SigmoidalContrast(pixel.index); PixelSetMagickColor(contrast_pixels[x],&pixel); } (void) PixelSyncIterator(contrast_iterator); } if (y < (ssize_t) MagickGetImageHeight(image_wand)) ThrowWandException(image_wand); contrast_iterator=DestroyPixelIterator(contrast_iterator); iterator=DestroyPixelIterator(iterator); image_wand=DestroyMagickWand(image_wand); /* Write the image then destroy it. */ status=MagickWriteImages(contrast_wand,argv[2],MagickTrue); if (status == MagickFalse) ThrowWandException(image_wand); contrast_wand=DestroyMagickWand(contrast_wand); MagickWandTerminus(); return(0); }
Close