Exploit database

GH-f7b6d713db0c234fd286d161e70825c0

atorralba/cve-2021-30005-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-30005

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files27

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

venv/lib/python2.7/site-packages/pip/_internal/utils/marker_files.py

Python · 741 bytes
import os.path

DELETE_MARKER_MESSAGE = '''\
This file is placed here by pip to indicate the source was put
here by pip.

Once this package is successfully installed this source code will be
deleted (unless you remove this file).
'''
PIP_DELETE_MARKER_FILENAME = 'pip-delete-this-directory.txt'


def has_delete_marker_file(directory):
    # type: (str) -> bool
    return os.path.exists(os.path.join(directory, PIP_DELETE_MARKER_FILENAME))


def write_delete_marker_file(directory):
    # type: (str) -> None
    """
    Write the pip delete marker file into this directory.
    """
    filepath = os.path.join(directory, PIP_DELETE_MARKER_FILENAME)
    with open(filepath, 'w') as marker_fp:
        marker_fp.write(DELETE_MARKER_MESSAGE)