dradis-nessus 4.6.0 → 4.8.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 +6 -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: 0c039e13d688f7d7548a486d3b1cf8c0fde79e93011237b350f82480beae2882
|
4
|
+
data.tar.gz: d3662405266ace5114d0eec7f73404992253151c4635743d089e86268e95d07f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e2d9fb92296c187743ee3656fd0a5f2bad64041c149f1d1f4109fa1fe04d5b872fffde16298161cc96fc2f28f98d3a2962c3867efdf3882782f25d4a16581a4
|
7
|
+
data.tar.gz: c5ad08f7f9495cc5697bf9c8a3517521be1b1329cbe392d614a99fa67f7868dadb209bb4b18aae35e0f42091acff0a3a227ce3505a90aee7c06faafd489972fd
|
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.8.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-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|