Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python3.6 /
site-packages /
PIL /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-07-04 11:33
BdfFontFile.py
3.29
KB
-rw-r--r--
2018-04-12 21:15
BlpImagePlugin.py
14.26
KB
-rw-r--r--
2024-07-03 09:03
BmpImagePlugin.py
12.83
KB
-rw-r--r--
2018-04-12 21:15
BufrStubImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
ContainerIO.py
2.63
KB
-rw-r--r--
2018-04-12 21:15
CurImagePlugin.py
2.02
KB
-rw-r--r--
2018-04-12 21:15
DcxImagePlugin.py
1.98
KB
-rw-r--r--
2018-04-12 21:15
DdsImagePlugin.py
4.88
KB
-rw-r--r--
2018-04-12 21:15
EpsImagePlugin.py
12.59
KB
-rw-r--r--
2024-07-03 09:03
ExifTags.py
8.63
KB
-rw-r--r--
2018-04-12 21:15
FitsStubImagePlugin.py
1.58
KB
-rw-r--r--
2018-04-12 21:15
FliImagePlugin.py
4
KB
-rw-r--r--
2018-04-12 21:15
FontFile.py
2.77
KB
-rw-r--r--
2018-04-12 21:15
FpxImagePlugin.py
6.23
KB
-rw-r--r--
2018-04-12 21:15
FtexImagePlugin.py
3.19
KB
-rw-r--r--
2018-04-12 21:15
GbrImagePlugin.py
2.66
KB
-rw-r--r--
2018-04-12 21:15
GdImageFile.py
2.15
KB
-rw-r--r--
2018-04-12 21:15
GifImagePlugin.py
26.11
KB
-rw-r--r--
2024-07-03 09:03
GimpGradientFile.py
3.27
KB
-rw-r--r--
2018-04-12 21:15
GimpPaletteFile.py
1.31
KB
-rw-r--r--
2018-04-12 21:15
GribStubImagePlugin.py
1.5
KB
-rw-r--r--
2018-04-12 21:15
Hdf5StubImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
IcnsImagePlugin.py
10.82
KB
-rw-r--r--
2024-07-03 09:03
IcoImagePlugin.py
9.22
KB
-rw-r--r--
2024-07-03 09:03
ImImagePlugin.py
9.92
KB
-rw-r--r--
2018-04-12 21:15
Image.py
93.16
KB
-rw-r--r--
2018-04-12 21:15
ImageChops.py
6.04
KB
-rw-r--r--
2018-04-12 21:15
ImageCms.py
35.76
KB
-rw-r--r--
2018-04-12 21:15
ImageColor.py
8.05
KB
-rw-r--r--
2018-04-12 21:15
ImageDraw.py
13.32
KB
-rw-r--r--
2018-04-12 21:15
ImageDraw2.py
3.15
KB
-rw-r--r--
2018-04-12 21:15
ImageEnhance.py
3.12
KB
-rw-r--r--
2018-04-12 21:15
ImageFile.py
20.27
KB
-rw-r--r--
2024-07-03 09:03
ImageFilter.py
7.23
KB
-rw-r--r--
2018-04-12 21:15
ImageFont.py
20.66
KB
-rw-r--r--
2024-07-03 09:03
ImageGrab.py
2.1
KB
-rw-r--r--
2018-04-12 21:15
ImageMath.py
7.83
KB
-rw-r--r--
2024-07-03 09:03
ImageMode.py
1.52
KB
-rw-r--r--
2018-04-12 21:15
ImageMorph.py
8.12
KB
-rw-r--r--
2018-04-12 21:15
ImageOps.py
15.73
KB
-rw-r--r--
2018-04-12 21:15
ImagePalette.py
6.17
KB
-rw-r--r--
2018-04-12 21:15
ImagePath.py
1.26
KB
-rw-r--r--
2018-04-12 21:15
ImageSequence.py
1.21
KB
-rw-r--r--
2018-04-12 21:15
ImageShow.py
5.14
KB
-rw-r--r--
2018-04-12 21:15
ImageStat.py
3.76
KB
-rw-r--r--
2018-04-12 21:15
ImageTransform.py
2.74
KB
-rw-r--r--
2018-04-12 21:15
ImageWin.py
7
KB
-rw-r--r--
2018-04-12 21:15
ImtImagePlugin.py
2.19
KB
-rw-r--r--
2018-04-12 21:15
IptcImagePlugin.py
6.64
KB
-rw-r--r--
2018-04-12 21:15
Jpeg2KImagePlugin.py
7.55
KB
-rw-r--r--
2018-04-12 21:15
JpegImagePlugin.py
26.98
KB
-rw-r--r--
2018-04-12 21:15
JpegPresets.py
12.11
KB
-rw-r--r--
2018-04-12 21:15
McIdasImagePlugin.py
1.73
KB
-rw-r--r--
2018-04-12 21:15
MicImagePlugin.py
2.4
KB
-rw-r--r--
2018-04-12 21:15
MpegImagePlugin.py
1.79
KB
-rw-r--r--
2018-04-12 21:15
MpoImagePlugin.py
2.91
KB
-rw-r--r--
2018-04-12 21:15
MspImagePlugin.py
5.39
KB
-rw-r--r--
2018-04-12 21:15
OleFileIO.py
152
B
-rw-r--r--
2018-04-12 21:15
PSDraw.py
6.69
KB
-rw-r--r--
2018-04-12 21:15
PaletteFile.py
1.08
KB
-rw-r--r--
2018-04-12 21:15
PalmImagePlugin.py
8.94
KB
-rw-r--r--
2018-04-12 21:15
PcdImagePlugin.py
1.48
KB
-rw-r--r--
2018-04-12 21:15
PcfFontFile.py
5.99
KB
-rw-r--r--
2018-04-12 21:15
PcxImagePlugin.py
5.29
KB
-rw-r--r--
2024-07-03 09:03
PdfImagePlugin.py
7.16
KB
-rw-r--r--
2018-04-12 21:15
PdfParser.py
32.64
KB
-rw-r--r--
2024-07-03 09:03
PixarImagePlugin.py
1.63
KB
-rw-r--r--
2018-04-12 21:15
PngImagePlugin.py
25.09
KB
-rw-r--r--
2018-04-12 21:15
PpmImagePlugin.py
4.11
KB
-rw-r--r--
2018-04-12 21:15
PsdImagePlugin.py
7.76
KB
-rw-r--r--
2024-07-03 09:03
PyAccess.py
8.61
KB
-rw-r--r--
2018-04-12 21:15
SgiImagePlugin.py
5.97
KB
-rw-r--r--
2018-04-12 21:15
SunImagePlugin.py
4.22
KB
-rw-r--r--
2018-04-12 21:15
TarIO.py
1.21
KB
-rw-r--r--
2018-04-12 21:15
TgaImagePlugin.py
4.88
KB
-rw-r--r--
2018-04-12 21:15
TiffImagePlugin.py
63.49
KB
-rw-r--r--
2024-07-03 09:03
TiffTags.py
14.1
KB
-rw-r--r--
2018-04-12 21:15
WalImageFile.py
5.43
KB
-rw-r--r--
2018-04-12 21:15
WebPImagePlugin.py
9.45
KB
-rw-r--r--
2018-04-12 21:15
WmfImagePlugin.py
4.15
KB
-rw-r--r--
2018-04-12 21:15
XVThumbImagePlugin.py
1.91
KB
-rw-r--r--
2018-04-12 21:15
XbmImagePlugin.py
2.45
KB
-rw-r--r--
2018-04-12 21:15
XpmImagePlugin.py
3.03
KB
-rw-r--r--
2018-04-12 21:15
__init__.py
1.66
KB
-rw-r--r--
2018-04-12 21:15
_binary.py
1.75
KB
-rw-r--r--
2018-04-12 21:15
_imaging.cpython-36m-x86_64-linux-gnu.so
391.95
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingcms.cpython-36m-x86_64-linux-gnu.so
35.89
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingft.cpython-36m-x86_64-linux-gnu.so
30.39
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingmath.cpython-36m-x86_64-linux-gnu.so
20.16
KB
-rwxr-xr-x
2024-07-03 09:03
_imagingmorph.cpython-36m-x86_64-linux-gnu.so
11.84
KB
-rwxr-xr-x
2024-07-03 09:03
_tkinter_finder.py
702
B
-rw-r--r--
2018-04-12 21:15
_util.py
553
B
-rw-r--r--
2018-04-12 21:15
_webp.cpython-36m-x86_64-linux-gnu.so
25.16
KB
-rwxr-xr-x
2024-07-03 09:03
features.py
1.83
KB
-rw-r--r--
2018-04-12 21:15
version.py
50
B
-rw-r--r--
2018-04-12 21:15
Save
Rename
# 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 __future__ import print_function from . import Image, _imagingmorph import re LUT_SIZE = 1 << 9 class LutBuilder(object): """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 = 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, pattern in enumerate(patterns): p = pattern[0].replace('.', 'X').replace('X', '[01]') p = re.compile(p) patterns[i] = (p, pattern[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(object): """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') if image.mode != 'L': raise Exception('Image must be binary, meaning it must use mode L') 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') if image.mode != 'L': raise Exception('Image must be binary, meaning it must use mode L') 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.""" if image.mode != 'L': raise Exception('Image must be binary, meaning it must use mode L') 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) != LUT_SIZE: 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