20 lines
417 B
Ruby
Executable file
20 lines
417 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
require '../microsoft_cvrf_client.rb'
|
|
require 'optparse'
|
|
require 'json'
|
|
|
|
@options = {}
|
|
|
|
OptionParser.new do |opts|
|
|
opts.on("-id", "--id", "Bulletin ID") do |id|
|
|
@options[:id] = id
|
|
end
|
|
end.parse!
|
|
|
|
bulletin_id = @options[:id]
|
|
api_client = MicrosoftCvrfClient.new
|
|
|
|
#bulletin_response = api_client.get_id(bulletin_id)
|
|
|
|
puts JSON.pretty_generate(api_client.exploited_vulns_only(bulletin_id))
|