INNER CODE UNIT · Python

get_fixed_versions_of_cve

cyberark/KubiScan · KubiScan.py:118

def get_fixed_versions_of_cve(cve_fixed_versions):
    fixed_version_list = ""
    for fixed_version in cve_fixed_versions:
        fixed_version_list += fixed_version["Raw"] + "\n"
    return fixed_version_list[:-1]


def split_cve_description(cve_description):
    words = cve_description.split()
    res_description = ""
    words_in_row = 10
    for i, word in enumerate(words):
        if i % words_in_row == 0 and i != 0:
            res_description += "\n"
        res_description += word + " "
    return res_description[:-1]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…