Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 18.222.99.206
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 : ImageMorph.py
# A binary morphology add-on for the Python Imaging Library # # History: # 2014-06-04 Initial version. # # Copyright (c) 2014 Dov Grobgeld <dov.grobgeld@gmail.com> from PIL import Image from PIL import _imagingmorph import re LUT_SIZE = 1 << 9 class LutBuilder: """A class for building a MorphLut from a descriptive language The input patterns is a list of a strings sequences like these:: 4:(... .1. 111)->1 (whitespaces including linebreaks are ignored). The option 4 describes a series of symmetry operations (in this case a 4-rotation), the pattern is described by: - . or X - Ignore - 1 - Pixel is on - 0 - Pixel is off The result of the operation is described after "->" string. The default is to return the current pixel value, which is returned if no other match is found. Operations: - 4 - 4 way rotation - N - Negate - 1 - Dummy op for no other operation (an op must always be given) - M - Mirroring Example:: lb = LutBuilder(patterns = ["4:(... .1. 111)->1"]) lut = lb.build_lut() """ def __init__(self, patterns=None, op_name=None): if patterns is not None: self.patterns = patterns else: self.patterns = [] self.lut = None if op_name is not None: known_patterns = { 'corner': ['1:(... ... ...)->0', '4:(00. 01. ...)->1'], 'dilation4': ['4:(... .0. .1.)->1'], 'dilation8': ['4:(... .0. .1.)->1', '4:(... .0. ..1)->1'], 'erosion4': ['4:(... .1. .0.)->0'], 'erosion8': ['4:(... .1. .0.)->0', '4:(... .1. ..0)->0'], 'edge': ['1:(... ... ...)->0', '4:(.0. .1. ...)->1', '4:(01. .1. ...)->1'] } if op_name not in known_patterns: raise Exception('Unknown pattern '+op_name+'!') self.patterns = known_patterns[op_name] def add_patterns(self, patterns): self.patterns += patterns def build_default_lut(self): symbols = [0, 1] m = 1 << 4 # pos of current pixel self.lut = bytearray([symbols[(i & m) > 0] for i in range(LUT_SIZE)]) def get_lut(self): return self.lut def _string_permute(self, pattern, permutation): """string_permute takes a pattern and a permutation and returns the string permuted according to the permutation list. """ assert(len(permutation) == 9) return ''.join([pattern[p] for p in permutation]) def _pattern_permute(self, basic_pattern, options, basic_result): """pattern_permute takes a basic pattern and its result and clones the pattern according to the modifications described in the $options parameter. It returns a list of all cloned patterns.""" patterns = [(basic_pattern, basic_result)] # rotations if '4' in options: res = patterns[-1][1] for i in range(4): patterns.append( (self._string_permute(patterns[-1][0], [6, 3, 0, 7, 4, 1, 8, 5, 2]), res)) # mirror if 'M' in options: n = len(patterns) for pattern, res in patterns[0:n]: patterns.append( (self._string_permute(pattern, [2, 1, 0, 5, 4, 3, 8, 7, 6]), res)) # negate if 'N' in options: n = len(patterns) for pattern, res in patterns[0:n]: # Swap 0 and 1 pattern = (pattern .replace('0', 'Z') .replace('1', '0') .replace('Z', '1')) res = '%d' % (1-int(res)) patterns.append((pattern, res)) return patterns def build_lut(self): """Compile all patterns into a morphology lut. TBD :Build based on (file) morphlut:modify_lut """ self.build_default_lut() patterns = [] # Parse and create symmetries of the patterns strings for p in self.patterns: m = re.search( r'(\w*):?\s*\((.+?)\)\s*->\s*(\d)', p.replace('\n', '')) if not m: raise Exception('Syntax error in pattern "'+p+'"') options = m.group(1) pattern = m.group(2) result = int(m.group(3)) # Get rid of spaces pattern = pattern.replace(' ', '').replace('\n', '') patterns += self._pattern_permute(pattern, options, result) # # Debugging # for p,r in patterns: # print p,r # print '--' # compile the patterns into regular expressions for speed for i in range(len(patterns)): p = patterns[i][0].replace('.', 'X').replace('X', '[01]') p = re.compile(p) patterns[i] = (p, patterns[i][1]) # Step through table and find patterns that match. # Note that all the patterns are searched. The last one # caught overrides for i in range(LUT_SIZE): # Build the bit pattern bitpattern = bin(i)[2:] bitpattern = ('0'*(9-len(bitpattern)) + bitpattern)[::-1] for p, r in patterns: if p.match(bitpattern): self.lut[i] = [0, 1][r] return self.lut class MorphOp: """A class for binary morphological operators""" def __init__(self, lut=None, op_name=None, patterns=None): """Create a binary morphological operator""" self.lut = lut if op_name is not None: self.lut = LutBuilder(op_name=op_name).build_lut() elif patterns is not None: self.lut = LutBuilder(patterns=patterns).build_lut() def apply(self, image): """Run a single morphological operation on an image Returns a tuple of the number of changed pixels and the morphed image""" if self.lut is None: raise Exception('No operator loaded') outimage = Image.new(image.mode, image.size, None) count = _imagingmorph.apply( bytes(self.lut), image.im.id, outimage.im.id) return count, outimage def match(self, image): """Get a list of coordinates matching the morphological operation on an image. Returns a list of tuples of (x,y) coordinates of all matching pixels.""" if self.lut is None: raise Exception('No operator loaded') return _imagingmorph.match(bytes(self.lut), image.im.id) def get_on_pixels(self, image): """Get a list of all turned on pixels in a binary image Returns a list of tuples of (x,y) coordinates of all matching pixels.""" return _imagingmorph.get_on_pixels(image.im.id) def load_lut(self, filename): """Load an operator from an mrl file""" with open(filename, 'rb') as f: self.lut = bytearray(f.read()) if len(self.lut) != 8192: self.lut = None raise Exception('Wrong size operator file!') def save_lut(self, filename): """Save an operator to an mrl file""" if self.lut is None: raise Exception('No operator loaded') with open(filename, 'wb') as f: f.write(self.lut) def set_lut(self, lut): """Set the lut from an external source""" self.lut = lut # End of file
Close