From 91b550754fcdb500c15f144622717c1b7f503ed9 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Mon, 30 May 2016 17:22:44 +0200 Subject: [PATCH] [cve] Reflects site changes --- modules/cve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cve.py b/modules/cve.py index 637d728..23a0302 100644 --- a/modules/cve.py +++ b/modules/cve.py @@ -19,8 +19,8 @@ def get_cve(cve_id): search_url = BASEURL_NIST + quote(cve_id.upper()) soup = BeautifulSoup(getURLContent(search_url)) - vuln = soup.body.find(class_="vulnDetail") - cvss = vuln.find(class_="cvssDetail") + vuln = soup.body.find(class_="vuln-detail") + cvss = vuln.findAll('div')[4] return [ "Base score: " + cvss.findAll('div')[0].findAll('a')[0].text.strip(),