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

Start and end time of the scan #18

Closed ebdavison closed 13 years ago

ebdavison commented 13 years ago

How do I pull the start time, end time and length of scan for including in a template?

ebdavison commented 13 years ago

Maybe I should be asking: how do I learn the API calls available so I can use them without having to open a ticket for each need? Is this documented somewhere?

hammackj commented 13 years ago

Start and Stop times are recorded by Nessus on a per host basis. These are Host.first.start and Host.first.end for the first host in the database.

hosts = Host.all hosts.each do |host| text host.name text host.start text host.end end would print them all