You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It lists a "proof" attribute, but I don't see a way to get the proofs for a vulnerability on an asset since it doesn't look like that class is used anywhere else.
The text was updated successfully, but these errors were encountered:
Alright, so after a bit of looking - we finally found the answer.
nsc = Nexpose::Connection.new 'nexpose', 'user', 'pass' nsc.login nsc.list_assets -- This will actually return your assets, but using the Device class, which will not give you vuln info.
asset = Nexpose::Asset.load(nsc, 1) insert your asset_id instead of 1. asset.vulnerability_instances -- this is what you're looking for.
Basically you'll need to have the Asset class loaded in order to grab the proof via the VulnerabilityInstance class. Sorry for the confusion, we're going to go ahead and add some comments into the VulnerabilityInstance class pointing back to the Asset class.
Let us know if that gets you passed your sticking point. Thanks.
The VulnerabilityInstance class is currently unused: https://github.com/rapid7/nexpose-client/blob/c7f976c58229b80057ea158ec48c2c603e7cf1c5/lib/nexpose/vuln.rb
It lists a "proof" attribute, but I don't see a way to get the proofs for a vulnerability on an asset since it doesn't look like that class is used anywhere else.
The text was updated successfully, but these errors were encountered: