From 8c4103203d863ff669ec66db42762027514f82ce Mon Sep 17 00:00:00 2001 From: AlaBouali Date: Mon, 27 Nov 2023 04:11:10 +0100 Subject: [PATCH] new version --- bane/__init__.py | 2 +- bane/scanners/vulnerabilities/vulner_search.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bane/__init__.py b/bane/__init__.py index 416bfcc..5be8567 100644 --- a/bane/__init__.py +++ b/bane/__init__.py @@ -1,7 +1,7 @@ #coding: utf-8 -__version__='5.1.4' +__version__='5.1.5' __author__="Ala Bouali" diff --git a/bane/scanners/vulnerabilities/vulner_search.py b/bane/scanners/vulnerabilities/vulner_search.py index 2335309..712dcd9 100644 --- a/bane/scanners/vulnerabilities/vulner_search.py +++ b/bane/scanners/vulnerabilities/vulner_search.py @@ -81,7 +81,7 @@ def scan( if basic_only==False: return l else: - return [{'title':x.get('title',''),'description':x.get('description',''),'href':x.get('href',''),'sourceHref':x.get('sourceHref',''),'published':x.get('published','')} for x in l] + return [{'title':x.get('title',''),'description':x.get('description',''),'href':x.get('href',''),'sourceHref':x.get('sourceHref',''),'published':x.get('published',''),'cvelist':x.get('cvelist',[''])[0],'score':x.get('cvss',{'score':"N/A"})['score'],'vector':x.get('cvss',{'vector':"N/A"})['vector']} for x in l] else: return []#{'error':"couldn't find vulnerabilities for this version"} except Exception as ex: @@ -168,7 +168,7 @@ def scan_cpe( if basic_only==False: return l else: - return [{'title':x.get('title',''),'description':x.get('description',''),'href':x.get('href',''),'sourceHref':x.get('sourceHref',''),'published':x.get('published','')} for x in l] + return [{'title':x.get('title',''),'description':x.get('description',''),'href':x.get('href',''),'sourceHref':x.get('sourceHref',''),'published':x.get('published',''),'cvelist':x.get('cvelist',[''])[0],'score':x.get('cvss',{'score':"N/A"})['score'],'vector':x.get('cvss',{'vector':"N/A"})['vector']} for x in l] else: return []#{'error':"couldn't find vulnerabilities for this version"} except: diff --git a/setup.py b/setup.py index f0f2b58..511cf41 100644 --- a/setup.py +++ b/setup.py @@ -81,7 +81,7 @@ setuptools.setup( name="bane", - version="5.1.4", + version="5.1.5", author="AlaBouali", author_email="ala.bouali.1997@gmail.com", description='This Python library offers a comprehensive set of tools for various cybersecurity and networking tasks. Its functionalities encompass diverse capabilities such as bruteforce attacks, cryptographic methods, DDoS attacks, information gathering, botnet creation and management, CMS vulnerability scanning, network discovery, vulnerability scanning, useful modules for common tasks, web page analyzers, and proxy utilities making it a powerful toolkit for cybersecurity professionals and network administrators.',