Exploit database

GH-3fe86c5f9d22fd81d8385b990ffa1470

raka200juta/28458

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-28458

2 sources

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

Repository files78Next files →

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

venv/lib/python3.12/site-packages/pip/_vendor/rich/_pick.py

Python · 423 bytes
from typing import Optional


def pick_bool(*values: Optional[bool]) -> bool:
    """Pick the first non-none bool or return the last value.

    Args:
        *values (bool): Any number of boolean or None values.

    Returns:
        bool: First non-none boolean.
    """
    assert values, "1 or more values required"
    for value in values:
        if value is not None:
            return value
    return bool(value)