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

ruby errors with new code #11

Closed ebdavison closed 13 years ago

ebdavison commented 13 years ago

I just updated from git and tried to execute nessusdb and am getting the following error:

Error: undefined method where' for #<Class:0xb65436a0> ./bin/../lib/nessusdb/prawn_templater.rb:31:ingenerate' ./bin/../lib/nessusdb/models/report.rb:20:in scan_date' (eval):15:ingenerate' /var/lib/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:in eval' ./bin/../lib/nessusdb/prawn_templater.rb:31:ingenerate' /var/lib/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:in instance_eval' /var/lib/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:ininitialize' /var/lib/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:in new' /var/lib/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:ingenerate' ./bin/../lib/nessusdb/prawn_templater.rb:29:in generate' bin/nessusdb:230:inmain' bin/nessusdb:241

hammackj commented 13 years ago

You rails gems are out of date, You need to upgrade. The best way to do this is to do a gem install nessusdb and it will install all of the gems required and the correct versions.

ebdavison commented 13 years ago

I tried that and got errors. I will try again and let you know the results.

ebdavison commented 13 years ago

ERROR: Error installing nessusdb: i18n requires RubyGems version >= 1.3.5

hammackj commented 13 years ago

Follow this to upgrade your rubygems, http://docs.rubygems.org/read/chapter/3#page14

ebdavison commented 13 years ago

I figured out that I could do 'gem update --system' (prior to seeing your post) to get an update done rather than 'apt-get install rubygems' which did nothing. Now at version 1.5.2 from 1.3.1. I will try to run this 'gem install nessusdb' again now.
Update: the nessusdb install is working and pulling new library versions. Thanks.

hammackj commented 13 years ago

Are you on ubuntu? I really dont recommend using the "apt-get" ruby. I am going to post a video on how to do rvm and nessusdb with ubuntu at some point. Just haven't had time

ebdavison commented 13 years ago

Worked but get errors on execution still.

ebdavison commented 13 years ago

No, I am actually on BackTrack 4.0 which is Debian based.

hammackj commented 13 years ago

What are the errors? I am trying to get a list of native os errors for a faq

hammackj commented 13 years ago

Are you running the version from GIT or the gem?

git = ./bin/nessusdb gem = nessusdb from any path

Try running nessusdb from any directory that should solve the problem

hammackj commented 13 years ago

Are the issues resolved?

hammackj commented 13 years ago

Closed based on the other ticket.