class Nexpose::Asset
Asset
object as return from the 2.1 API.
Attributes
Assessment
summary of the asset, including most recent scan info. [Lazy]
Vulnerability
exploits to which this asset is susceptible. [Lazy]
Files and directories that have been enumerated on the asset. [Lazy]
Group accounts enumerated on the asset. [Lazy]
Known host names found for the asset.
The host type of the asset. One of: GUEST, HYPERVISOR, PHYSICAL, MOBILE.
Unique identifier of the asset on the Nexpose
console.
Primary IP address of the asset.
MAC address of the asset.
Malware kits to which this asset is susceptible. [Lazy]
The CPE for the asset's operating system.
Operating system name.
Service
endpoints enumerated on the asset. [Lazy]
Software
enumerated on the asset. [Lazy]
Unique system identifiers on the asset.
User
accounts enumerated on the asset. [Lazy]
Vulnerabilities detected on the asset. [Lazy]
Vulnerability
instances detected on the asset. [Lazy]
Public Class Methods
Load an asset from the provided console.
@param [Connection] nsc Active connection to a Nexpose
console. @param [Fixnum] id Unique identifier of an asset. @return [Asset] The requested asset, if found.
# File lib/nexpose/asset.rb, line 55 def self.load(nsc, id) uri = "/api/2.1/assets/#{id}" resp = AJAX.get(nsc, uri, AJAX::CONTENT_TYPE::JSON) hash = JSON.parse(resp, symbolize_names: true) new.object_from_hash(nsc, hash) end
# File lib/nexpose/asset.rb, line 44 def initialize @addresses = [] @host_names = [] end