cve.rb - this will be a commandline program to lookup cves
This commit is contained in:
parent
f554541bb0
commit
72bfc1687f
1 changed files with 5 additions and 6 deletions
11
cve.rb
11
cve.rb
|
@ -1,8 +1,7 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# CVE class
|
# CVE class
|
||||||
|
|
||||||
# using this code as example to start:
|
# the end goal of this is to just be something that i can use to lookup cve quickly from the command line. yes i know that these tools already exist, but what i'm trying to learn more about ruby so why not?
|
||||||
# https://github.com/fidius/cvedb/blob/master/lib/tasks/parse_cves.rake
|
|
||||||
|
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
|
|
||||||
|
@ -20,8 +19,8 @@ class CVE
|
||||||
2014 2015 2016 2017 2018]
|
2014 2015 2016 2017 2018]
|
||||||
end
|
end
|
||||||
|
|
||||||
def xml_feed
|
def xml_feed
|
||||||
endpoint = 'cve/2.0/'
|
endpoint = 'cve/2.0/'
|
||||||
uri = URI(base_uri)
|
uri = URI(base_uri)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue