예제 #1
0
def match_vendors():
    """Match CPE vendor data to SCCM publisher data"""
    # Initialize inputs
    cpe = nvd.NvdCpe()
    cpe.load()
    sft = sccm.SccmSoft()
    sft.load()

    # Process
    match_vendor = matchven.MatchVendor()

    match_vendor.match(cpe.get(), sft.get())
    match_vendor.save()
예제 #2
0
def match_sft():
    """Match CPE software to SCCM Publishers"""
    #   Use the set of vendor - publisher correspondance data
    #   to determine the possible software for each SCCM publisher.
    #
    #   Then match CPE software data to SCCM software inventory data

    # Initialize inputs
    sft = sccm.SccmSoft()
    sft.load()
    match_vendor = matchven.MatchVendor()
    match_vendor.load()
    cpe = nvd.NvdCpe()
    cpe.load()

    # Process
    match_soft = matchsft.MatchSoft()

    match_soft.match(match_vendor.get(), sft.get(), cpe.get())
    match_soft.save()
예제 #3
0
def upd_hosts_vulns():
    """Determine vulnerable software installed on each SCCM host"""
    #   Update SCCM host data with consolidated vuln data
    #   Produce some basic statistics

    # Initialize inputs
    hosts = sccm.SccmHosts()
    hosts.load()
    cve = nvd.NvdCve()
    cve.load()
    sft = sccm.SccmSoft()
    sft.load()
    match_soft = matchsft.MatchSoft()
    match_soft.load()

    # Process

    match_vulns = vulns.MatchVulns()

    match_vulns.data_merge(cve.get(), match_soft.get(), sft.get(), hosts.get())

    match_vulns.save()
예제 #4
0
def rd_sccm_sft():
    """Read SCCM software inventory data"""
    sft = sccm.SccmSoft()
    sft.read()
    sft.save()