dradis-nessus 3.3.0 → 3.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 527a7b4db254c8fd1308271a84d6acaa161839e1
4
- data.tar.gz: f8b98514caef3641c22e133999f335bf8f7ce857
3
+ metadata.gz: 9cc963449349533ff36a39bf7a5338de17af5bdf
4
+ data.tar.gz: 72fdc4c22873c9ce4b2d8718d23f34fdf9ba459f
5
5
  SHA512:
6
- metadata.gz: b6da76530fb5fc37e677fb9c70a32f354e6d7d81727d639038332677b0db4cf3fcb33651fdec4df7a8bc32b8a3a03973d8dec018249f0a38e4d7fcd6de3cb445
7
- data.tar.gz: 563431b2d37630c685266dfd1f3b2c7cc2214610cdabc67deefa6e2783b2c0c76353e28aca4943684e315d3aacbe45f74fb5513e43b1ff3bcd9f7026f118449a
6
+ metadata.gz: eea8e61c79488f36a540089d3222cd40044a2bf290fac5f1b58fe651c4dcbef2c341b5d98b61e92d85a3997c1d7eb2faadcd52d8d6d0bfdd940c2927f927600b
7
+ data.tar.gz: 3e76531c1ef2f4df25b1487af2b5ab7d181ecdb870dc7cd8da6e7ac02930a581e4b73e245242726dc353cee5b034632ddd3eff5c08b60824e21d4940a04e5cb8
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## Dradis Framework 3.6 (March XX, 2017) ##
2
+
3
+ * No changes.
data/README.md CHANGED
@@ -24,3 +24,8 @@ See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisfra
24
24
  ## License
25
25
 
26
26
  Dradis Framework and all its components are released under [GNU General Public License version 2.0](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.
27
+
28
+
29
+ ## Feature requests and bugs
30
+
31
+ Please use the [Dradis Framework issue tracker](https://github.com/dradis/dradis-ce/issues) for add-on improvements and bug reports.
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  # versions of Rails (a sure recipe for disaster, I'm sure), which is needed
26
26
  # until we bump Dradis Pro to 4.1.
27
27
  # s.add_dependency 'rails', '~> 4.1.1'
28
- spec.add_dependency 'dradis-plugins', '~> 3.2'
28
+ spec.add_dependency 'dradis-plugins', '~> 3.6'
29
29
  spec.add_dependency 'nokogiri'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 1.6'
@@ -7,18 +7,7 @@ module Dradis
7
7
  include ::Dradis::Plugins::Base
8
8
  description 'Processes Nessus XML v2 format (.nessus)'
9
9
  provides :upload
10
-
11
- # generators do
12
- # require "path/to/my_railtie_generator"
13
- # end
14
-
15
- # Configuring the gem
16
- # class Configuration < Core::Configurator
17
- # configure :namespace => 'burp'
18
- # setting :category, :default => 'Burp Scanner output'
19
- # setting :author, :default => 'Burp Scanner plugin'
20
- # end
21
10
  end
22
11
  end
23
12
  end
24
- end
13
+ end
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 3
11
- MINOR = 3
11
+ MINOR = 6
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -62,7 +62,7 @@ module Dradis::Plugins::Nessus
62
62
  protocol: protocol,
63
63
  state: 'open',
64
64
  name: xml_report_item['svc_name'],
65
- x_nessus: xml_report_item.at_xpath('./plugin_output').text
65
+ x_nessus: xml_report_item.at_xpath('./plugin_output').try(:text)
66
66
  })
67
67
 
68
68
  host_node.save
@@ -128,10 +128,9 @@ module Dradis::Plugins::Nessus
128
128
  def process_report_item(xml_host, host_node, xml_report_item)
129
129
  # 3.1. Add Issue to the project
130
130
  plugin_id = xml_report_item.attributes['pluginID'].value
131
- logger.info{ "\t\t\t => Creating new issue (plugin_id: #{plugin_id})" }
131
+ logger.info{ "\t\t => Creating new issue (plugin_id: #{plugin_id})" }
132
132
 
133
133
  issue_text = template_service.process_template(template: 'report_item', data: xml_report_item)
134
- issue_text << "\n\n#[Host]#\n#{xml_host.attributes['name']}\n\n"
135
134
 
136
135
  issue = content_service.create_issue(text: issue_text, id: plugin_id)
137
136
 
@@ -162,7 +161,7 @@ module Dradis::Plugins::Nessus
162
161
  def process_service_detection(xml_host, host_node, xml_report_item)
163
162
  port = xml_report_item['port'].to_i
164
163
  protocol = xml_report_item['protocol']
165
- logger.info{ "\t\t\t => Creating new service: #{protocol}/#{port}" }
164
+ logger.info{ "\t\t => Creating new service: #{protocol}/#{port}" }
166
165
 
167
166
  host_node.set_property(:services, {
168
167
  port: port,
@@ -1,5 +1,5 @@
1
1
  class NessusTasks < Thor
2
- include Core::Pro::ProjectScopedTask if defined?(::Core::Pro)
2
+ include Rails.application.config.dradis.thor_helper_module
3
3
 
4
4
  namespace "dradis:plugins:nessus"
5
5
 
@@ -15,23 +15,8 @@ class NessusTasks < Thor
15
15
  exit(-1)
16
16
  end
17
17
 
18
- content_service = nil
19
- template_service = nil
20
-
21
- template_service = Dradis::Plugins::TemplateService.new(plugin: Dradis::Plugins::Nessus)
22
- if defined?(Dradis::Pro)
23
- detect_and_set_project_scope
24
- content_service = Dradis::Pro::Plugins::ContentService.new(plugin: Dradis::Plugins::Nessus)
25
- else
26
- content_service = Dradis::Plugins::ContentService.new(plugin: Dradis::Plugins::Nessus)
27
- end
28
-
29
- importer = Dradis::Plugins::Nessus::Importer.new(
30
- logger: logger,
31
- content_service: content_service,
32
- template_service: template_service
33
- )
34
-
18
+ detect_and_set_project_scope
19
+ importer = Dradis::Plugins::Nessus::Importer.new(logger: logger)
35
20
  importer.import(file: file_path)
36
21
 
37
22
  logger.close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-nessus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.6.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: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '3.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '3.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -104,6 +104,7 @@ extra_rdoc_files: []
104
104
  files:
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
+ - CHANGELOG.md
107
108
  - CONTRIBUTING.md
108
109
  - Gemfile
109
110
  - LICENSE
@@ -156,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
157
  version: '0'
157
158
  requirements: []
158
159
  rubyforge_project:
159
- rubygems_version: 2.2.3
160
+ rubygems_version: 2.4.5
160
161
  signing_key:
161
162
  specification_version: 4
162
163
  summary: Nessus upload add-on for the Dradis Framework.