From 72bfc1687fb8e97abf069f758ac3b47a28b96310 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Sat, 7 Apr 2018 07:36:17 -0500 Subject: [PATCH] cve.rb - this will be a commandline program to lookup cves --- cve.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cve.rb b/cve.rb index 98aed70..6fef1e1 100755 --- a/cve.rb +++ b/cve.rb @@ -1,8 +1,7 @@ #!/usr/bin/env ruby # CVE class -# using this code as example to start: -# https://github.com/fidius/cvedb/blob/master/lib/tasks/parse_cves.rake +# 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? require 'net/http' @@ -20,8 +19,8 @@ class CVE 2014 2015 2016 2017 2018] end - def xml_feed - endpoint = 'cve/2.0/' - uri = URI(base_uri) - end + def xml_feed + endpoint = 'cve/2.0/' + uri = URI(base_uri) + end end