Files
wpscan/lib/common/models/vulnerability/output.rb
2015-06-21 10:59:57 +02:00

24 lines
515 B
Ruby

# encoding: UTF-8
class Vulnerability
module Output
# output the vulnerability
def output(verbose = false)
puts
puts critical("Title: #{title}")
references.each do |key, urls|
methodname = "url_#{key}"
urls.each do |u|
next unless respond_to?(methodname)
url = send(methodname, u)
puts " Reference: #{url}" if url
end
end
unless fixed_in.nil?
puts notice("Fixed in: #{fixed_in}")
end
end
end
end