dradis-nexpose 4.2.0 → 4.5.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
  SHA256:
3
- metadata.gz: 9104388051c4619bfa547e1dcf8c4a7694ddf40f280ecd835efbd207e7af45c0
4
- data.tar.gz: a46345dbb5776757b6a213dbba8c31eabef4e73c1800095710f0cfa18f86221e
3
+ metadata.gz: df1e0df6c4c666522efb12d17af316a257fefda269a3eb1e0a4d850a5cfb3696
4
+ data.tar.gz: 430ec0cc77a8a27a6d8db449a82fd4eec76f734e9794d8adef0daaf07268c615
5
5
  SHA512:
6
- metadata.gz: eb9dfec8eadb11c646c838566424b3f240f53e8f52fff3433bc85efae8d23fc7cef12fdd336d04554369b95111c5b4e1f37bcf83f8136edf68d459505534f801
7
- data.tar.gz: 4f905810edd2168aba965ad15f14516c93bdd3ae6f418e2eed03af41c53c998e56a5607eb86a19c740cb0dfc84ddd92c409bc92c6a4467e03fd956c327c963ff
6
+ metadata.gz: 2bcfe07a47231df81ebd5fe4ae42e0f0c8580da17f415d0c4d0bab29678d876f4657aef0fcce088fe877c29d5b09649b04ccc665e7b2e275a822f477180f302e
7
+ data.tar.gz: e3b5c474cc26206f6d0e369d78b5d43bdee40ba7857177067161fffaf54d292a199a18fc58e18ae7428dadbd953f569b2dfcba9c8952a05b62e9e2a9b65ece35
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ v4.5.0 (August 2022)
2
+ - No changes
3
+
4
+ v4.4.0 (June 2022)
5
+ - Registers template mappings locally
6
+
7
+ v4.3.0 (April 2022)
8
+ - Update HTML tag cleanup to cover `UnorderedList` tags without spaces and double `Paragraph preformat` tags
9
+
1
10
  v4.2.0 (February 2022)
2
11
  - Pull the Hostname Node property from the `name` rather than `site-name` tag
3
12
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 2
11
+ MINOR = 5
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -7,6 +7,10 @@ module Dradis::Plugins::Nexpose
7
7
  include Formats::Full
8
8
  include Formats::Simple
9
9
 
10
+ def self.templates
11
+ { evidence: 'full_evidence', issue: 'full_vulnerability' }
12
+ end
13
+
10
14
  # The framework will call this function if the user selects this plugin from
11
15
  # the dropdown list and uploads a file.
12
16
  # @returns true if the operation was successful, false otherwise
@@ -31,4 +35,4 @@ module Dradis::Plugins::Nexpose
31
35
  end
32
36
  end
33
37
  end
34
- end
38
+ end
@@ -112,10 +112,11 @@ 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){|m| "\nbc. #{ $2 }\n\n"}
115
116
  result.gsub!(/<Paragraph preformat=\"true\">(.*?)<\/Paragraph>/mi){|m| "\nbc. #{ $1 }\n\n"}
116
117
  result.gsub!(/<Paragraph>(.*?)<\/Paragraph>/m){|m| "#{ $1 }\n"}
117
118
  result.gsub!(/<Paragraph>|<\/Paragraph>/, '')
118
- result.gsub!(/<UnorderedList (.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"}
119
+ result.gsub!(/<UnorderedList(.*?)>(.*?)<\/UnorderedList>/m){|m| "#{ $2 }"}
119
120
  result.gsub!(/<OrderedList(.*?)>(.*?)<\/OrderedList>/m){|m| "#{ $2 }"}
120
121
  result.gsub!(/<ListItem>|<\/ListItem>/, '')
121
122
  result.gsub!(/ /, '')
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.2.0
4
+ version: 4.5.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: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.1.4
175
+ rubygems_version: 3.2.28
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Nexpose add-on for the Dradis Framework.