Class: Nexpose::VulnerabilityInstance
- Defined in:
- lib/nexpose/vuln.rb
Overview
An instance of a vulnerability discovered on an asset.
Instance Attribute Summary collapse
-
#asset_id ⇒ Object
readonly
ID of the asset where the vulnerability instance was detected.
-
#asset_ip_address ⇒ Object
readonly
IP Address of the asset where the vulnerability instance was detected.
-
#date ⇒ Object
readonly
The time at which the vulnerability test was performed.
-
#key ⇒ Object
readonly
Key that can distinguish the instances of the same type on the system.
-
#port ⇒ Object
readonly
The port on which the service was running if the vulnerability was found through a network service, -1 if not defined.
-
#proof ⇒ Object
readonly
The proof which explains why the vulnerability is present on the asset.
-
#protocol ⇒ Object
readonly
Protocol the service was providing on which the vulnerability was found.
-
#scan_id ⇒ Object
readonly
ID of the scan where the vulnerability instance was detected.
-
#service ⇒ Object
readonly
The service that the vulnerability test was performed against.
-
#status ⇒ Object
readonly
The vulnerable status of the vulnerability.
-
#vulnerability_id ⇒ Object
readonly
The ID (natural key) of the vulnerability.
Method Summary
Methods inherited from APIObject
Instance Attribute Details
#asset_id ⇒ Object (readonly)
ID of the asset where the vulnerability instance was detected.
303 304 305 |
# File 'lib/nexpose/vuln.rb', line 303 def asset_id @asset_id end |
#asset_ip_address ⇒ Object (readonly)
IP Address of the asset where the vulnerability instance was detected.
305 306 307 |
# File 'lib/nexpose/vuln.rb', line 305 def asset_ip_address @asset_ip_address end |
#date ⇒ Object (readonly)
The time at which the vulnerability test was performed.
311 312 313 |
# File 'lib/nexpose/vuln.rb', line 311 def date @date end |
#key ⇒ Object (readonly)
Key that can distinguish the instances of the same type on the system. For spider vulnerabilities, this is typically the relative URI where the vuln was discovered.
320 321 322 |
# File 'lib/nexpose/vuln.rb', line 320 def key @key end |
#port ⇒ Object (readonly)
The port on which the service was running if the vulnerability was found through a network service, -1 if not defined.
325 326 327 |
# File 'lib/nexpose/vuln.rb', line 325 def port @port end |
#proof ⇒ Object (readonly)
The proof which explains why the vulnerability is present on the asset. The value is often HTML-formatted text.
316 317 318 |
# File 'lib/nexpose/vuln.rb', line 316 def proof @proof end |
#protocol ⇒ Object (readonly)
Protocol the service was providing on which the vulnerability was found.
327 328 329 |
# File 'lib/nexpose/vuln.rb', line 327 def protocol @protocol end |
#scan_id ⇒ Object (readonly)
ID of the scan where the vulnerability instance was detected.
307 308 309 |
# File 'lib/nexpose/vuln.rb', line 307 def scan_id @scan_id end |
#service ⇒ Object (readonly)
The service that the vulnerability test was performed against.
322 323 324 |
# File 'lib/nexpose/vuln.rb', line 322 def service @service end |
#status ⇒ Object (readonly)
The vulnerable status of the vulnerability.
313 314 315 |
# File 'lib/nexpose/vuln.rb', line 313 def status @status end |
#vulnerability_id ⇒ Object (readonly)
The ID (natural key) of the vulnerability.
309 310 311 |
# File 'lib/nexpose/vuln.rb', line 309 def vulnerability_id @vulnerability_id end |