16 lines
373 B
Ruby
16 lines
373 B
Ruby
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
# take a list of cve and spit out microsoft security advisory urls for them
|
|
|
|
class MicrosoftSecurityAdvisoryUrlGenerator
|
|
def initialize(cve_ids)
|
|
@cve_ids = cve_ids
|
|
end
|
|
|
|
def generate_url
|
|
@cve_ids.map do |cve|
|
|
"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/#{cve}"
|
|
end
|
|
end
|
|
end
|