added cve_lookup function to .bash_functions
This commit is contained in:
parent
1cc527954b
commit
3d1a465c55
1 changed files with 10 additions and 0 deletions
|
@ -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}'
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue