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