dradis-nessus 4.6.0 → 4.7.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/lib/dradis/plugins/nessus/gem_version.rb +1 -1
- data/lib/nessus/report_item.rb +16 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3e1a48ec4d494ff441d2bdc36715921974e4a0a6829758c0d51cc38c0cdd855
|
|
4
|
+
data.tar.gz: a372370e2ec2079c541476b9689a524abaa6d661d5782098943ad667264b4fc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ca605cb4e8f5893e757cc7c3a86fcaadc12f75b4621d37537ec90fb2cc5f2a1bc3ae7d69cb19a8dbf219d90ac38a9b0fbc1b2dad709f2eda5708a871f3da87b
|
|
7
|
+
data.tar.gz: b990aba89cf10d2d732db508a318cd17d1b5071d220ffe491471c5ab6a9250d272a167e6ce3c181c4505735ae31757be22dbdf414e858a30f342581605b40d06
|
data/CHANGELOG.md
CHANGED
data/lib/nessus/report_item.rb
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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:
|
|
11
|
+
date: 2023-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dradis-plugins
|