File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 16
16
"sqlite" ,
17
17
"kerberos" ,
18
18
"icu" ,
19
+ "bluez" ,
19
20
]
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ """
3
+ CVE checker for Bluez
4
+ References:
5
+ https://www.cvedetails.com/vulnerability-list/vendor_id-8316/product_id-35116/Bluez-Bluez.html
6
+
7
+ """
8
+ from ..util import regex_find
9
+
10
+ def get_version (lines , filename ):
11
+ """Bluetoothctl will work for Version 5.0+
12
+ Vpkg: bluez, bluez
13
+ """
14
+ regex = [r"bluetoothctl: ([5]+\.[0-9]+\.[0-9]+)" ]
15
+ version_info = dict ()
16
+ if filename [::- 1 ].startswith (("bluetoothctl" )[::- 1 ]):
17
+ version_info ["is_or_contains" ] = "is"
18
+
19
+ if "is_or_contains" in version_info :
20
+ version_info ["modulename" ] = "bluetoothctl"
21
+ version_info ["version" ] = regex_find (lines , * regex )
22
+ elif "libbluetooth.so" in filename :
23
+ version_info ["is_or_contains" ] = "is"
24
+
25
+ return version_info
You can’t perform that action at this time.
0 commit comments