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}' + +} +