create a quick class for normalizing nvd urls given cve ids

This commit is contained in:
booboy 2020-10-26 14:44:34 -05:00
parent 3e845a22e1
commit e668654f47

View file

@ -0,0 +1,14 @@
#!/usr/bin/env ruby
# take a list of cve and spit out nvd urls for them
class NvdCveUrlGen
def initialize(cve_ids)
@cve_ids = cve_ids
end
def generate_url
@cve_ids.map do |cve|
"https://nvd.nist.gov/vuln/detail/#{cve}"
end
end
end