dradis-nexpose 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9104388051c4619bfa547e1dcf8c4a7694ddf40f280ecd835efbd207e7af45c0
|
4
|
+
data.tar.gz: a46345dbb5776757b6a213dbba8c31eabef4e73c1800095710f0cfa18f86221e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb9dfec8eadb11c646c838566424b3f240f53e8f52fff3433bc85efae8d23fc7cef12fdd336d04554369b95111c5b4e1f37bcf83f8136edf68d459505534f801
|
7
|
+
data.tar.gz: 4f905810edd2168aba965ad15f14516c93bdd3ae6f418e2eed03af41c53c998e56a5607eb86a19c740cb0dfc84ddd92c409bc92c6a4467e03fd956c327c963ff
|
data/CHANGELOG.md
CHANGED
@@ -34,7 +34,7 @@ module Dradis::Plugins::Nexpose::Formats
|
|
34
34
|
if host_node.respond_to?(:properties)
|
35
35
|
logger.info{ "\tAdding host properties to #{nexpose_node.address}"}
|
36
36
|
host_node.set_property(:ip, nexpose_node.address)
|
37
|
-
host_node.set_property(:hostname, nexpose_node.
|
37
|
+
host_node.set_property(:hostname, nexpose_node.names)
|
38
38
|
host_node.set_property(:os, nexpose_node.software)
|
39
39
|
host_node.set_property(:risk_score, nexpose_node.risk_score)
|
40
40
|
host_node.save
|
@@ -5,6 +5,9 @@
|
|
5
5
|
</scans>
|
6
6
|
<nodes>
|
7
7
|
<node address="1.1.1.1" device-id="75" risk-score="0.0" scan-template="Edge Standard" site-importance="Normal" site-name="USDA_Internal" status="alive">
|
8
|
+
<names>
|
9
|
+
<name>localhost:5000</name>
|
10
|
+
</names>
|
8
11
|
<fingerprints>
|
9
12
|
<os certainty="0.80" family="IOS" product="IOS" vendor="Cisco"/>
|
10
13
|
</fingerprints>
|
data/spec/nexpose_upload_spec.rb
CHANGED
@@ -79,7 +79,6 @@ describe 'Nexpose upload plugin' do
|
|
79
79
|
|
80
80
|
describe "Importer: Full" do
|
81
81
|
it "creates nodes, issues, notes and an evidences as needed" do
|
82
|
-
|
83
82
|
expect(@content_service).to receive(:create_node).with(hash_including label: "Nexpose Scan Summary").once
|
84
83
|
expect(@content_service).to receive(:create_note) do |args|
|
85
84
|
expect(args[:text]).to include("#[Title]#\nUSDA_Internal (4)")
|
@@ -123,6 +122,14 @@ describe 'Nexpose upload plugin' do
|
|
123
122
|
expect(args[:node].label).to eq("1.1.1.1")
|
124
123
|
end.once
|
125
124
|
|
125
|
+
allow_any_instance_of(OpenStruct).to receive(:respond_to?).with(:properties).and_return(true)
|
126
|
+
allow_any_instance_of(OpenStruct).to receive(:set_service).and_return(true)
|
127
|
+
|
128
|
+
expect_any_instance_of(OpenStruct).to receive(:set_property).with(:hostname, ['localhost:5000'])
|
129
|
+
expect_any_instance_of(OpenStruct).to receive(:set_property).with(:ip, '1.1.1.1')
|
130
|
+
expect_any_instance_of(OpenStruct).to receive(:set_property).with(:os, [])
|
131
|
+
expect_any_instance_of(OpenStruct).to receive(:set_property).with(:risk_score, '0.0')
|
132
|
+
|
126
133
|
@importer.import(file: 'spec/fixtures/files/full.xml')
|
127
134
|
end
|
128
135
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-nexpose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
rubygems_version: 3.1.
|
175
|
+
rubygems_version: 3.1.4
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Nexpose add-on for the Dradis Framework.
|