Installing on macOS
Installing Homebrew for macOS
The simplest way to install the WiFi Coconut tools for macOS is to install the Homebrew package manager.
The Homebrew package manager is available at https://brew.sh/
If you are not already using Homebrew, follow the install directions on the Homebrew site.
If prompted to install the Xcode Command Line tools, do so. They will be required!
Install the WiFi Coconut tools
Once Brew and the Xcode command line tools are installed, installing the WiFi Coconut tools for macOS is as simple as:
This will download and install the WiFi Coconut tools, compile them automatically, and install them.
If prompted to install other tools such as the xcode command-line tools, do so.
Example installation
Running
The wifi_coconut
tool is the main interface for the WiFi Coconut, run it from a terminal with:
Additionally, the wifi_coconut
tool takes several options to automate behavior:
Warning - if you are using an older macOS (Catalina or Big Sur), there is a known bug in the macOS kernel for handling USB. You will need to exit all other applications that may interact with the USB system, including browsers such as Chrome.
This has been fixed in more recent macOS releases and is no longer a problem with Monterrey and newer! It is also not a problem on macOS versions earlier than Catalina.
Integrating with other tools
Output from the wifi_coconut
tool can be directly piped to other tools like tcpdump
or tshark
:
or
Compiling from source
You can, of course, compile the WiFi Coconut tools manually.
Install dependencies
To compile from source on macOS you will need:
The Xcode command line tools from Apple
The CMake build system
Git
LibUSB 1.0.0
In the Homebrew package manager, these can be installed by installing Homebrew, then installing dependencies:
For other package managers, you will need to install the equivalent packages.
Check out the code
Configure
cmake
will confirm that the required dependencies are available.
Compile
Install
This will install the wifi-coconut tool to the default path (/usr/local/bin
by default), and the rt2800usb firmware to /usr/local/share/
.
Last updated
Was this helpful?