Exploit databaseDownload repository ZIP
GH-f7b6d713db0c234fd286d161e70825c0
atorralba/cve-2021-30005-poc
Sources for CVE-2021-30005
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
atorralba/cve-2021-30005-pocRevision 9eed786e4de2
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
venv/lib/python2.7/site-packages/pip/_internal/distributions/installed.py
Python · 760 bytesfrom pip._internal.distributions.base import AbstractDistribution
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Optional
from pip._vendor.pkg_resources import Distribution
from pip._internal.index.package_finder import PackageFinder
class InstalledDistribution(AbstractDistribution):
"""Represents an installed package.
This does not need any preparation as the required information has already
been computed.
"""
def get_pkg_resources_distribution(self):
# type: () -> Optional[Distribution]
return self.req.satisfied_by
def prepare_distribution_metadata(self, finder, build_isolation):
# type: (PackageFinder, bool) -> None
pass