lib/nexpose/vuln.rb
# Retrieve details for a vulnerability.
#
# @param [String] vuln_id Nexpose vulnerability ID, such as 'windows-duqu-cve-2011-3402'.
# @return [VulnerabilityDetail] Details of the requested vulnerability.
#
Retrieve details for a vulnerability.
Retrieve details for a vulnerability .
def vuln_details(vuln_id)
      xml = make_xml('VulnerabilityDetailsRequest', { 'vuln-id' => vuln_id })
      response = execute(xml, '1.2')
      if response.success
        response.res.elements.each('VulnerabilityDetailsResponse/Vulnerability') do |vuln|
          return VulnerabilityDetail.parse(vuln)
        end
      end
    end
def vuln_details ( vuln_id ) xml = make_xml ( 'VulnerabilityDetailsRequest' , { 'vuln-id' => vuln_id } ) response = execute ( xml , '1.2' ) if response . success response . res . elements . each ( 'VulnerabilityDetailsResponse/Vulnerability' ) do | vuln | return VulnerabilityDetail . parse ( vuln ) end end end
Retrieve details for a vulnerability.
Retrieve details for a vulnerability .
Details of the requested vulnerability.
Details of the requested vulnerability .
VulnerabilityDetail
vuln_id
<not_specific>
<not_specific>
vuln_id Nexpose vulnerability ID, such as 'windows-duqu-cve-2011-3402'.
vuln_id Nexpose vulnerability ID such as ' windows - duqu - cve - 2011 - 3402 ' .