nessus 0.1.0.beta.9 → 0.1.0.beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/nessus/client/report.rb +6 -2
- data/lib/nessus/version.rb +1 -1
- metadata +2 -2
data/lib/nessus/client/report.rb
CHANGED
|
@@ -173,12 +173,14 @@ module Nessus
|
|
|
173
173
|
{
|
|
174
174
|
'plugin_id' => report['findings']['portdetails']['reportitem']['pluginid'],
|
|
175
175
|
'plugin_name' => report['findings']['portdetails']['reportitem']['pluginname'],
|
|
176
|
+
'severity' => report['findings']['portdetails']['reportitem']['severity'],
|
|
176
177
|
}
|
|
177
178
|
else
|
|
178
179
|
report['findings']['portdetails']['reportitem'].map do |report_item|
|
|
179
180
|
{
|
|
180
181
|
'plugin_id' => report_item['pluginid'],
|
|
181
|
-
'plugin_name' => report_item['pluginname']
|
|
182
|
+
'plugin_name' => report_item['pluginname'],
|
|
183
|
+
'severity' => report_item['severity']
|
|
182
184
|
}
|
|
183
185
|
end
|
|
184
186
|
end
|
|
@@ -197,11 +199,13 @@ module Nessus
|
|
|
197
199
|
hostname
|
|
198
200
|
end
|
|
199
201
|
}.compact,
|
|
200
|
-
'plugin_name' => ip_finding['plugin_name']
|
|
202
|
+
'plugin_name' => ip_finding['plugin_name'],
|
|
203
|
+
'severity' => ip_finding['severity']
|
|
201
204
|
}
|
|
202
205
|
]
|
|
203
206
|
end
|
|
204
207
|
plugin_id_to_hostname = Hash[plugin_id_arr]
|
|
208
|
+
plugin_id_to_hostname.sort_by { |id, s| s['severity'] }
|
|
205
209
|
end
|
|
206
210
|
|
|
207
211
|
def report_item(report_findings, host, plugin_id)
|
data/lib/nessus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nessus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0.beta.
|
|
4
|
+
version: 0.1.0.beta.10
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-12-
|
|
13
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|