Skip to content

Commit

Permalink
fix vulners search
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaBouali committed Nov 26, 2023
1 parent a93c527 commit 771dc36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bane/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#coding: utf-8


__version__='5.1.3'
__version__='5.1.4'

__author__="Ala Bouali"

Expand Down
8 changes: 6 additions & 2 deletions bane/scanners/vulnerabilities/vulner_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def scan_cpe(
http_proxies=None,
socks4_proxies=None,
socks5_proxies=None,
proxy=None
proxy=None,
basic_only=True
):
proxies=Proxies_Interface.get_requests_proxies_from_parameters(http_proxies=http_proxies,socks4_proxies=socks4_proxies,socks5_proxies=socks5_proxies)
if proxy==None:
Expand Down Expand Up @@ -164,7 +165,10 @@ def scan_cpe(
]
)
i += 1
return l
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]
else:
return []#{'error':"couldn't find vulnerabilities for this version"}
except:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

setuptools.setup(
name="bane",
version="5.1.3",
version="5.1.4",
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.',
Expand Down

0 comments on commit 771dc36

Please sign in to comment.