Code Monkey home page Code Monkey logo

Comments (10)

hammackj avatar hammackj commented on May 31, 2024

The template are pure Prawn. http://prawn.majesticseacreature.com/, I will take a look at this more tonight when I get home.

from risu.

abenson avatar abenson commented on May 31, 2024

You mean having two columns? You can create a table, and have them side by side... Otherwise I'm not sure I follow.

from risu.

ebdavison avatar ebdavison commented on May 31, 2024

Yes, two columns. I will try the table and look at the prawn docs.

from risu.

ebdavison avatar ebdavison commented on May 31, 2024

Here is the start of what I have so far for an Executive Summary. I do not see a way to attach a file so I am including it here:

text findings.classification, :align => :center
text "\n"

font_size(22) { text findings.title, :align => :center }
font_size(18) { 
    text "Finding Statistics", :align => :center
    text "\n"
    text "This report was prepared by\n#{findings.author}", :align => :center
}

text "\n\n\n"

text "Scan Date:", :style => :bold
text "#{findings.scan_date}"
text "\n"

text "This report contains the results of a security audit performed on #{findings.scan_date}.\n\n"

text "A total of #{findings.number_of_hosts} hosts were found and scanned for vulnerabities.\n\n"

text "There were #{findings.number_of_risks} found during this scan.  Of these, #{findings.number_of_critical} were critical vulnerabilities, #{findings.number_of_high} were high vulnerabilities, #{findings.number_of_medium} were medium vulnerabilities and #{findings.number_of_low} were low vulnerabilties.\n\n"

text "Scan Statistics", :style => :bold
text "\n"

table([["Number of hosts","Number of risks","Critical Risks", "High Risks", "Medium Risks", "Low Risks"], 
[findings.number_of_hosts, findings.number_of_risks, findings.number_of_critical, findings.number_of_high, findings.number_of_medium, findings.number_of_low]], 
:cell_style => { :padding =>12 }, :width => bounds.width)
text "\n\n\n"

text "Graphs of key finding statistics", :style => :bold
text "\n\n\n"

cury = y
image findings.graph_findings_by_severity(findings), :width => 250, :at => [bounds.left, cury]
image findings.graph_top_vuln_hosts(findings), :width => 250, :at => [bounds.right - 250, cury]
move_down 50
if (y <= 300) 
    start_new_page
end
cury = y
image findings.graph_findings_by_service(findings), :width => 250, :at => [bounds.left, cury]
image findings.graph_other_operating_systems_by_count(findings), :width => 250, :at => [bounds.right - 250, cury]
move_down 50
if (y <= 300) 
    start_new_page
end
cury = y
image findings.graph_windows_operating_systems_by_count(findings), :width => 250, :at => [bounds.left, cury]

from risu.

hammackj avatar hammackj commented on May 31, 2024

Do you mind if I include this template in the next release?

from risu.

ebdavison avatar ebdavison commented on May 31, 2024

Not at all but it definitely needs more polish as this is very rough. Including it would be great.

I will most likely continue to work on this. The standard bar that I am working against, as an example, is the Executive Summary from NeXpose Community as my boss likes that format. Do you have access to this report? I can show it to you as an example if you need one.

from risu.

hammackj avatar hammackj commented on May 31, 2024

I don't have a NeXpose box setup, If you have a sample one I will try to recreate it.

from risu.

ebdavison avatar ebdavison commented on May 31, 2024

You can find an example here: https://netmon1.getmns.com/nexpose-exec.pdf

from risu.

hammackj avatar hammackj commented on May 31, 2024

Thank you for the pdf. I should be able to generate something like that, I will see what I can do.

from risu.

hammackj avatar hammackj commented on May 31, 2024

Added to v1.3. Should be available then or pull from source

from risu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.