Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 3.144.39.0
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
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
/
usr /
lib /
python2.7 /
dist-packages /
PIL /
[ HOME SHELL ]
Name
Size
Permission
Action
BdfFontFile.py
3.28
KB
-rw-r--r--
BdfFontFile.pyc
2.83
KB
-rw-r--r--
BmpImagePlugin.py
7.26
KB
-rw-r--r--
BmpImagePlugin.pyc
6.13
KB
-rw-r--r--
BufrStubImagePlugin.py
1.47
KB
-rw-r--r--
BufrStubImagePlugin.pyc
1.99
KB
-rw-r--r--
ContainerIO.py
2.54
KB
-rw-r--r--
ContainerIO.pyc
2.07
KB
-rw-r--r--
CurImagePlugin.py
1.9
KB
-rw-r--r--
CurImagePlugin.pyc
1.63
KB
-rw-r--r--
DcxImagePlugin.py
1.76
KB
-rw-r--r--
DcxImagePlugin.pyc
1.89
KB
-rw-r--r--
EpsImagePlugin.py
12.11
KB
-rw-r--r--
EpsImagePlugin.pyc
9.92
KB
-rw-r--r--
ExifTags.py
4.97
KB
-rw-r--r--
ExifTags.pyc
5.27
KB
-rw-r--r--
FitsStubImagePlugin.py
1.61
KB
-rw-r--r--
FitsStubImagePlugin.pyc
2
KB
-rw-r--r--
FliImagePlugin.py
3.38
KB
-rw-r--r--
FliImagePlugin.pyc
3.49
KB
-rw-r--r--
FontFile.py
2.76
KB
-rw-r--r--
FontFile.pyc
2.87
KB
-rw-r--r--
FpxImagePlugin.py
6.21
KB
-rw-r--r--
FpxImagePlugin.pyc
4.62
KB
-rw-r--r--
GbrImagePlugin.py
1.54
KB
-rw-r--r--
GbrImagePlugin.pyc
1.8
KB
-rw-r--r--
GdImageFile.py
2.13
KB
-rw-r--r--
GdImageFile.pyc
1.7
KB
-rw-r--r--
GifImagePlugin.py
16.47
KB
-rw-r--r--
GifImagePlugin.pyc
10.32
KB
-rw-r--r--
GimpGradientFile.py
3.26
KB
-rw-r--r--
GimpGradientFile.pyc
3.68
KB
-rw-r--r--
GimpPaletteFile.py
1.3
KB
-rw-r--r--
GimpPaletteFile.pyc
1.47
KB
-rw-r--r--
GribStubImagePlugin.py
1.47
KB
-rw-r--r--
GribStubImagePlugin.pyc
2
KB
-rw-r--r--
Hdf5StubImagePlugin.py
1.51
KB
-rw-r--r--
Hdf5StubImagePlugin.pyc
2
KB
-rw-r--r--
IcnsImagePlugin.py
8.99
KB
-rw-r--r--
IcnsImagePlugin.pyc
8.71
KB
-rw-r--r--
IcoImagePlugin.py
7.56
KB
-rw-r--r--
IcoImagePlugin.pyc
6.07
KB
-rw-r--r--
ImImagePlugin.py
9.87
KB
-rw-r--r--
ImImagePlugin.pyc
8.01
KB
-rw-r--r--
Image.py
78.54
KB
-rw-r--r--
Image.pyc
73.54
KB
-rw-r--r--
ImageChops.py
6.04
KB
-rw-r--r--
ImageChops.pyc
7.68
KB
-rw-r--r--
ImageCms.py
36.25
KB
-rw-r--r--
ImageCms.pyc
33.86
KB
-rw-r--r--
ImageColor.py
7.79
KB
-rw-r--r--
ImageColor.pyc
7.79
KB
-rw-r--r--
ImageDraw.py
11.39
KB
-rw-r--r--
ImageDraw.pyc
8.63
KB
-rw-r--r--
ImageDraw2.py
3.12
KB
-rw-r--r--
ImageDraw2.pyc
5.06
KB
-rw-r--r--
ImageEnhance.py
3.1
KB
-rw-r--r--
ImageEnhance.pyc
4.11
KB
-rw-r--r--
ImageFile.py
15.65
KB
-rw-r--r--
ImageFile.pyc
11.4
KB
-rw-r--r--
ImageFileIO.py
1022
B
-rw-r--r--
ImageFileIO.pyc
1.22
KB
-rw-r--r--
ImageFilter.py
6.29
KB
-rw-r--r--
ImageFilter.pyc
10.83
KB
-rw-r--r--
ImageFont.py
17.19
KB
-rw-r--r--
ImageFont.pyc
17.14
KB
-rw-r--r--
ImageGrab.py
1.19
KB
-rw-r--r--
ImageGrab.pyc
1.18
KB
-rw-r--r--
ImageMath.py
7.28
KB
-rw-r--r--
ImageMath.pyc
10.63
KB
-rw-r--r--
ImageMode.py
1.27
KB
-rw-r--r--
ImageMode.pyc
1.33
KB
-rw-r--r--
ImageMorph.py
7.78
KB
-rw-r--r--
ImageMorph.pyc
7.99
KB
-rw-r--r--
ImageOps.py
12.92
KB
-rw-r--r--
ImageOps.pyc
12.26
KB
-rw-r--r--
ImagePalette.py
6.25
KB
-rw-r--r--
ImagePalette.pyc
6.76
KB
-rw-r--r--
ImagePath.py
1.2
KB
-rw-r--r--
ImagePath.pyc
1.35
KB
-rw-r--r--
ImageQt.py
2.61
KB
-rw-r--r--
ImageQt.pyc
2.02
KB
-rw-r--r--
ImageSequence.py
939
B
-rw-r--r--
ImageSequence.pyc
1.19
KB
-rw-r--r--
ImageShow.py
4.67
KB
-rw-r--r--
ImageShow.pyc
5.36
KB
-rw-r--r--
ImageStat.py
3.74
KB
-rw-r--r--
ImageStat.pyc
4.53
KB
-rw-r--r--
ImageTransform.py
2.81
KB
-rw-r--r--
ImageTransform.pyc
1.85
KB
-rw-r--r--
ImageWin.py
7.49
KB
-rw-r--r--
ImageWin.pyc
9.69
KB
-rw-r--r--
ImtImagePlugin.py
2.17
KB
-rw-r--r--
ImtImagePlugin.pyc
1.56
KB
-rw-r--r--
IptcImagePlugin.py
6.8
KB
-rw-r--r--
IptcImagePlugin.pyc
5.76
KB
-rw-r--r--
Jpeg2KImagePlugin.py
7.57
KB
-rw-r--r--
Jpeg2KImagePlugin.pyc
6.49
KB
-rw-r--r--
JpegImagePlugin.py
24.43
KB
-rw-r--r--
JpegImagePlugin.pyc
19.47
KB
-rw-r--r--
JpegPresets.py
12.05
KB
-rw-r--r--
JpegPresets.pyc
6.3
KB
-rw-r--r--
McIdasImagePlugin.py
1.71
KB
-rw-r--r--
McIdasImagePlugin.pyc
1.66
KB
-rw-r--r--
MicImagePlugin.py
2.12
KB
-rw-r--r--
MicImagePlugin.pyc
2.08
KB
-rw-r--r--
MpegImagePlugin.py
1.77
KB
-rw-r--r--
MpegImagePlugin.pyc
2.47
KB
-rw-r--r--
MpoImagePlugin.py
2.73
KB
-rw-r--r--
MpoImagePlugin.pyc
2.48
KB
-rw-r--r--
MspImagePlugin.py
2.13
KB
-rw-r--r--
MspImagePlugin.pyc
2.38
KB
-rw-r--r--
OleFileIO-README.md
17.38
KB
-rw-r--r--
OleFileIO.py
87.39
KB
-rwxr-xr-x
OleFileIO.pyc
47.97
KB
-rw-r--r--
PSDraw.py
6.71
KB
-rw-r--r--
PSDraw.pyc
6.55
KB
-rw-r--r--
PaletteFile.py
1.08
KB
-rw-r--r--
PaletteFile.pyc
1.31
KB
-rw-r--r--
PalmImagePlugin.py
9.02
KB
-rw-r--r--
PalmImagePlugin.pyc
9.41
KB
-rw-r--r--
PcdImagePlugin.py
1.77
KB
-rw-r--r--
PcdImagePlugin.pyc
1.72
KB
-rw-r--r--
PcfFontFile.py
6.05
KB
-rw-r--r--
PcfFontFile.pyc
6.18
KB
-rw-r--r--
PcxImagePlugin.py
5.16
KB
-rw-r--r--
PcxImagePlugin.pyc
4.15
KB
-rw-r--r--
PdfImagePlugin.py
5.67
KB
-rw-r--r--
PdfImagePlugin.pyc
5.02
KB
-rw-r--r--
PixarImagePlugin.py
1.58
KB
-rw-r--r--
PixarImagePlugin.pyc
1.24
KB
-rw-r--r--
PngImagePlugin.py
22.14
KB
-rw-r--r--
PngImagePlugin.pyc
20.66
KB
-rw-r--r--
PpmImagePlugin.py
4.47
KB
-rw-r--r--
PpmImagePlugin.pyc
3.84
KB
-rw-r--r--
PsdImagePlugin.py
7.25
KB
-rw-r--r--
PsdImagePlugin.pyc
6.13
KB
-rw-r--r--
PyAccess.py
8.33
KB
-rw-r--r--
PyAccess.pyc
12.66
KB
-rw-r--r--
SgiImagePlugin.py
2.06
KB
-rw-r--r--
SgiImagePlugin.pyc
1.97
KB
-rw-r--r--
SpiderImagePlugin.py
8.99
KB
-rw-r--r--
SpiderImagePlugin.pyc
7.58
KB
-rw-r--r--
SunImagePlugin.py
1.9
KB
-rw-r--r--
SunImagePlugin.pyc
1.98
KB
-rw-r--r--
TarIO.py
1.19
KB
-rw-r--r--
TarIO.pyc
1.07
KB
-rw-r--r--
TgaImagePlugin.py
4.85
KB
-rw-r--r--
TgaImagePlugin.pyc
3.99
KB
-rw-r--r--
TiffImagePlugin.py
41.83
KB
-rw-r--r--
TiffImagePlugin.pyc
30.04
KB
-rw-r--r--
TiffTags.py
7.28
KB
-rw-r--r--
TiffTags.pyc
7.88
KB
-rw-r--r--
WalImageFile.py
5.41
KB
-rw-r--r--
WalImageFile.pyc
2.12
KB
-rw-r--r--
WebPImagePlugin.py
1.92
KB
-rw-r--r--
WebPImagePlugin.pyc
2.69
KB
-rw-r--r--
WmfImagePlugin.py
4.04
KB
-rw-r--r--
WmfImagePlugin.pyc
3.95
KB
-rw-r--r--
XVThumbImagePlugin.py
1.8
KB
-rw-r--r--
XVThumbImagePlugin.pyc
1.59
KB
-rw-r--r--
XbmImagePlugin.py
2.4
KB
-rw-r--r--
XbmImagePlugin.pyc
2.51
KB
-rw-r--r--
XpmImagePlugin.py
3.02
KB
-rw-r--r--
XpmImagePlugin.pyc
2.79
KB
-rw-r--r--
__init__.py
1.52
KB
-rw-r--r--
__init__.pyc
1.24
KB
-rw-r--r--
_binary.py
1.54
KB
-rw-r--r--
_binary.pyc
2.79
KB
-rw-r--r--
_imaging.x86_64-linux-gnu.so
308.97
KB
-rw-r--r--
_imagingcms.x86_64-linux-gnu.s...
16.02
KB
-rw-r--r--
_imagingft.x86_64-linux-gnu.so
20.64
KB
-rw-r--r--
_imagingmath.x86_64-linux-gnu....
18.17
KB
-rw-r--r--
_imagingmorph.x86_64-linux-gnu...
10.27
KB
-rw-r--r--
_util.py
553
B
-rw-r--r--
_util.pyc
1.58
KB
-rw-r--r--
_webp.x86_64-linux-gnu.so
10.35
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ImImagePlugin.py
# # The Python Imaging Library. # $Id$ # # IFUNC IM file handling for PIL # # history: # 1995-09-01 fl Created. # 1997-01-03 fl Save palette images # 1997-01-08 fl Added sequence support # 1997-01-23 fl Added P and RGB save support # 1997-05-31 fl Read floating point images # 1997-06-22 fl Save floating point images # 1997-08-27 fl Read and save 1-bit images # 1998-06-25 fl Added support for RGB+LUT images # 1998-07-02 fl Added support for YCC images # 1998-07-15 fl Renamed offset attribute to avoid name clash # 1998-12-29 fl Added I;16 support # 2001-02-17 fl Use 're' instead of 'regex' (Python 2.1) (0.7) # 2003-09-26 fl Added LA/PA support # # Copyright (c) 1997-2003 by Secret Labs AB. # Copyright (c) 1995-2001 by Fredrik Lundh. # # See the README file for information on usage and redistribution. # __version__ = "0.7" import re from PIL import Image, ImageFile, ImagePalette from PIL._binary import i8 # -------------------------------------------------------------------- # Standard tags COMMENT = "Comment" DATE = "Date" EQUIPMENT = "Digitalization equipment" FRAMES = "File size (no of images)" LUT = "Lut" NAME = "Name" SCALE = "Scale (x,y)" SIZE = "Image size (x*y)" MODE = "Image type" TAGS = {COMMENT: 0, DATE: 0, EQUIPMENT: 0, FRAMES: 0, LUT: 0, NAME: 0, SCALE: 0, SIZE: 0, MODE: 0} OPEN = { # ifunc93/p3cfunc formats "0 1 image": ("1", "1"), "L 1 image": ("1", "1"), "Greyscale image": ("L", "L"), "Grayscale image": ("L", "L"), "RGB image": ("RGB", "RGB;L"), "RLB image": ("RGB", "RLB"), "RYB image": ("RGB", "RLB"), "B1 image": ("1", "1"), "B2 image": ("P", "P;2"), "B4 image": ("P", "P;4"), "X 24 image": ("RGB", "RGB"), "L 32 S image": ("I", "I;32"), "L 32 F image": ("F", "F;32"), # old p3cfunc formats "RGB3 image": ("RGB", "RGB;T"), "RYB3 image": ("RGB", "RYB;T"), # extensions "LA image": ("LA", "LA;L"), "RGBA image": ("RGBA", "RGBA;L"), "RGBX image": ("RGBX", "RGBX;L"), "CMYK image": ("CMYK", "CMYK;L"), "YCC image": ("YCbCr", "YCbCr;L"), } # ifunc95 extensions for i in ["8", "8S", "16", "16S", "32", "32F"]: OPEN["L %s image" % i] = ("F", "F;%s" % i) OPEN["L*%s image" % i] = ("F", "F;%s" % i) for i in ["16", "16L", "16B"]: OPEN["L %s image" % i] = ("I;%s" % i, "I;%s" % i) OPEN["L*%s image" % i] = ("I;%s" % i, "I;%s" % i) for i in ["32S"]: OPEN["L %s image" % i] = ("I", "I;%s" % i) OPEN["L*%s image" % i] = ("I", "I;%s" % i) for i in range(2, 33): OPEN["L*%s image" % i] = ("F", "F;%s" % i) # -------------------------------------------------------------------- # Read IM directory split = re.compile(br"^([A-Za-z][^:]*):[ \t]*(.*)[ \t]*$") def number(s): try: return int(s) except ValueError: return float(s) ## # Image plugin for the IFUNC IM file format. class ImImageFile(ImageFile.ImageFile): format = "IM" format_description = "IFUNC Image Memory" def _open(self): # Quick rejection: if there's not an LF among the first # 100 bytes, this is (probably) not a text header. if b"\n" not in self.fp.read(100): raise SyntaxError("not an IM file") self.fp.seek(0) n = 0 # Default values self.info[MODE] = "L" self.info[SIZE] = (512, 512) self.info[FRAMES] = 1 self.rawmode = "L" while True: s = self.fp.read(1) # Some versions of IFUNC uses \n\r instead of \r\n... if s == b"\r": continue if not s or s == b'\0' or s == b'\x1A': break # FIXME: this may read whole file if not a text file s = s + self.fp.readline() if len(s) > 100: raise SyntaxError("not an IM file") if s[-2:] == b'\r\n': s = s[:-2] elif s[-1:] == b'\n': s = s[:-1] try: m = split.match(s) except re.error as v: raise SyntaxError("not an IM file") if m: k, v = m.group(1, 2) # Don't know if this is the correct encoding, # but a decent guess (I guess) k = k.decode('latin-1', 'replace') v = v.decode('latin-1', 'replace') # Convert value as appropriate if k in [FRAMES, SCALE, SIZE]: v = v.replace("*", ",") v = tuple(map(number, v.split(","))) if len(v) == 1: v = v[0] elif k == MODE and v in OPEN: v, self.rawmode = OPEN[v] # Add to dictionary. Note that COMMENT tags are # combined into a list of strings. if k == COMMENT: if k in self.info: self.info[k].append(v) else: self.info[k] = [v] else: self.info[k] = v if k in TAGS: n += 1 else: raise SyntaxError("Syntax error in IM header: " + s.decode('ascii', 'replace')) if not n: raise SyntaxError("Not an IM file") # Basic attributes self.size = self.info[SIZE] self.mode = self.info[MODE] # Skip forward to start of image data while s and s[0:1] != b'\x1A': s = self.fp.read(1) if not s: raise SyntaxError("File truncated") if LUT in self.info: # convert lookup table to palette or lut attribute palette = self.fp.read(768) greyscale = 1 # greyscale palette linear = 1 # linear greyscale palette for i in range(256): if palette[i] == palette[i+256] == palette[i+512]: if i8(palette[i]) != i: linear = 0 else: greyscale = 0 if self.mode == "L" or self.mode == "LA": if greyscale: if not linear: self.lut = [i8(c) for c in palette[:256]] else: if self.mode == "L": self.mode = self.rawmode = "P" elif self.mode == "LA": self.mode = self.rawmode = "PA" self.palette = ImagePalette.raw("RGB;L", palette) elif self.mode == "RGB": if not greyscale or not linear: self.lut = [i8(c) for c in palette] self.frame = 0 self.__offset = offs = self.fp.tell() self.__fp = self.fp # FIXME: hack if self.rawmode[:2] == "F;": # ifunc95 formats try: # use bit decoder (if necessary) bits = int(self.rawmode[2:]) if bits not in [8, 16, 32]: self.tile = [("bit", (0, 0)+self.size, offs, (bits, 8, 3, 0, -1))] return except ValueError: pass if self.rawmode in ["RGB;T", "RYB;T"]: # Old LabEye/3PC files. Would be very surprised if anyone # ever stumbled upon such a file ;-) size = self.size[0] * self.size[1] self.tile = [("raw", (0, 0)+self.size, offs, ("G", 0, -1)), ("raw", (0, 0)+self.size, offs+size, ("R", 0, -1)), ("raw", (0, 0)+self.size, offs+2*size, ("B", 0, -1))] else: # LabEye/IFUNC files self.tile = [("raw", (0, 0)+self.size, offs, (self.rawmode, 0, -1))] def seek(self, frame): if frame < 0 or frame >= self.info[FRAMES]: raise EOFError("seek outside sequence") if self.frame == frame: return self.frame = frame if self.mode == "1": bits = 1 else: bits = 8 * len(self.mode) size = ((self.size[0] * bits + 7) // 8) * self.size[1] offs = self.__offset + frame * size self.fp = self.__fp self.tile = [("raw", (0, 0)+self.size, offs, (self.rawmode, 0, -1))] def tell(self): return self.frame # # -------------------------------------------------------------------- # Save IM files SAVE = { # mode: (im type, raw mode) "1": ("0 1", "1"), "L": ("Greyscale", "L"), "LA": ("LA", "LA;L"), "P": ("Greyscale", "P"), "PA": ("LA", "PA;L"), "I": ("L 32S", "I;32S"), "I;16": ("L 16", "I;16"), "I;16L": ("L 16L", "I;16L"), "I;16B": ("L 16B", "I;16B"), "F": ("L 32F", "F;32F"), "RGB": ("RGB", "RGB;L"), "RGBA": ("RGBA", "RGBA;L"), "RGBX": ("RGBX", "RGBX;L"), "CMYK": ("CMYK", "CMYK;L"), "YCbCr": ("YCC", "YCbCr;L") } def _save(im, fp, filename, check=0): try: type, rawmode = SAVE[im.mode] except KeyError: raise ValueError("Cannot save %s images as IM" % im.mode) try: frames = im.encoderinfo["frames"] except KeyError: frames = 1 if check: return check fp.write(("Image type: %s image\r\n" % type).encode('ascii')) if filename: fp.write(("Name: %s\r\n" % filename).encode('ascii')) fp.write(("Image size (x*y): %d*%d\r\n" % im.size).encode('ascii')) fp.write(("File size (no of images): %d\r\n" % frames).encode('ascii')) if im.mode == "P": fp.write(b"Lut: 1\r\n") fp.write(b"\000" * (511-fp.tell()) + b"\032") if im.mode == "P": fp.write(im.im.getpalette("RGB", "RGB;L")) # 768 bytes ImageFile._save(im, fp, [("raw", (0, 0)+im.size, 0, (rawmode, 0, -1))]) # # -------------------------------------------------------------------- # Registry Image.register_open("IM", ImImageFile) Image.register_save("IM", _save) Image.register_extension("IM", ".im")
Close