public/Get-NexposeVulnerabilityItemMalwareKit.ps1

Function Get-NexposeVulnerabilityItemMalwareKit {
<#
    .SYNOPSIS
        Returns the malware kits that are known to be used to exploit the vulnerability
 
    .DESCRIPTION
        Returns the malware kits that are known to be used to exploit the vulnerability
 
    .PARAMETER Id
        The identifier of the vulnerability
 
    .EXAMPLE
        Get-NexposeVulnerabilityItemMalwareKit -Id '7-zip-cve-2008-6536'
 
    .NOTES
        For additional information please see my GitHub wiki page
 
    .FUNCTIONALITY
        GET: vulnerabilities/{id}/malware_kits
 
    .LINK
        https://github.com/My-Random-Thoughts/Rapid7Nexpose
#>


    Param (
        [Parameter(Mandatory = $true)]
        [string]$Id
    )

    Write-Output @(Invoke-NexposeQuery -UrlFunction "vulnerabilities/$Id/malware_kits" -RestMethod Get)
}