Comments (10)
The template are pure Prawn. http://prawn.majesticseacreature.com/, I will take a look at this more tonight when I get home.
from risu.
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.
Yes, two columns. I will try the table and look at the prawn docs.
from risu.
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.
Do you mind if I include this template in the next release?
from risu.
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.
I don't have a NeXpose box setup, If you have a sample one I will try to recreate it.
from risu.
You can find an example here: https://netmon1.getmns.com/nexpose-exec.pdf
from risu.
Thank you for the pdf. I should be able to generate something like that, I will see what I can do.
from risu.
Added to v1.3. Should be available then or pull from source
from risu.
Related Issues (20)
- Unable to read font error HOT 2
- Data too long for column 'plugin_name' HOT 1
- SQL errors from most reports HOT 2
- SQL error when multiple OSs names are returned by Nessus for an host HOT 3
- VERY slow load speed HOT 16
- New XML elements HOT 3
- Trouble with Execute Summary template HOT 9
- risu's graphs template fails to generate, sqllite error HOT 3
- problem with risu in kali HOT 5
- New HostProperties attribute: UnsupportedProduct HOT 1
- Changing Risk Finding Colors HOT 32
- risu not installed in home directory HOT 2
- Risu won't stay installed on Kali HOT 13
- New XML element detected HOT 4
- New XML element: potential_vulnerability HOT 3
- New XML element. HOT 5
- Add support for attribute 'agent' HOT 7
- Support for multiple files and user-specified templates HOT 4
- Boolean fields stored as strings
- High instead of Critical items selected in findings_host.rb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from risu.