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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +5 -0
- data/dradis-nessus.gemspec +1 -1
- data/lib/dradis/plugins/nessus/engine.rb +1 -12
- data/lib/dradis/plugins/nessus/gem_version.rb +1 -1
- data/lib/dradis/plugins/nessus/importer.rb +3 -4
- data/lib/tasks/thorfile.rb +3 -18
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9cc963449349533ff36a39bf7a5338de17af5bdf
|
|
4
|
+
data.tar.gz: 72fdc4c22873c9ce4b2d8718d23f34fdf9ba459f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eea8e61c79488f36a540089d3222cd40044a2bf290fac5f1b58fe651c4dcbef2c341b5d98b61e92d85a3997c1d7eb2faadcd52d8d6d0bfdd940c2927f927600b
|
|
7
|
+
data.tar.gz: 3e76531c1ef2f4df25b1487af2b5ab7d181ecdb870dc7cd8da6e7ac02930a581e4b73e245242726dc353cee5b034632ddd3eff5c08b60824e21d4940a04e5cb8
|
data/CHANGELOG.md
ADDED
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.
|
data/dradis-nessus.gemspec
CHANGED
|
@@ -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.
|
|
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
|
|
@@ -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
|
|
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
|
|
164
|
+
logger.info{ "\t\t => Creating new service: #{protocol}/#{port}" }
|
|
166
165
|
|
|
167
166
|
host_node.set_property(:services, {
|
|
168
167
|
port: port,
|
data/lib/tasks/thorfile.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class NessusTasks < Thor
|
|
2
|
-
include
|
|
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
|
-
|
|
19
|
-
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|