prenus 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +8 -2
  2. data/bin/prenus +1 -1
  3. data/lib/output/htmlout.rb +4 -4
  4. metadata +2 -2
@@ -11,14 +11,14 @@ This is a quickly hacked together Ruby script that can consume version 2 nessus
11
11
  == Installation
12
12
 
13
13
  * Install the Prenus gem:
14
- * # gem install prenus
14
+ gem install prenus
15
15
 
16
16
  == Usage
17
17
 
18
18
  * Download the .nessus files from Nessus you want to Prettify (make sure they're version 2 files, not version 1)
19
19
  * Cd into the folder where the files are
20
20
  * Run Prenus:
21
- * # prenus -t html -o tmp *.nessus
21
+ prenus -t html -o tmp *.nessus
22
22
  * Happy Happy Joy Joy
23
23
 
24
24
  == Command Line Options
@@ -30,6 +30,7 @@ This is a quickly hacked together Ruby script that can consume version 2 nessus
30
30
  -c, --config FILE Load a YAML formatted config file
31
31
  -o, --ouput DIR/FILE Defaults to '.'
32
32
  -t, --type TYPE Select: xls, html, glow, circos or host. Defaults to html
33
+ --header-file FILE Optional HTML FILE to be inserted into the top of the index.html file when using HTML output
33
34
  -s, --severity LEVEL Defaults to 3 for High -> Critical. For large datasets 4 is saner
34
35
  -f, --filter FILTER Only show these Nessus IDs. For multiple separate with commas 12345,23232,21212
35
36
  -d, --debug Displays stats and other debugging
@@ -70,6 +71,10 @@ This option doesn't apply to the html output, but, for all other output types, t
70
71
 
71
72
  If flagged, then we'll output some raw data.
72
73
 
74
+ === Header File
75
+
76
+ If you want to add some optional branding to top of the html files (when using HTML output type). Create a file with some HTML content, and then point this option to the file. Voila. BRAAANDING
77
+
73
78
  == Afterglow - what?
74
79
 
75
80
  So, you're interested in creating some pretty Afterglow/Graphviz files to see relationships between Nessus IDs and Hosts? Look no further!
@@ -96,6 +101,7 @@ This will only work if you're in the Circos Tools tableviewer folder (in my inst
96
101
  This will dump the png into the img/ folder.
97
102
 
98
103
  == Changes
104
+ * Version 0.0.12 - The --header-file option now applies to all HTML files
99
105
  * Version 0.0.11 - A bunch of cosmetic changes. PLUS, a new optional command line flag to add HTML content to the top of the index.html file.
100
106
  * Version 0.0.10 - Added new pie graph to HTML output, and updated pie graph generater to allow for setting of colours
101
107
  * Version 0.0.9 - Added Nokogiri gem dep
data/bin/prenus CHANGED
@@ -19,7 +19,7 @@ require 'lib/input'
19
19
  require 'lib/gemcache/ruby-nessus/ruby-nessus'
20
20
 
21
21
  #Versioning and .. those things
22
- $verstring = "Version 0.0.11 - 7th of October, 2013 - Created by Christian \"xntrik\" Frichot.\n\n"
22
+ $verstring = "Version 0.0.12 - 8th of October, 2013 - Created by Christian \"xntrik\" Frichot.\n\n"
23
23
  $verstring += "Copyright 2013 Christian Frichot\n\n"
24
24
  $verstring += "See LICENSE.txt for more details\n"
25
25
 
@@ -131,10 +131,6 @@ class Htmlout < Baseout
131
131
 
132
132
  close_html_header(f)
133
133
 
134
- unless @options[:indexfile].nil?
135
- IO.copy_stream(File.open(@options[:indexfile]),f)
136
- end
137
-
138
134
  body = '<div style="width: 800px; margin-left: auto; margin-right: auto; padding-top: 30px;">'
139
135
  body += '<div id="pie_graph" style="min-width: 375px; height: 375px; margin: 0 auto; float: left"></div>'
140
136
  body += '<div id="pie_graph2" style="min-width: 375px; height: 375px; margin: 0 auto; float: left"></div>'
@@ -519,6 +515,10 @@ class Htmlout < Baseout
519
515
  <body>
520
516
  <script src="highcharts.js"></script>
521
517
  eos
518
+
519
+ unless @options[:indexfile].nil?
520
+ IO.copy_stream(File.open(@options[:indexfile]),fp)
521
+ end
522
522
  end
523
523
 
524
524
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prenus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-07 00:00:00.000000000 Z
12
+ date: 2013-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow