public/Get-NexposeVulnerabilityItemAsset.ps1
Function Get-NexposeVulnerabilityItemAsset { <# .SYNOPSIS Get the assets affected by the vulnerability .DESCRIPTION Get the assets affected by the vulnerability .PARAMETER Id The identifier of the vulnerability .EXAMPLE Get-NexposeVulnerabilityItemAsset -Id '7-zip-cve-2008-6536' .NOTES For additional information please see my GitHub wiki page .FUNCTIONALITY GET: vulnerabilities/{id}/assets .LINK https://github.com/My-Random-Thoughts/Rapid7Nexpose #> Param ( [Parameter(Mandatory = $true)] [string]$Id ) Write-Output @(Invoke-NexposeQuery -UrlFunction "vulnerabilities/$Id/assets" -RestMethod Get) } |