Exploit databaseDownload repository ZIP
GH-a398512ab3c46db40115255f0791592c
andrea-mattioli/apache-exploit-cve-2021-42013
Sources for CVE-2021-42013
50 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files28
andrea-mattioli/apache-exploit-cve-2021-42013Revision a0385d63dffa
- ↑..Parent directory
- __pycache__/
- __init__.py
- appdirs.py
- compat.py
- deprecation.py
- distutils_args.py
- encoding.py
- entrypoints.py
- filesystem.py
- filetypes.py
- glibc.py
- hashes.py
- inject_securetransport.py
- logging.py
- marker_files.py
- misc.py
- models.py
- packaging.py
- pkg_resources.py
- setuptools_build.py
- subprocess.py
- temp_dir.py
- typing.py
- ui.py
- unpacking.py
- urls.py
- virtualenv.py
- wheel.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/python3.8/site-packages/pip/_internal/utils/appdirs.py
Python · 1,307 bytes"""
This code wraps the vendored appdirs module to so the return values are
compatible for the current pip code base.
The intention is to rewrite current usages gradually, keeping the tests pass,
and eventually drop this after all usages are changed.
"""
from __future__ import absolute_import
import os
from pip._vendor import appdirs as _appdirs
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import List
def user_cache_dir(appname):
# type: (str) -> str
return _appdirs.user_cache_dir(appname, appauthor=False)
def user_config_dir(appname, roaming=True):
# type: (str, bool) -> str
return _appdirs.user_config_dir(appname, appauthor=False, roaming=roaming)
def user_data_dir(appname, roaming=False):
# type: (str, bool) -> str
return _appdirs.user_data_dir(appname, appauthor=False, roaming=roaming)
# for the discussion regarding site_config_dir locations
# see <https://github.com/pypa/pip/issues/1733>
def site_config_dirs(appname):
# type: (str) -> List[str]
dirval = _appdirs.site_config_dir(appname, appauthor=False, multipath=True)
if _appdirs.system not in ["win32", "darwin"]:
# always look in /etc directly as well
return dirval.split(os.pathsep) + ['/etc']
return [dirval]