risu 1.7.9 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/LICENSE +1 -1
- data/README.markdown +16 -8
- data/Rakefile +12 -3
- data/bin/risu +2 -2
- data/docs/NEWS.markdown +32 -9
- data/lib/risu.rb +2 -2
- data/lib/risu/base.rb +1 -1
- data/lib/risu/base/graph_template_helper.rb +20 -26
- data/lib/risu/base/host_template_helper.rb +17 -23
- data/lib/risu/base/malware_template_helper.rb +18 -24
- data/lib/risu/base/post_process_base.rb +97 -71
- data/lib/risu/base/post_process_manager.rb +3 -3
- data/lib/risu/base/scan_helper.rb +17 -23
- data/lib/risu/base/schema.rb +2 -2
- data/lib/risu/base/shares_template_helper.rb +18 -24
- data/lib/risu/base/template_base.rb +1 -1
- data/lib/risu/base/template_helper.rb +20 -26
- data/lib/risu/base/template_manager.rb +5 -5
- data/lib/risu/base/templater.rb +3 -5
- data/lib/risu/cli.rb +1 -1
- data/lib/risu/cli/application.rb +26 -5
- data/lib/risu/cli/banner.rb +1 -1
- data/lib/risu/exceptions.rb +1 -1
- data/lib/risu/exceptions/invaliddocument.rb +1 -1
- data/lib/risu/graphs.rb +1 -1
- data/lib/risu/graphs/top_vuln_graph.rb +1 -1
- data/lib/risu/graphs/windows_os_graph.rb +1 -1
- data/lib/risu/models.rb +1 -1
- data/lib/risu/models/attachment.rb +1 -1
- data/lib/risu/models/familyselection.rb +1 -1
- data/lib/risu/models/host.rb +13 -13
- data/lib/risu/models/hostproperty.rb +1 -1
- data/lib/risu/models/individualpluginselection.rb +1 -1
- data/lib/risu/models/item.rb +7 -7
- data/lib/risu/models/patch.rb +1 -1
- data/lib/risu/models/plugin.rb +1 -1
- data/lib/risu/models/pluginspreference.rb +1 -1
- data/lib/risu/models/policy.rb +1 -1
- data/lib/risu/models/reference.rb +1 -1
- data/lib/risu/models/report.rb +2 -2
- data/lib/risu/models/serverpreference.rb +1 -1
- data/lib/risu/models/servicedescription.rb +1 -1
- data/lib/risu/models/version.rb +1 -1
- data/lib/risu/parsers.rb +1 -1
- data/lib/risu/parsers/nessus/nessus_document.rb +1 -1
- data/lib/risu/parsers/nessus/nessus_sax_listener.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/7zip.rb +46 -0
- data/lib/risu/parsers/nessus/postprocess/adobe_acrobat.rb +8 -1
- data/lib/risu/parsers/nessus/postprocess/adobe_air.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/adobe_reader.rb +5 -3
- data/lib/risu/parsers/nessus/postprocess/apache.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/apache_tomcat.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/apple_itunes.rb +2 -1
- data/lib/risu/parsers/nessus/postprocess/apple_quicktime.rb +26 -3
- data/lib/risu/parsers/nessus/postprocess/blackberry_enterprise_server.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/ca_brightstor_arcserve.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/cisco_anyconnect.rb +5 -1
- data/lib/risu/parsers/nessus/postprocess/cisco_ios.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/core_ftp.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/db2.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/downgrade_plugins.rb +3 -2
- data/lib/risu/parsers/nessus/postprocess/filezilla.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/firefox.rb +3 -1
- data/lib/risu/parsers/nessus/postprocess/flash_player.rb +29 -26
- data/lib/risu/parsers/nessus/postprocess/flexnet.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/foxit_phantom_pdf.rb +46 -0
- data/lib/risu/parsers/nessus/postprocess/foxit_reader.rb +11 -8
- data/lib/risu/parsers/nessus/postprocess/google_chrome.rb +11 -1
- data/lib/risu/parsers/nessus/postprocess/hp_system_mgt_homepage.rb +2 -1
- data/lib/risu/parsers/nessus/postprocess/irfanview.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/java.rb +3 -1
- data/lib/risu/parsers/nessus/postprocess/libreoffice.rb +3 -2
- data/lib/risu/parsers/nessus/postprocess/openoffice.rb +3 -1
- data/lib/risu/parsers/nessus/postprocess/openssh.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/openssl.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/oracle_database.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/php.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/post_process.rb +2 -2
- data/lib/risu/parsers/nessus/postprocess/real_player.rb +53 -0
- data/lib/risu/parsers/nessus/postprocess/risk_score.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/root_cause.rb +2 -3
- data/lib/risu/parsers/nessus/postprocess/servu.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/shockwave.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/sigplus_pro.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/skype.rb +46 -0
- data/lib/risu/parsers/nessus/postprocess/symantec_endpoint.rb +52 -0
- data/lib/risu/parsers/nessus/postprocess/symantec_pcanywhere.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/timbuktu.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/vlc.rb +12 -9
- data/lib/risu/parsers/nessus/postprocess/vmware_esxi.rb +9 -2
- data/lib/risu/parsers/nessus/postprocess/vmware_player.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/vmware_vcenter.rb +2 -2
- data/lib/risu/parsers/nessus/postprocess/vmware_vsphere_client.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/windows.rb +751 -705
- data/lib/risu/parsers/nessus/postprocess/winscp.rb +1 -1
- data/lib/risu/parsers/nessus/postprocess/wireshark.rb +2 -1
- data/lib/risu/parsers/nexpose/nexpose_document.rb +1 -1
- data/lib/risu/parsers/nexpose/simple_nexpose.rb +1 -1
- data/lib/risu/renderers.rb +1 -1
- data/lib/risu/renderers/csvrenderer.rb +3 -3
- data/lib/risu/renderers/nilrenderer.rb +1 -1
- data/lib/risu/renderers/pdfrenderer.rb +4 -5
- data/lib/risu/template_helpers.rb +1 -1
- data/lib/risu/templates/assets.rb +3 -3
- data/lib/risu/templates/authentication_summary.rb +34 -5
- data/lib/risu/templates/cover_sheet.rb +3 -6
- data/lib/risu/templates/exec_summary.rb +12 -4
- data/lib/risu/templates/executive_summary_detailed.rb +3 -3
- data/lib/risu/templates/exploitablity_summary.rb +3 -3
- data/lib/risu/templates/failed_audits.rb +20 -26
- data/lib/risu/templates/finding_statistics.rb +3 -3
- data/lib/risu/templates/findings_host.rb +3 -3
- data/lib/risu/templates/findings_summary.rb +5 -5
- data/lib/risu/templates/findings_summary_with_pluginid.rb +5 -5
- data/lib/risu/templates/graphs.rb +3 -3
- data/lib/risu/templates/host_findings_csv.rb +3 -3
- data/lib/risu/templates/host_summary.rb +3 -3
- data/lib/risu/templates/malicious_process_detection.rb +3 -3
- data/lib/risu/templates/missing_root_causes.rb +3 -3
- data/lib/risu/templates/ms_patch_summary.rb +3 -3
- data/lib/risu/templates/ms_update_summary.rb +3 -3
- data/lib/risu/templates/ms_wsus_findings.rb +19 -26
- data/lib/risu/templates/notable.rb +3 -3
- data/lib/risu/templates/notable_detailed.rb +3 -3
- data/lib/risu/templates/pci_compliance.rb +3 -3
- data/lib/risu/templates/stig_findings_summary.rb +3 -3
- data/lib/risu/templates/talking_points.rb +5 -31
- data/lib/risu/templates/technical_findings.rb +3 -3
- data/lib/risu/templates/template.rb +3 -3
- data/lib/risu/templates/top_25.rb +3 -3
- data/lib/risu/version.rb +6 -5
- data/risu.gemspec +9 -7
- metadata +49 -20
- metadata.gz.sig +2 -0
- data/Gemfile.lock +0 -148
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -26,7 +26,7 @@ module Risu
|
|
26
26
|
|
27
27
|
#
|
28
28
|
#
|
29
|
-
def initialize
|
29
|
+
def initialize
|
30
30
|
@template_info =
|
31
31
|
{
|
32
32
|
:name => "findings_summary_with_pluginid",
|
@@ -39,7 +39,7 @@ module Risu
|
|
39
39
|
|
40
40
|
# TODO doc
|
41
41
|
#
|
42
|
-
def print_risk_title
|
42
|
+
def print_risk_title text, color
|
43
43
|
@output.font_size(20) do
|
44
44
|
@output.fill_color color.gsub('#', '')
|
45
45
|
@output.text text, :style => :bold
|
@@ -49,7 +49,7 @@ module Risu
|
|
49
49
|
|
50
50
|
# TODO doc
|
51
51
|
#
|
52
|
-
def print_risk_summary_with_plugin_id
|
52
|
+
def print_risk_summary_with_plugin_id risks, text, color
|
53
53
|
print_risk_title(text, color) if risks.length != 0
|
54
54
|
|
55
55
|
risks.each do |item|
|
@@ -62,7 +62,7 @@ module Risu
|
|
62
62
|
|
63
63
|
# TODO doc
|
64
64
|
#
|
65
|
-
def render
|
65
|
+
def render output
|
66
66
|
text Report.classification.upcase, :align => :center
|
67
67
|
text "\n"
|
68
68
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -26,7 +26,7 @@ module Risu
|
|
26
26
|
|
27
27
|
#
|
28
28
|
#
|
29
|
-
def initialize
|
29
|
+
def initialize
|
30
30
|
@template_info =
|
31
31
|
{
|
32
32
|
:name => "graphs",
|
@@ -40,7 +40,7 @@ module Risu
|
|
40
40
|
|
41
41
|
#
|
42
42
|
#
|
43
|
-
def render
|
43
|
+
def render output
|
44
44
|
output.text Report.classification.upcase, :align => :center
|
45
45
|
output.text "\n"
|
46
46
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
|
26
26
|
#
|
27
27
|
#
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "host_findings_csv",
|
@@ -61,7 +61,7 @@ module Risu
|
|
61
61
|
|
62
62
|
# TODO doc
|
63
63
|
#
|
64
|
-
def render
|
64
|
+
def render output
|
65
65
|
@output.text "IP Address, FQDN, Netbios Name, Finding, Risk Factor, CVSS Base Score, Solution"
|
66
66
|
csv Plugin.critical_risks.order(cvss_base_score: :desc)
|
67
67
|
csv Plugin.high_risks.order(cvss_base_score: :desc)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
27
|
#
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "host_summary",
|
@@ -38,7 +38,7 @@ module Risu
|
|
38
38
|
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def render
|
41
|
+
def render output
|
42
42
|
@output.text Report.classification.upcase, :align => :center
|
43
43
|
@output.text "\n"
|
44
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -24,7 +24,7 @@ module Risu
|
|
24
24
|
class MaliciousProcessDetection < Risu::Base::TemplateBase
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
|
-
def initialize
|
27
|
+
def initialize
|
28
28
|
@template_info =
|
29
29
|
{
|
30
30
|
:name => "malicious_process_detection",
|
@@ -35,7 +35,7 @@ module Risu
|
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
-
def render
|
38
|
+
def render output
|
39
39
|
text Report.classification.upcase, :align => :center
|
40
40
|
text "\n"
|
41
41
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
|
26
26
|
#
|
27
27
|
#
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "missing_root_causes",
|
@@ -38,7 +38,7 @@ module Risu
|
|
38
38
|
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def render
|
41
|
+
def render output
|
42
42
|
output.text Report.classification.upcase, :align => :center
|
43
43
|
output.text "\n"
|
44
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -24,7 +24,7 @@ module Risu
|
|
24
24
|
class MSPatchSummary < Risu::Base::TemplateBase
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
|
-
def initialize
|
27
|
+
def initialize
|
28
28
|
@template_info =
|
29
29
|
{
|
30
30
|
:name => "ms_patch_summary",
|
@@ -35,7 +35,7 @@ module Risu
|
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
-
def render
|
38
|
+
def render output
|
39
39
|
text Report.classification.upcase, :align => :center
|
40
40
|
text "\n"
|
41
41
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
|
26
26
|
#
|
27
27
|
#
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "ms_update_summary",
|
@@ -38,7 +38,7 @@ module Risu
|
|
38
38
|
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def render
|
41
|
+
def render output
|
42
42
|
output.text Report.classification.upcase, :align => :center
|
43
43
|
output.text "\n"
|
44
44
|
|
@@ -1,28 +1,22 @@
|
|
1
|
-
# Copyright (c) 2010-
|
2
|
-
# All rights reserved.
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
3
2
|
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# may be used to endorse or promote products derived from this software
|
14
|
-
# without specific prior written permission.
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
15
12
|
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
24
|
-
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
25
|
-
# OF THE POSSIBILITY OF SUCH DAMAGE.
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
# THE SOFTWARE.
|
26
20
|
|
27
21
|
module Risu
|
28
22
|
module Templates
|
@@ -30,7 +24,7 @@ module Risu
|
|
30
24
|
|
31
25
|
# Initializes the template loading meta-data
|
32
26
|
#
|
33
|
-
def initialize
|
27
|
+
def initialize
|
34
28
|
@template_info =
|
35
29
|
{
|
36
30
|
:name => "ms_wsus_findings",
|
@@ -43,7 +37,7 @@ module Risu
|
|
43
37
|
|
44
38
|
# Called during the rendering process
|
45
39
|
#
|
46
|
-
def render
|
40
|
+
def render output
|
47
41
|
output.text Report.classification.upcase, :align => :center
|
48
42
|
output.text "\n"
|
49
43
|
|
@@ -97,4 +91,3 @@ module Risu
|
|
97
91
|
end
|
98
92
|
end
|
99
93
|
end
|
100
|
-
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
27
|
#Creates an instance of the [NotableTemplate] class and initializes its meta-data
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "notable",
|
@@ -37,7 +37,7 @@ module Risu
|
|
37
37
|
end
|
38
38
|
|
39
39
|
# Renders a Notable Findings Report
|
40
|
-
def render
|
40
|
+
def render output
|
41
41
|
report_classification
|
42
42
|
|
43
43
|
report_title Report.title
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
27
|
#Creates an instance of the [NotableTemplateDetailed] class and initializes its meta-data
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "notable_detailed",
|
@@ -38,7 +38,7 @@ module Risu
|
|
38
38
|
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def render
|
41
|
+
def render output
|
42
42
|
@output.text Report.classification.upcase, :align => :center
|
43
43
|
@output.text "\n"
|
44
44
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -24,7 +24,7 @@ module Risu
|
|
24
24
|
class PCICompliance < Risu::Base::TemplateBase
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
|
-
def initialize
|
27
|
+
def initialize
|
28
28
|
@template_info =
|
29
29
|
{
|
30
30
|
:name => "pci_compliance",
|
@@ -35,7 +35,7 @@ module Risu
|
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
-
def render
|
38
|
+
def render output
|
39
39
|
text Report.classification.upcase, :align => :center
|
40
40
|
text "\n"
|
41
41
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -24,7 +24,7 @@ module Risu
|
|
24
24
|
class StigFindingsSummaryTemplate < Risu::Base::TemplateBase
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
|
-
def initialize
|
27
|
+
def initialize
|
28
28
|
@template_info =
|
29
29
|
{
|
30
30
|
:name => "stig_findings_summary",
|
@@ -116,7 +116,7 @@ module Risu
|
|
116
116
|
ref_string.chomp!(", ")
|
117
117
|
end
|
118
118
|
|
119
|
-
def render
|
119
|
+
def render output
|
120
120
|
header
|
121
121
|
|
122
122
|
if Item.stig_findings("I").count > 0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -25,7 +25,7 @@ module Risu
|
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
27
|
# Initializes the Talking Points Report
|
28
|
-
def initialize
|
28
|
+
def initialize
|
29
29
|
@template_info =
|
30
30
|
{
|
31
31
|
:name => "talking_points",
|
@@ -37,7 +37,7 @@ module Risu
|
|
37
37
|
end
|
38
38
|
|
39
39
|
# Renders the Talking Points Report
|
40
|
-
def render
|
40
|
+
def render output
|
41
41
|
report_classification
|
42
42
|
|
43
43
|
report_title Report.title
|
@@ -77,39 +77,13 @@ module Risu
|
|
77
77
|
end
|
78
78
|
|
79
79
|
|
80
|
-
# # Copyright (c) 2010-2016 Arxopia LLC.
|
81
|
-
# # All rights reserved.
|
82
|
-
# #
|
83
|
-
# # Redistribution and use in source and binary forms, with or without
|
84
|
-
# # modification, are permitted provided that the following conditions are met:
|
85
|
-
# #
|
86
|
-
# # * Redistributions of source code must retain the above copyright
|
87
|
-
# # notice, this list of conditions and the following disclaimer.
|
88
|
-
# # * Redistributions in binary form must reproduce the above copyright
|
89
|
-
# # notice, this list of conditions and the following disclaimer in the
|
90
|
-
# # documentation and/or other materials provided with the distribution.
|
91
|
-
# # * Neither the name of the Arxopia LLC nor the names of its contributors
|
92
|
-
# # may be used to endorse or promote products derived from this software
|
93
|
-
# # without specific prior written permission.
|
94
|
-
# #
|
95
|
-
# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
96
|
-
# # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
97
|
-
# # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
98
|
-
# # DISCLAIMED. IN NO EVENT SHALL ARXOPIA LLC BE LIABLE FOR ANY DIRECT, INDIRECT,
|
99
|
-
# # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
100
|
-
# # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
101
|
-
# # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
102
|
-
# # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
103
|
-
# # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
104
|
-
# # OF THE POSSIBILITY OF SUCH DAMAGE.
|
105
|
-
|
106
80
|
# module Risu
|
107
81
|
# module Templates
|
108
82
|
# class TalkingPoints < Risu::Base::TemplateBase
|
109
83
|
# include TemplateHelper
|
110
84
|
|
111
85
|
# # Initializes the Talking Points Report
|
112
|
-
# def initialize
|
86
|
+
# def initialize
|
113
87
|
# @template_info =
|
114
88
|
# {
|
115
89
|
# :name => "talking_points",
|
@@ -120,7 +94,7 @@ end
|
|
120
94
|
# end
|
121
95
|
|
122
96
|
# # Renders the Talking Points Report
|
123
|
-
# def render
|
97
|
+
# def render output
|
124
98
|
# report_classification
|
125
99
|
|
126
100
|
# report_title Report.title
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2010-
|
1
|
+
# Copyright (c) 2010-2017 Jacob Hammack.
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -24,7 +24,7 @@ module Risu
|
|
24
24
|
class TechnicalFindingsTemplate < Risu::Base::TemplateBase
|
25
25
|
include TemplateHelper
|
26
26
|
|
27
|
-
def initialize
|
27
|
+
def initialize
|
28
28
|
@template_info =
|
29
29
|
{
|
30
30
|
:name => "technical_findings",
|
@@ -83,7 +83,7 @@ module Risu
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
def render
|
86
|
+
def render output
|
87
87
|
text Report.classification.upcase, :align => :center
|
88
88
|
text "\n"
|
89
89
|
|