Hooray, its dumb question day! ;)
I know enough ruby to be dangerous but dont know a lot of basic foundational things. Can anyone direct me to some documentation or help me out with how to get my ruby code to take the first argument i throw at it (a file name) and store the filename in a variable? I've tried ARGV[0]
and ARGV.first
.
require 'mysql'
require 'nessus'
begin
filename = ARGV.first
scanTime = Time.now.to_i
Nessus::Parse.new(filename, :version => 2) do |scan|
....