dradis-nmap 3.14.0 → 3.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/dradis-nmap.gemspec +1 -1
- data/lib/dradis/plugins/nmap/gem_version.rb +1 -1
- data/spec/nmap_upload_spec.rb +8 -27
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6b910f0322179567b78cb45cba56d2e28b7faf8fc30e97b54984248bfd6aac
|
4
|
+
data.tar.gz: f4b8408803c34423d6a2dc058fe6c05a57bee8a03352f47d9d2fcc9408bad7f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8555ee934ae7b3cd120239633a47472fc89ea6b98e06d6a7d1ce847fab54ddd36ab684499caab8450becb2c3f955b8e82d9a7303dcd68951455c420e4c60c93a
|
7
|
+
data.tar.gz: cb7788d275f8e478ddb71458584db2adceb4b1e21d619f07263e37caf5fff034f0bf68362f09243b62c262b931d48c1111f6fa87eccceacf58e43cb3aea1f32c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
6
|
+
|
7
|
+
* No changes.
|
8
|
+
|
9
|
+
## Dradis Framework 3.17 (May, 2020) ##
|
10
|
+
|
11
|
+
* No changes.
|
12
|
+
|
13
|
+
## Dradis Framework 3.16 (February, 2020) ##
|
14
|
+
|
15
|
+
* No changes.
|
16
|
+
|
17
|
+
## Dradis Framework 3.15 (November, 2019) ##
|
18
|
+
|
19
|
+
* No changes.
|
20
|
+
|
1
21
|
## Dradis Framework 3.14 (August, 2019) ##
|
2
22
|
|
3
23
|
* Add port.service.tunnel field to the port template
|
data/dradis-nmap.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency 'dradis-plugins', '~> 3.6'
|
28
28
|
spec.add_dependency 'ruby-nmap', '~> 0.7'
|
29
29
|
|
30
|
-
spec.add_development_dependency 'bundler'
|
30
|
+
spec.add_development_dependency 'bundler'
|
31
31
|
spec.add_development_dependency 'rake', '~> 10.0'
|
32
32
|
spec.add_development_dependency 'rspec-rails'
|
33
33
|
spec.add_development_dependency 'combustion', '~> 0.5.2'
|
data/spec/nmap_upload_spec.rb
CHANGED
@@ -12,34 +12,11 @@ describe 'Nmap upload plugin' do
|
|
12
12
|
# Init services
|
13
13
|
plugin = Dradis::Plugins::Nmap
|
14
14
|
|
15
|
-
@content_service = Dradis::Plugins::ContentService.new(plugin: plugin)
|
16
|
-
template_service = Dradis::Plugins::TemplateService.new(plugin: plugin)
|
15
|
+
@content_service = Dradis::Plugins::ContentService::Base.new(plugin: plugin)
|
17
16
|
|
18
17
|
@importer = plugin::Importer.new(
|
19
|
-
content_service: @content_service
|
20
|
-
template_service: template_service
|
18
|
+
content_service: @content_service
|
21
19
|
)
|
22
|
-
|
23
|
-
# Stub dradis-plugins methods
|
24
|
-
#
|
25
|
-
# They return their argument hashes as objects mimicking
|
26
|
-
# Nodes, Issues, etc
|
27
|
-
allow(@content_service).to receive(:create_node) do |args|
|
28
|
-
# puts "create_node: #{ args.inspect }"
|
29
|
-
OpenStruct.new(args)
|
30
|
-
end
|
31
|
-
allow(@content_service).to receive(:create_note) do |args|
|
32
|
-
# puts "create_note: #{ args.inspect }"
|
33
|
-
OpenStruct.new(args)
|
34
|
-
end
|
35
|
-
allow(@content_service).to receive(:create_issue) do |args|
|
36
|
-
# puts "create_issue: #{ args.inspect }"
|
37
|
-
OpenStruct.new(args)
|
38
|
-
end
|
39
|
-
allow(@content_service).to receive(:create_evidence) do |args|
|
40
|
-
# puts "create_evidence: #{ args.inspect }"
|
41
|
-
OpenStruct.new(args)
|
42
|
-
end
|
43
20
|
end
|
44
21
|
|
45
22
|
it "creates an error note when the xml is not valid" do
|
@@ -47,16 +24,20 @@ describe 'Nmap upload plugin' do
|
|
47
24
|
expect(args[:text]).to include("#[Title]#\nInvalid file format")
|
48
25
|
OpenStruct.new(args)
|
49
26
|
end.once
|
27
|
+
|
50
28
|
# Run the import
|
51
29
|
@importer.import(file: 'spec/fixtures/files/invalid.xml')
|
52
30
|
end
|
53
31
|
|
54
32
|
it "creates nodes, issues, notes and an evidences as needed" do
|
55
33
|
expect(@content_service).to receive(:create_node) do |args|
|
56
|
-
|
34
|
+
puts "create_node: #{ args.inspect }"
|
57
35
|
expect(args[:label]).to eq('74.207.244.221')
|
58
36
|
expect(args[:type]).to eq(:host)
|
59
|
-
OpenStruct.new(args)
|
37
|
+
obj = OpenStruct.new(args)
|
38
|
+
obj.define_singleton_method(:set_property) { |*| }
|
39
|
+
obj.define_singleton_method(:set_service) { |*| }
|
40
|
+
obj
|
60
41
|
end.once
|
61
42
|
expect(@content_service).to receive(:create_note) do |args|
|
62
43
|
puts "create_note: #{ args.inspect }"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-nmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.19.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: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
|
-
rubygems_version: 3.0.
|
154
|
+
rubygems_version: 3.0.1
|
155
155
|
signing_key:
|
156
156
|
specification_version: 4
|
157
157
|
summary: Nmap add-on for the Dradis Framework.
|