05
Feb
2011

NessusDB v1.2 on the way

NessusDB v1.2 is going to be released soon; this release will be a major release. I am updating all of the ActiveRecord2 code to ActiveRecord3, which will break almost every template. If those changes did not break the templates, I moved all of the queries off the Findings class and changed them into named scope methods off each respective ActiveRecord model. Some of the changes are like the following:


#Find the number of Risks
findings.number_of_risks #Old method

Item.risks.count #New Method

#Find the number of hosts
findings.number_of_hosts #Old Method

Host.count #New Method

#Since everything is a ActiveRecord3 Object you can do cool stuff like
Item.risks.where(:severity => 3) #Returns all critical findings

#This is also alias'd to 
Item.critical_risks

As you can see, the new API is much cleaner and more ruby/rails like. This will be fundamental for the next stage of NessusDB, a rails based web interface. So stayed tuned I plan to release v1.2 February 11, unless something major comes up.