From 3d1a465c556644e67265b713081c0d33299c2605 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Mon, 30 Jan 2017 22:30:01 -0600 Subject: [PATCH] added cve_lookup function to .bash_functions --- .bash_functions | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.bash_functions b/.bash_functions index d6ba398..6145221 100644 --- a/.bash_functions +++ b/.bash_functions @@ -162,3 +162,13 @@ on() fi } + +cve_lookup() + +{ + [[ -z "$1" ]] && echo "Usage: $0 CVE-YYYY-NNNN" + + curl -s http://www.cvedetails.com/cve/$1/ | grep 'meta name="description" content="' | awk -F\" '{print $4}' + +} +