fix output when a single vulnerability is found
This commit is contained in:
parent
aee93568c6
commit
4b9a80507c
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2019/03/31 01:32:50 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2019/04/15 17:04:36 jasper Exp $
|
||||
|
||||
COMMENT = Windows Exploit Suggester - Next Generation
|
||||
|
||||
@ -7,6 +7,7 @@ GH_COMMIT = 444cb9c1549503db9c0740951c417c832696a8a8
|
||||
GH_PROJECT = wesng
|
||||
GH_ACCOUNT = bitsadmin
|
||||
DISTNAME = wesng-${MODPY_EGG_VERSION}
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES = security
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-wes_py,v 1.2 2019/03/31 01:32:50 jasper Exp $
|
||||
$OpenBSD: patch-wes_py,v 1.3 2019/04/15 17:04:36 jasper Exp $
|
||||
|
||||
- https://github.com/bitsadmin/wesng/pull/25
|
||||
- The definitions database lives in ${PREFIX}/share/wesng/
|
||||
@ -56,6 +56,15 @@ Index: wes.py
|
||||
if add:
|
||||
filtered.append(cve)
|
||||
|
||||
@@ -564,7 +573,7 @@ def print_summary(kbs, sp):
|
||||
for line in grouped.most_common():
|
||||
kb = line[0]
|
||||
number = line[1]
|
||||
- print(' - KB%s: patches %s %s' % (kb, number, 'vulnerabilty' if number == 1 else 'vulnerabilities'))
|
||||
+ print(' - KB%s: patches %s %s' % (kb, number, 'vulnerability' if number == 1 else 'vulnerabilities'))
|
||||
|
||||
# Show in case a service pack is missing
|
||||
if sp:
|
||||
@@ -638,7 +647,7 @@ def check_file_exists(value):
|
||||
|
||||
# Validate file existence for definitions file
|
||||
|
Loading…
Reference in New Issue
Block a user