Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 13.58.219.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
setuptools /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-09-13 06:33
_distutils
[ DIR ]
drwxr-xr-x
2024-09-13 06:33
_vendor
[ DIR ]
drwxr-xr-x
2024-09-13 06:33
command
[ DIR ]
drwxr-xr-x
2024-09-13 06:33
extern
[ DIR ]
drwxr-xr-x
2024-09-13 06:33
__init__.py
7.27
KB
-rw-r--r--
2021-12-12 20:45
_deprecation_warning.py
218
B
-rw-r--r--
2021-12-12 20:45
_imp.py
2.34
KB
-rw-r--r--
2021-12-12 20:45
archive_util.py
6.91
KB
-rw-r--r--
2021-12-12 20:45
build_meta.py
10.29
KB
-rw-r--r--
2021-12-12 20:45
config.py
22.61
KB
-rw-r--r--
2021-12-12 20:45
dep_util.py
949
B
-rw-r--r--
2021-12-12 20:45
depends.py
5.37
KB
-rw-r--r--
2021-12-12 20:45
dist.py
42.15
KB
-rw-r--r--
2024-09-05 05:38
errors.py
1.52
KB
-rw-r--r--
2021-12-12 20:45
extension.py
1.64
KB
-rw-r--r--
2021-12-12 20:45
glob.py
4.76
KB
-rw-r--r--
2021-12-12 20:45
installer.py
3.73
KB
-rw-r--r--
2021-12-12 20:45
launch.py
812
B
-rw-r--r--
2021-12-12 20:45
monkey.py
5.09
KB
-rw-r--r--
2021-12-12 20:45
msvc.py
49.38
KB
-rw-r--r--
2021-12-12 20:45
namespaces.py
3.02
KB
-rw-r--r--
2021-12-12 20:45
package_index.py
39.99
KB
-rw-r--r--
2024-09-05 05:38
py34compat.py
245
B
-rw-r--r--
2021-12-12 20:45
sandbox.py
14.01
KB
-rw-r--r--
2021-12-12 20:45
script (dev).tmpl
218
B
-rw-r--r--
2021-12-12 20:45
script.tmpl
138
B
-rw-r--r--
2021-12-12 20:45
unicode_utils.py
941
B
-rw-r--r--
2021-12-12 20:45
version.py
144
B
-rw-r--r--
2021-12-12 20:45
wheel.py
8.09
KB
-rw-r--r--
2021-12-12 20:45
windows_support.py
714
B
-rw-r--r--
2021-12-12 20:45
Save
Rename
import os from distutils import log import itertools flatten = itertools.chain.from_iterable class Installer: nspkg_ext = '-nspkg.pth' def install_namespaces(self): nsp = self._get_all_ns_packages() if not nsp: return filename, ext = os.path.splitext(self._get_target()) filename += self.nspkg_ext self.outputs.append(filename) log.info("Installing %s", filename) lines = map(self._gen_nspkg_line, nsp) if self.dry_run: # always generate the lines, even in dry run list(lines) return with open(filename, 'wt') as f: f.writelines(lines) def uninstall_namespaces(self): filename, ext = os.path.splitext(self._get_target()) filename += self.nspkg_ext if not os.path.exists(filename): return log.info("Removing %s", filename) os.remove(filename) def _get_target(self): return self.target _nspkg_tmpl = ( "import sys, types, os", "has_mfs = sys.version_info > (3, 5)", "p = os.path.join(%(root)s, *%(pth)r)", "importlib = has_mfs and __import__('importlib.util')", "has_mfs and __import__('importlib.machinery')", ( "m = has_mfs and " "sys.modules.setdefault(%(pkg)r, " "importlib.util.module_from_spec(" "importlib.machinery.PathFinder.find_spec(%(pkg)r, " "[os.path.dirname(p)])))" ), ( "m = m or " "sys.modules.setdefault(%(pkg)r, types.ModuleType(%(pkg)r))" ), "mp = (m or []) and m.__dict__.setdefault('__path__',[])", "(p not in mp) and mp.append(p)", ) "lines for the namespace installer" _nspkg_tmpl_multi = ( 'm and setattr(sys.modules[%(parent)r], %(child)r, m)', ) "additional line(s) when a parent package is indicated" def _get_root(self): return "sys._getframe(1).f_locals['sitedir']" def _gen_nspkg_line(self, pkg): pth = tuple(pkg.split('.')) root = self._get_root() tmpl_lines = self._nspkg_tmpl parent, sep, child = pkg.rpartition('.') if parent: tmpl_lines += self._nspkg_tmpl_multi return ';'.join(tmpl_lines) % locals() + '\n' def _get_all_ns_packages(self): """Return sorted list of all package namespaces""" pkgs = self.distribution.namespace_packages or [] return sorted(flatten(map(self._pkg_names, pkgs))) @staticmethod def _pkg_names(pkg): """ Given a namespace package, yield the components of that package. >>> names = Installer._pkg_names('a.b.c') >>> set(names) == set(['a', 'a.b', 'a.b.c']) True """ parts = pkg.split('.') while parts: yield '.'.join(parts) parts.pop() class DevelopInstaller(Installer): def _get_root(self): return repr(str(self.egg_path)) def _get_target(self): return self.egg_link