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.22.77.196
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 : ImageFile.py
# # The Python Imaging Library. # $Id$ # # base class for image file handlers # # history: # 1995-09-09 fl Created # 1996-03-11 fl Fixed load mechanism. # 1996-04-15 fl Added pcx/xbm decoders. # 1996-04-30 fl Added encoders. # 1996-12-14 fl Added load helpers # 1997-01-11 fl Use encode_to_file where possible # 1997-08-27 fl Flush output in _save # 1998-03-05 fl Use memory mapping for some modes # 1999-02-04 fl Use memory mapping also for "I;16" and "I;16B" # 1999-05-31 fl Added image parser # 2000-10-12 fl Set readonly flag on memory-mapped images # 2002-03-20 fl Use better messages for common decoder errors # 2003-04-21 fl Fall back on mmap/map_buffer if map is not available # 2003-10-30 fl Added StubImageFile class # 2004-02-25 fl Made incremental parser more robust # # Copyright (c) 1997-2004 by Secret Labs AB # Copyright (c) 1995-2004 by Fredrik Lundh # # See the README file for information on usage and redistribution. # from PIL import Image from PIL._util import isPath import io import os import sys import traceback MAXBLOCK = 65536 SAFEBLOCK = 1024*1024 LOAD_TRUNCATED_IMAGES = False ERRORS = { -1: "image buffer overrun error", -2: "decoding error", -3: "unknown error", -8: "bad configuration", -9: "out of memory error" } def raise_ioerror(error): try: message = Image.core.getcodecstatus(error) except AttributeError: message = ERRORS.get(error) if not message: message = "decoder error %d" % error raise IOError(message + " when reading image file") # # -------------------------------------------------------------------- # Helpers def _tilesort(t): # sort on offset return t[2] # # -------------------------------------------------------------------- # ImageFile base class class ImageFile(Image.Image): "Base class for image file format handlers." def __init__(self, fp=None, filename=None): Image.Image.__init__(self) self.tile = None self.readonly = 1 # until we know better self.decoderconfig = () self.decodermaxblock = MAXBLOCK if isPath(fp): # filename self.fp = open(fp, "rb") self.filename = fp else: # stream self.fp = fp self.filename = filename try: self._open() except IndexError as v: # end of data if Image.DEBUG > 1: traceback.print_exc() raise SyntaxError(v) except TypeError as v: # end of data (ord) if Image.DEBUG > 1: traceback.print_exc() raise SyntaxError(v) except KeyError as v: # unsupported mode if Image.DEBUG > 1: traceback.print_exc() raise SyntaxError(v) except EOFError as v: # got header but not the first frame if Image.DEBUG > 1: traceback.print_exc() raise SyntaxError(v) if not self.mode or self.size[0] <= 0: raise SyntaxError("not identified by this driver") def draft(self, mode, size): "Set draft mode" pass def verify(self): "Check file integrity" # raise exception if something's wrong. must be called # directly after open, and closes file when finished. self.fp = None def load(self): "Load image data based on tile list" pixel = Image.Image.load(self) if self.tile is None: raise IOError("cannot load this image") if not self.tile: return pixel self.map = None use_mmap = self.filename and len(self.tile) == 1 # As of pypy 2.1.0, memory mapping was failing here. use_mmap = use_mmap and not hasattr(sys, 'pypy_version_info') readonly = 0 # look for read/seek overrides try: read = self.load_read # don't use mmap if there are custom read/seek functions use_mmap = False except AttributeError: read = self.fp.read try: seek = self.load_seek use_mmap = False except AttributeError: seek = self.fp.seek if use_mmap: # try memory mapping d, e, o, a = self.tile[0] if d == "raw" and a[0] == self.mode and a[0] in Image._MAPMODES: try: if hasattr(Image.core, "map"): # use built-in mapper self.map = Image.core.map(self.filename) self.map.seek(o) self.im = self.map.readimage( self.mode, self.size, a[1], a[2] ) else: # use mmap, if possible import mmap file = open(self.filename, "r+") size = os.path.getsize(self.filename) # FIXME: on Unix, use PROT_READ etc self.map = mmap.mmap(file.fileno(), size) self.im = Image.core.map_buffer( self.map, self.size, d, e, o, a ) readonly = 1 except (AttributeError, EnvironmentError, ImportError): self.map = None self.load_prepare() if not self.map: # sort tiles in file order self.tile.sort(key=_tilesort) try: # FIXME: This is a hack to handle TIFF's JpegTables tag. prefix = self.tile_prefix except AttributeError: prefix = b"" for d, e, o, a in self.tile: d = Image._getdecoder(self.mode, d, a, self.decoderconfig) seek(o) try: d.setimage(self.im, e) except ValueError: continue b = prefix t = len(b) while True: try: s = read(self.decodermaxblock) except IndexError as ie: # truncated png/gif if LOAD_TRUNCATED_IMAGES: break else: raise IndexError(ie) if not s and not d.handles_eof: # truncated jpeg self.tile = [] # JpegDecode needs to clean things up here either way # If we don't destroy the decompressor, # we have a memory leak. d.cleanup() if LOAD_TRUNCATED_IMAGES: break else: raise IOError("image file is truncated " "(%d bytes not processed)" % len(b)) b = b + s n, e = d.decode(b) if n < 0: break b = b[n:] t = t + n # Need to cleanup here to prevent leaks in PyPy d.cleanup() self.tile = [] self.readonly = readonly self.fp = None # might be shared if not self.map and (not LOAD_TRUNCATED_IMAGES or t == 0) and e < 0: # still raised if decoder fails to return anything raise_ioerror(e) # post processing if hasattr(self, "tile_post_rotate"): # FIXME: This is a hack to handle rotated PCD's self.im = self.im.rotate(self.tile_post_rotate) self.size = self.im.size self.load_end() return Image.Image.load(self) def load_prepare(self): # create image memory if necessary if not self.im or\ self.im.mode != self.mode or self.im.size != self.size: self.im = Image.core.new(self.mode, self.size) # create palette (optional) if self.mode == "P": Image.Image.load(self) def load_end(self): # may be overridden pass # may be defined for contained formats # def load_seek(self, pos): # pass # may be defined for blocked formats (e.g. PNG) # def load_read(self, bytes): # pass class StubImageFile(ImageFile): """ Base class for stub image loaders. A stub loader is an image loader that can identify files of a certain format, but relies on external code to load the file. """ def _open(self): raise NotImplementedError( "StubImageFile subclass must implement _open" ) def load(self): loader = self._load() if loader is None: raise IOError("cannot find loader for this %s file" % self.format) image = loader.load(self) assert image is not None # become the other object (!) self.__class__ = image.__class__ self.__dict__ = image.__dict__ def _load(self): "(Hook) Find actual image loader." raise NotImplementedError( "StubImageFile subclass must implement _load" ) class Parser: """ Incremental image parser. This class implements the standard feed/close consumer interface. In Python 2.x, this is an old-style class. """ incremental = None image = None data = None decoder = None finished = 0 def reset(self): """ (Consumer) Reset the parser. Note that you can only call this method immediately after you've created a parser; parser instances cannot be reused. """ assert self.data is None, "cannot reuse parsers" def feed(self, data): """ (Consumer) Feed data to the parser. :param data: A string buffer. :exception IOError: If the parser failed to parse the image file. """ # collect data if self.finished: return if self.data is None: self.data = data else: self.data = self.data + data # parse what we have if self.decoder: if self.offset > 0: # skip header skip = min(len(self.data), self.offset) self.data = self.data[skip:] self.offset = self.offset - skip if self.offset > 0 or not self.data: return n, e = self.decoder.decode(self.data) if n < 0: # end of stream self.data = None self.finished = 1 if e < 0: # decoding error self.image = None raise_ioerror(e) else: # end of image return self.data = self.data[n:] elif self.image: # if we end up here with no decoder, this file cannot # be incrementally parsed. wait until we've gotten all # available data pass else: # attempt to open this file try: try: fp = io.BytesIO(self.data) im = Image.open(fp) finally: fp.close() # explicitly close the virtual file except IOError: # traceback.print_exc() pass # not enough data else: flag = hasattr(im, "load_seek") or hasattr(im, "load_read") if flag or len(im.tile) != 1: # custom load code, or multiple tiles self.decode = None else: # initialize decoder im.load_prepare() d, e, o, a = im.tile[0] im.tile = [] self.decoder = Image._getdecoder( im.mode, d, a, im.decoderconfig ) self.decoder.setimage(im.im, e) # calculate decoder offset self.offset = o if self.offset <= len(self.data): self.data = self.data[self.offset:] self.offset = 0 self.image = im def close(self): """ (Consumer) Close the stream. :returns: An image object. :exception IOError: If the parser failed to parse the image file either because it cannot be identified or cannot be decoded. """ # finish decoding if self.decoder: # get rid of what's left in the buffers self.feed(b"") self.data = self.decoder = None if not self.finished: raise IOError("image was incomplete") if not self.image: raise IOError("cannot parse this image") if self.data: # incremental parsing not possible; reopen the file # not that we have all data try: fp = io.BytesIO(self.data) self.image = Image.open(fp) finally: self.image.load() fp.close() # explicitly close the virtual file return self.image # -------------------------------------------------------------------- def _save(im, fp, tile, bufsize=0): """Helper to save image based on tile list :param im: Image object. :param fp: File object. :param tile: Tile list. :param bufsize: Optional buffer size """ im.load() if not hasattr(im, "encoderconfig"): im.encoderconfig = () tile.sort(key=_tilesort) # FIXME: make MAXBLOCK a configuration parameter # It would be great if we could have the encoder specify what it needs # But, it would need at least the image size in most cases. RawEncode is # a tricky case. bufsize = max(MAXBLOCK, bufsize, im.size[0] * 4) # see RawEncode.c try: fh = fp.fileno() fp.flush() except (AttributeError, io.UnsupportedOperation): # compress to Python file-compatible object for e, b, o, a in tile: e = Image._getencoder(im.mode, e, a, im.encoderconfig) if o > 0: fp.seek(o, 0) e.setimage(im.im, b) while True: l, s, d = e.encode(bufsize) fp.write(d) if s: break if s < 0: raise IOError("encoder error %d when writing image file" % s) e.cleanup() else: # slight speedup: compress to real file object for e, b, o, a in tile: e = Image._getencoder(im.mode, e, a, im.encoderconfig) if o > 0: fp.seek(o, 0) e.setimage(im.im, b) s = e.encode_to_file(fh, bufsize) if s < 0: raise IOError("encoder error %d when writing image file" % s) e.cleanup() try: fp.flush() except: pass def _safe_read(fp, size): """ Reads large blocks in a safe way. Unlike fp.read(n), this function doesn't trust the user. If the requested size is larger than SAFEBLOCK, the file is read block by block. :param fp: File handle. Must implement a <b>read</b> method. :param size: Number of bytes to read. :returns: A string containing up to <i>size</i> bytes of data. """ if size <= 0: return b"" if size <= SAFEBLOCK: return fp.read(size) data = [] while size > 0: block = fp.read(min(size, SAFEBLOCK)) if not block: break data.append(block) size -= len(block) return b"".join(data)
Close