Linux business57.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
Server IP : 199.188.201.191 & Your IP : 18.188.80.46
Domains :
Cant Read [ /etc/named.conf ]
User : derozboy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python39 /
lib64 /
python3.9 /
importlib /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-01-21 09:33
__init__.py
5.92
KB
-rw-r--r--
2024-12-03 17:50
_bootstrap.py
39.38
KB
-rw-r--r--
2024-12-03 17:50
_bootstrap_external.py
63.42
KB
-rw-r--r--
2024-12-03 17:50
_common.py
1.46
KB
-rw-r--r--
2024-12-03 17:50
abc.py
14.57
KB
-rw-r--r--
2024-12-03 17:50
machinery.py
844
B
-rw-r--r--
2024-12-03 17:50
metadata.py
18.31
KB
-rw-r--r--
2024-12-03 17:50
resources.py
7.04
KB
-rw-r--r--
2024-12-03 17:50
util.py
11.06
KB
-rw-r--r--
2024-12-03 17:50
Save
Rename
import os import pathlib import zipfile import tempfile import functools import contextlib def from_package(package): """ Return a Traversable object for the given package. """ return fallback_resources(package.__spec__) def fallback_resources(spec): package_directory = pathlib.Path(spec.origin).parent try: archive_path = spec.loader.archive rel_path = package_directory.relative_to(archive_path) return zipfile.Path(archive_path, str(rel_path) + '/') except Exception: pass return package_directory @contextlib.contextmanager def _tempfile(reader, suffix=''): # Not using tempfile.NamedTemporaryFile as it leads to deeper 'try' # blocks due to the need to close the temporary file to work on Windows # properly. fd, raw_path = tempfile.mkstemp(suffix=suffix) try: os.write(fd, reader()) os.close(fd) yield pathlib.Path(raw_path) finally: try: os.remove(raw_path) except FileNotFoundError: pass @functools.singledispatch @contextlib.contextmanager def as_file(path): """ Given a Traversable object, return that object as a path on the local file system in a context manager. """ with _tempfile(path.read_bytes, suffix=path.name) as local: yield local @as_file.register(pathlib.Path) @contextlib.contextmanager def _(path): """ Degenerate behavior for pathlib.Path objects. """ yield path