Closed rootorben closed 5 years ago
Still looks like a lot of broken dependencies, such as binutils-arm-linux-gnueabi
and adb
.
InternalBlue can connect to a Broadcom Bluetooth chip as follows:
adb
AF_BLUETOOTH
socket on your local Linux deviceInternalBlue fails to start because adb
is not installed (no problem) and then continues with a local Bluetooth socket. Then, the actual problem appears:
socket.error: [Errno 97] Address family not supported by protocol
On Linux, there is a socket type AF_BLUETOOTH
. I think this is defined somewhere on kernel driver level, and thus breaks when using the Windows Subsystem for Linux. I don't know if there is a proper fix for this. I would suggest to run InternalBlue in a virtual machine and pass your Bluetooth chip as USB device to the virtual machine.
With the WSL 2 system Microsoft is going to "integrate" a virtualized Linux Kernel into windows. Then the usage of AF_BLUETOOTH and others should be possible (see https://github.com/microsoft/WSL/issues/2039#issuecomment-505201850).
❤
I'm closing this issue since it is not a problem with InternalBlue, but with Bluetooth sockets on WSL. We might add Windows support in the future, though. Right now, a student makes good progress with integrating macOS. Adding more operating systems and chips is definitely one of our priorities.
Hi.......im using LSW Kali..... after installing deps and setup i tried to run the program......
but all i got was this
`dak47@ASUS:~$ sudo python2 -m internalblue.cli [sudo] password for dak47:
/ / / /__ __ / / )/ / ____ / // _ \/ _/ -) / \/ `/ / / / // / -) /////_/_// ////_,//__//_,/__/
type for usage information!
dpkg-query: no path found matching pattern bin/armeabilinux-as [!] pwntools cannot find binutils for arm architecture. Disassembling will not work! dpkg-query: no path found matching pattern bin/armeabilinux-as [!] pwntools cannot find binutils for arm architecture. Disassembling will not work! [ERROR] './adb' does not exist [*] No adb devices found. Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/internalblue/cli.py", line 171, in
internalblue_cli()
File "/usr/local/lib/python2.7/dist-packages/internalblue/cli.py", line 132, in internalblue_cli
devices.extend(connection_method.device_list())
File "/usr/local/lib/python2.7/dist-packages/internalblue/hcicore.py", line 115, in device_list
for dev in self.getHciDeviceList():
File "/usr/local/lib/python2.7/dist-packages/internalblue/hcicore.py", line 47, in getHciDeviceList
s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_RAW, socket.BTPROTO_HCI)
File "/usr/lib/python2.7/socket.py", line 191, in init
_sock = _realsocket(family, type, proto)
socket.error: [Errno 97] Address family not supported by protocol
dak47@ASUS:~$`
Some ideas?