hammackj / risu

Risu is Nessus parser, that converts the generated reports into a ActiveRecord database, this allows for easy report generation and vulnerability verification.
http://hammackj.github.io/risu
MIT License
63 stars 20 forks source link

executive summary error #13

Closed ebdavison closed 13 years ago

ebdavison commented 13 years ago

I did try to use the gem install nessusdb and run it from another directory and it works fine. While going through the templates, however, the executive_summary.rb produces the following error:

Error: undefined method number_of_hosts' for #<Class:0xb660fe44> /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:31:ingenerate' (eval):19:in generate' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:ineval' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:31:in generate' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:ininstance_eval' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:in initialize' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:innew' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:in generate' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:29:ingenerate' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/nessusdb:230:in main' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/nessusdb:241 /usr/bin/nessusdb:19:inload' /usr/bin/nessusdb:19

ebdavison commented 13 years ago

I actually fixed this one by changing the findings.number_of_hosts to Host.count. This led to other changes of a similar nature as well as calls to the graphs being changed. This looks like the API changes I noticed in some of the repo source code log updates. I have this one working now again. Noticed that it is still the one that I initially created, not a newly updated one from you.

hammackj commented 13 years ago

It seems you are referencing the 1.1 templates and not the 1.2 templates. Just make sure you are referencing the correct ones.

1.2 doesn't include the exec summary report. That is in 1.3, the 1.3 branch isn't complete yet. With that said the template from 1.3 should work on 1.2's engine. I don't think 1.3 is fully functional at the moment. I replaced the command line interface and have not tested it yet. You should be able to use the templates with 1.2 though. They are the same I just added more.

ebdavison commented 13 years ago

1.3 is working fine. I have taken the exec summary and extended it. I will share back and you can include it if you like once it has gone through more development and edits by my boss.

hammackj commented 13 years ago

Solved in 1.3