dradis-nmap 3.9.0 → 3.10.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
  SHA1:
3
- metadata.gz: 75ceb593983c4606328165297c4f5032eaa2e274
4
- data.tar.gz: bebbf15e690bfcb0c3fe2101a2b37d708fdb117a
3
+ metadata.gz: b86146a650b6a34609cb267a6c5d8e089f2263f9
4
+ data.tar.gz: b6d42353ddecfc904ebf0cf67860f61250f140e5
5
5
  SHA512:
6
- metadata.gz: be8e6e1db6fa28bc4b827c65c3d06f90338a0d422dcab1f87d1a0aad5c51e3b224e81c916a3b2ac5658ba102480292f47266f61e628403ef07fed3c1c96a62f6
7
- data.tar.gz: c37c957b8398d23b0bcf255210bd7375adad131c1086051ffb8c56c6c627ffa264a7fc09573dfd65a150d89a6dfaf5787d4c78c2d30d4a8a3b72b29e4e0afa35
6
+ metadata.gz: 01c6226cada0034ab53f352c079d6b020428273db580d3a451866934d9ae9da89caa9f2b371997b8f74052844f7e8353894edda9a355344a0fd42629f5437d6b
7
+ data.tar.gz: c771b2ff0081f368f41ba6d64939451f600e468fbf3118270a0ea4b9b8d8a8087d135b3376b2d4205429a3504a0690ebe3fbc9dd35c7dacbace54c53089d2f16
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Dradis Framework 3.10 (August, 2018) ##
2
+
3
+ * Split services data into services and services_extra tables
4
+
1
5
  ## Dradis Framework 3.9 (January, 2018) ##
2
6
 
3
7
  * No changes.
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 3
11
- MINOR = 9
11
+ MINOR = 10
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -41,19 +41,24 @@ module Dradis::Plugins::Nmap
41
41
  content_service.create_note(text: host_text, node: host_node)
42
42
 
43
43
  host.each_port do |port|
44
- logger.info{ "\tNew port: #{ port.number }/#{ port.protocol }" }
44
+ logger.info { "\tNew port: #{port.number}/#{port.protocol}" }
45
45
 
46
- # Add service to host properties
47
- host_node.set_property(:services, {
48
- port: port.number,
49
- protocol: port.protocol.to_s,
50
- state: port.state.to_s,
51
- reason: port.reason,
52
- name: port.try('service').try('name'),
53
- product: port.try('service').try('product'),
54
- scripts: port.try('scripts'),
55
- version: port.try('service').try('version')
56
- })
46
+ service = {
47
+ port: port.number,
48
+ protocol: port.protocol.to_s,
49
+ state: port.state.to_s,
50
+ reason: port.reason,
51
+ name: port.try(:service).try(:name),
52
+ product: port.try(:service).try(:product),
53
+ version: port.try(:service).try(:version),
54
+ source: :nmap,
55
+ }
56
+
57
+ # Node#set_service will store these under
58
+ # Node#properties[:service_extras]:
59
+ port.scripts.each { |k, v| service[k] = v } if port.try(:scripts)
60
+
61
+ host_node.set_service(service)
57
62
 
58
63
  # HACK: patch in a `host` method to `Nmap::Port`
59
64
  # so we can use it in the template:
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.9.0
4
+ version: 3.10.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: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.5
153
+ rubygems_version: 2.6.8
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Nmap add-on for the Dradis Framework.