dradis-nessus 4.5.0 → 4.7.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: aa2359c0ca164704f1ba72a6fefcc1bb1babac5df8d0ee699569690eb1a083b5
4
- data.tar.gz: '0528880a2f3568c684297fd29cf503477e4dc7f78b5f6ad911c779903797a9cc'
3
+ metadata.gz: a3e1a48ec4d494ff441d2bdc36715921974e4a0a6829758c0d51cc38c0cdd855
4
+ data.tar.gz: a372370e2ec2079c541476b9689a524abaa6d661d5782098943ad667264b4fc3
5
5
  SHA512:
6
- metadata.gz: 75e765d2ec5d463569c67cb64bf5bceeb5569fe46ed6d3687df916836cb3a12c87985c8cbed64157e6adf453bbfcddbea6caca2c88879683f3f5498ea57e3276
7
- data.tar.gz: 6442ee18b61f6cf2765c02c987ccea729a1cd104f5d281f129ecef25ca66441fac7aa4c819be3fad11bbc8bd5835940d13600fdb74b077b4c1348f354c478d39
6
+ metadata.gz: 7ca605cb4e8f5893e757cc7c3a86fcaadc12f75b4621d37537ec90fb2cc5f2a1bc3ae7d69cb19a8dbf219d90ac38a9b0fbc1b2dad709f2eda5708a871f3da87b
7
+ data.tar.gz: b990aba89cf10d2d732db508a318cd17d1b5071d220ffe491471c5ab6a9250d272a167e6ce3c181c4505735ae31757be22dbdf414e858a30f342581605b40d06
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.7.0 (February 2023)
2
+ - Clean up code tags in description fields
3
+
4
+ v4.6.0 (November 2022)
5
+ - No changes
6
+
1
7
  v4.5.0 (August 2022)
2
8
  - No changes
3
9
 
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 5
11
+ MINOR = 7
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -87,7 +87,8 @@ module Nessus
87
87
  # exploit_framework_metasploit, exploit_framework_core
88
88
  tag = @xml.xpath("./#{method_name}").first
89
89
  if tag
90
- return tag.text
90
+ text = tag.text
91
+ return tags_with_html_content.include?(method) ? cleanup_html(text) : text
91
92
  end
92
93
 
93
94
  # then the custom XML tags (cm: namespace)
@@ -117,5 +118,18 @@ module Nessus
117
118
  return nil
118
119
  end
119
120
  end
121
+
122
+ private
123
+
124
+ def cleanup_html(source)
125
+ result = source.dup
126
+ result.gsub!(/<code>(.*?)<\/code>/) { "\n\nbc. #{$1}\n\np. \n" }
127
+ result
128
+ end
129
+
130
+ def tags_with_html_content
131
+ [:description]
132
+ end
133
+
120
134
  end
121
- end
135
+ end
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: 4.5.0
4
+ version: 4.7.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-08-22 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.2.28
162
+ rubygems_version: 3.1.4
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Nessus upload add-on for the Dradis Framework.