dradis-nexpose 4.8.0 → 4.10.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 +7 -0
- data/dradis-nexpose.gemspec +3 -5
- data/lib/dradis/plugins/nexpose/gem_version.rb +1 -1
- data/lib/nexpose/vulnerability.rb +9 -3
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b11c2f3efeb75d866e704afc1654be7901c80233d4c25ecf3796170c6217dd12
|
4
|
+
data.tar.gz: 18e1f93496c8badc29df962c48a7285d56ad5a5b5d3e3faa366f63e001081178
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bafe0d744722c9dfb00170857fea3bad6c5f8cd2fcc571867ac0bfb86639f0dc700ea58134ab6f05556aa750dd51072b506a411452f4c7b796955b331916b57f
|
7
|
+
data.tar.gz: 3dc33c2ba56abe1ba7ce2d715cb63826b51d140fa702be9543078a803b6a5a0665b582a695a7e24c933957e3e413b27e1cc6b8a2170b392ba8e44bc89231eeaa
|
data/CHANGELOG.md
CHANGED
data/dradis-nexpose.gemspec
CHANGED
@@ -2,10 +2,9 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
2
2
|
require 'dradis/plugins/nexpose/version'
|
3
3
|
version = Dradis::Plugins::Nexpose::VERSION::STRING
|
4
4
|
|
5
|
-
|
6
5
|
# Describe your gem and declare its dependencies:
|
7
6
|
Gem::Specification.new do |spec|
|
8
|
-
spec.platform
|
7
|
+
spec.platform = Gem::Platform::RUBY
|
9
8
|
spec.name = 'dradis-nexpose'
|
10
9
|
spec.version = version
|
11
10
|
spec.summary = 'Nexpose add-on for the Dradis Framework.'
|
@@ -14,11 +13,10 @@ Gem::Specification.new do |spec|
|
|
14
13
|
spec.license = 'GPL-2'
|
15
14
|
|
16
15
|
spec.authors = ['Daniel Martin']
|
17
|
-
spec.
|
18
|
-
spec.homepage = 'http://dradisframework.org'
|
16
|
+
spec.homepage = 'https://dradis.com/integrations/nexpose.html'
|
19
17
|
|
20
18
|
spec.files = `git ls-files`.split($\)
|
21
|
-
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
22
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
21
|
|
24
22
|
# By not including Rails as a dependency, we can use the gem with different
|
@@ -8,7 +8,7 @@ module Nexpose
|
|
8
8
|
# Instead of providing separate methods for each supported property we rely
|
9
9
|
# on Ruby's #method_missing to do most of the work.
|
10
10
|
class Vulnerability
|
11
|
-
SSL_CIPHER_VULN_IDS = %w[ssl-anon-ciphers ssl-des-ciphers ssl-3des-ciphers ssl-export-ciphers ssl-null-ciphers ssl-only-weak-ciphers ssl-static-key-ciphers rc4-cve-2013-2566 ssl-cve-2016-2183-sweet32 tls-dhe-export-ciphers-cve-2015-4000].freeze
|
11
|
+
SSL_CIPHER_VULN_IDS = %w[ssl-anon-ciphers ssl-des-ciphers ssl-3des-ciphers ssl-export-ciphers ssl-null-ciphers ssl-only-weak-ciphers ssl-static-key-ciphers ssl-weak-message-authentication-code-algorithms rc4-cve-2013-2566 ssl-cve-2016-2183-sweet32 tls-dhe-export-ciphers-cve-2015-4000].freeze
|
12
12
|
|
13
13
|
# Accepts an XML node from Nokogiri::XML.
|
14
14
|
def initialize(xml_node)
|
@@ -112,8 +112,14 @@ module Nexpose
|
|
112
112
|
def cleanup_html(source)
|
113
113
|
result = source.to_s
|
114
114
|
result.gsub!(/<ContainerBlockElement>(.*?)<\/ContainerBlockElement>/m){|m| "#{ $1 }"}
|
115
|
-
result.gsub!(/<Paragraph preformat=\"true\">(\s*)<Paragraph preformat=\"true\">(.*?)<\/Paragraph>(\s*)<\/Paragraph>/mi)
|
116
|
-
|
115
|
+
result.gsub!(/<Paragraph preformat=\"true\">(\s*)<Paragraph preformat=\"true\">(.*?)<\/Paragraph>(\s*)<\/Paragraph>/mi) do
|
116
|
+
text = $2
|
117
|
+
text[/\n/] ? "\nbc.. #{ text }\n\np. " : "@#{text}@"
|
118
|
+
end
|
119
|
+
result.gsub!(/<Paragraph preformat=\"true\">(.*?)<\/Paragraph>/mi) do
|
120
|
+
text = $1
|
121
|
+
text[/\n/] ? "\nbc.. #{ text }\n\np. " : "@#{text}@"
|
122
|
+
end
|
117
123
|
result.gsub!(/<Paragraph>(.*?)<\/Paragraph>/m){|m| "#{ $1 }\n"}
|
118
124
|
result.gsub!(/<Paragraph>|<\/Paragraph>/, '')
|
119
125
|
result.gsub!(/<UnorderedList(.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"}
|
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.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: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -96,8 +96,7 @@ dependencies:
|
|
96
96
|
version: 0.5.2
|
97
97
|
description: This add-on allows you to upload and parse output produced from Nexpose
|
98
98
|
scanner into Dradis.
|
99
|
-
email:
|
100
|
-
- etd@nomejortu.com
|
99
|
+
email:
|
101
100
|
executables: []
|
102
101
|
extensions: []
|
103
102
|
extra_rdoc_files: []
|
@@ -153,7 +152,7 @@ files:
|
|
153
152
|
- templates/simple_port.fields
|
154
153
|
- templates/simple_port.sample
|
155
154
|
- templates/simple_port.template
|
156
|
-
homepage:
|
155
|
+
homepage: https://dradis.com/integrations/nexpose.html
|
157
156
|
licenses:
|
158
157
|
- GPL-2
|
159
158
|
metadata: {}
|