Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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 /
pip /
_internal /
[ HOME SHELL ]
Name
Size
Permission
Action
cli
[ DIR ]
drwxr-xr-x
commands
[ DIR ]
drwxr-xr-x
models
[ DIR ]
drwxr-xr-x
operations
[ DIR ]
drwxr-xr-x
req
[ DIR ]
drwxr-xr-x
utils
[ DIR ]
drwxr-xr-x
vcs
[ DIR ]
drwxr-xr-x
__init__.py
2.8
KB
-rw-r--r--
__init__.pyc
2.15
KB
-rw-r--r--
build_env.py
4.68
KB
-rw-r--r--
build_env.pyc
6.16
KB
-rw-r--r--
cache.py
6.67
KB
-rw-r--r--
cache.pyc
7.96
KB
-rw-r--r--
configuration.py
12.93
KB
-rw-r--r--
configuration.pyc
11.76
KB
-rw-r--r--
download.py
32.52
KB
-rw-r--r--
download.pyc
25.74
KB
-rw-r--r--
exceptions.py
8.69
KB
-rw-r--r--
exceptions.pyc
13.74
KB
-rw-r--r--
index.py
33.98
KB
-rw-r--r--
index.pyc
26.22
KB
-rw-r--r--
locations.py
6.16
KB
-rw-r--r--
locations.pyc
5.07
KB
-rw-r--r--
pep425tags.py
10.59
KB
-rw-r--r--
pep425tags.pyc
9.3
KB
-rw-r--r--
pyproject.py
5.35
KB
-rw-r--r--
pyproject.pyc
3.13
KB
-rw-r--r--
resolve.py
13.26
KB
-rw-r--r--
resolve.pyc
9.62
KB
-rw-r--r--
wheel.py
31.26
KB
-rw-r--r--
wheel.pyc
23.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : build_env.py
"""Build Environment used for isolation during sdist building """ import logging import os import sys from distutils.sysconfig import get_python_lib from sysconfig import get_paths from pip._vendor.pkg_resources import Requirement, VersionConflict, WorkingSet from pip._internal.utils.misc import call_subprocess from pip._internal.utils.temp_dir import TempDirectory from pip._internal.utils.ui import open_spinner logger = logging.getLogger(__name__) class BuildEnvironment(object): """Creates and manages an isolated environment to install build deps """ def __init__(self): self._temp_dir = TempDirectory(kind="build-env") self._temp_dir.create() @property def path(self): return self._temp_dir.path def __enter__(self): self.save_path = os.environ.get('PATH', None) self.save_pythonpath = os.environ.get('PYTHONPATH', None) self.save_nousersite = os.environ.get('PYTHONNOUSERSITE', None) install_scheme = 'nt' if (os.name == 'nt') else 'posix_prefix' install_dirs = get_paths(install_scheme, vars={ 'base': self.path, 'platbase': self.path, }) scripts = install_dirs['scripts'] if self.save_path: os.environ['PATH'] = scripts + os.pathsep + self.save_path else: os.environ['PATH'] = scripts + os.pathsep + os.defpath # Note: prefer distutils' sysconfig to get the # library paths so PyPy is correctly supported. purelib = get_python_lib(plat_specific=0, prefix=self.path) platlib = get_python_lib(plat_specific=1, prefix=self.path) if purelib == platlib: lib_dirs = purelib else: lib_dirs = purelib + os.pathsep + platlib if self.save_pythonpath: os.environ['PYTHONPATH'] = lib_dirs + os.pathsep + \ self.save_pythonpath else: os.environ['PYTHONPATH'] = lib_dirs os.environ['PYTHONNOUSERSITE'] = '1' return self.path def __exit__(self, exc_type, exc_val, exc_tb): def restore_var(varname, old_value): if old_value is None: os.environ.pop(varname, None) else: os.environ[varname] = old_value restore_var('PATH', self.save_path) restore_var('PYTHONPATH', self.save_pythonpath) restore_var('PYTHONNOUSERSITE', self.save_nousersite) def cleanup(self): self._temp_dir.cleanup() def missing_requirements(self, reqs): """Return a list of the requirements from reqs that are not present """ missing = [] with self: ws = WorkingSet(os.environ["PYTHONPATH"].split(os.pathsep)) for req in reqs: try: if ws.find(Requirement.parse(req)) is None: missing.append(req) except VersionConflict: missing.append(req) return missing def install_requirements(self, finder, requirements, message): args = [ sys.executable, '-m', 'pip', 'install', '--ignore-installed', '--no-user', '--prefix', self.path, '--no-warn-script-location', ] if logger.getEffectiveLevel() <= logging.DEBUG: args.append('-v') for format_control in ('no_binary', 'only_binary'): formats = getattr(finder.format_control, format_control) args.extend(('--' + format_control.replace('_', '-'), ','.join(sorted(formats or {':none:'})))) if finder.index_urls: args.extend(['-i', finder.index_urls[0]]) for extra_index in finder.index_urls[1:]: args.extend(['--extra-index-url', extra_index]) else: args.append('--no-index') for link in finder.find_links: args.extend(['--find-links', link]) for _, host, _ in finder.secure_origins: args.extend(['--trusted-host', host]) if finder.allow_all_prereleases: args.append('--pre') if finder.process_dependency_links: args.append('--process-dependency-links') args.append('--') args.extend(requirements) with open_spinner(message) as spinner: call_subprocess(args, show_stdout=False, spinner=spinner) class NoOpBuildEnvironment(BuildEnvironment): """A no-op drop-in replacement for BuildEnvironment """ def __init__(self): pass def __enter__(self): pass def __exit__(self, exc_type, exc_val, exc_tb): pass def cleanup(self): pass def install_requirements(self, finder, requirements, message): raise NotImplementedError()
Close