Adapted instructions from here
A number of people have asked how to get Kismet remote capture running on OpenWrt - until the final release of the new Kismet is done, or if you'd like to play with the git version going forward, here's a quick tutorial.
Please remember git versions of Kismet are unstable and under development - not everything may work, or things may change rapidly. Generally the git versions are usable but every so often you'll get a bad version.
This instruction are meant to be a quick guide to getting the Kismet specifics compiled, so I recommend checking out some OpenWrt build guides if you're completely new to the whole process.
If you don't have them already, you'll need build-essentials and git.
You'll want the Kismet source code to get the openwrt package definition.
This will take a little while to download, and due to how Git handles https servers, may look like it's hung - just give it time.
You will need to select the basic options for OpenWrt and enable the external feed for additional libraries Kismet needs. When running
make menuconfig you may see warnings about needing additional packages - install any that OpenWrt says you are missing.
Inside the OpenWRT configuration you will want to:
Target System (Atheros AR7xxx/AR9xxx)and
Subtarget (Generic)Because we are only trying to build packages and not a complete system, we don't need to configure the image formats; default is fine.
Separate Feed Repositories
Enable feed packages
We need to tell OpenWrt to pull the feeds into the build system. Still in the openwrt directory you checked out, run:
This will download all the third-party package definitions.
We want to copy the Kismet package over, because we'll potentially be making some modifications.
Where, of course, you want to copy from your checked out Kismet code to the checked out OpenWrt code; your directories might be different.
In a perfect world the libprotoc-c package in OpenWRT would install the proper host binary for protoc-c, but it does not. Fortunately, there is only one version of libproto-c (the C-only version), so the package for your host distribution should be sufficient.
will suffice on Ubuntu-style distributions; your distribution may vary. Note: This is for the protobuf-c version, not the normal protobuf (which is C++, and which has a working openwrt package with proper host tools.)
Now we need to enable the Kismet package. Still in your OpenWrt directory:
Now we need to start the build process: It will take a while.
Depending on how many processors your system has, you can speed this up with
If you still get an error regarding protoc-c not found, you may have to link you local version where the OpenWrt version is supposed to be, like:
If everything went well, you now have two packages to copy to your OpenWrt:
SSH into the OpenWrt and install the packages:
Fire up kismet remote capture and see how it goes. While SSHd into the OpenWrt as root:
or alike. Use
--help for more information.