Compiling: Quick Setup
Kismet has many configuration knobs and options; but for the quickest way to get the basics working:
Uninstall any existing Kismet installs. If you installed Kismet using a package from your distribution, uninstall it the same way; if you compiled it yourself, be sure to remove it
Install dependencies. Kismet needs a number of libraries and development headers to compile; these should be available in nearly all distributions.
$ sudo apt install build-essential git libmicrohttpd-dev pkg-config zlib1g-dev libnl-3-dev libnl-genl-3-dev libcap-dev libpcap-dev libnm-dev libdw-dev libsqlite3-dev libprotobuf-dev libprotobuf-c-dev protobuf-compiler protobuf-c-compiler libsensors4-dev libusb-1.0.0-dev python python-setuptools python-protobuf python-requests librtlsdr0 python-usb python-numpy python-dev
On some older versions,
libprotobuf-c-devmay be called
For rtlsdr rtl_433 support, you will also need the rtl_433 tool from https://github.com/merbanan/rtl_433 if it is not otherwise provided by your distribution.
Fedora (and related)
$ sudo dnf install make automake gcc gcc-c++ kernel-devel git libmicrohttpd-devel pkg-config zlib-devel libnl3-devel libcap-devel libpcap-devel NetworkManager-libnm-devel libdwarf libdwarf-devel elfutils-devel libsqlite3x-devel protobuf-devel protobuf-c-devel protobuf-compiler protobuf-c-compiler lm_sensors-devel libusb-devel fftw-devel
You will also need the related python2 packages.
- Clone Kismet from git. If you haven’t cloned Kismet before:
$ git clone https://www.kismetwireless.net/git/kismet.git
If you have a Kismet repo already:
$ cd kismet $ git pull
- Run configure. This will find all the specifics about your system and prepare Kismet for compiling. If you have any missing dependencies or incompatible library versions, they will show up here.
$ cd kismet $ ./configure
Pay attention to the summary at the end and look out for any warnings! The summary will show key features and raise warnings for missing dependencies which will drastically affect the compiled Kismet.
If you’re compiling for a remote capture platform only, check the remote capture docs for more information.
- Compile Kismet.
You can accelerate the process by adding
-j #, depending on how many CPUs you have. To automatically compile on all the available cores:
$ make -j$(nproc)
C++ uses quite a bit of RAM to compile, so depending on the RAM available on your system you may need to limit the number of processes you run simultaneously.
- Install Kismet. Generally, you should install Kismet as suid-root; Kismet will automatically add a group and install the capture binaries accordingly.
When installed suid-root, Kismet will launch the binaries which control the channels and interfaces with the needed privileges, but will keep the packet decoding and web interface running without root privileges.
$ sudo make suidinstall
- Add your user to the
$ sudo usermod -aG kismet $USER
This will add your current logged in user to the
Log out and back in. Linux does not update groups until you log in; if you have just added yourself to the Kismet group you will have to re-log in.
- Check that you are in the Kismet group with:
If you are not in the
kismetgroup, you should log out entirely, or reboot.
- You’re now ready to run Kismet! Point it at your network interface… Different distributions (and kernel versions, and distribution versions) name interfaces differently; your interface may be
wlan1, or it may be named something like
wlp0s1, or it may be named using the MAC address of the card and look like
You can now start Kismet with something like:
$ kismet -c wlan0
or, you can just launch Kismet and then use the new web UI to select the card you want to use, by launching it with just:
Remember, until you add a data source, Kismet will not be capturing any packets!
THE FIRST TIME YOU RUN KISMET, you MUST go to the Kismet WebUI and set your login and password.
This login will be saved in the config file:
~/.kismet/kismet_httpd.conf which is in the home directory of the user starting Kismet.
If you start Kismet as or via sudo (or via a system startup script where it runs as root), this will be in roots home directory:
You will need this password to control Kismet from the web page - without it you can still view information about devices, view channel allocations, and most other actions, but you CAN NOT control Kismet data sources, view pcaps, or perform other actions.
- Point your browser at http://localhost:2501
You will be prompted to do basic configuration - Kismet has many options in the web UI which can be tweaked.
To use all the features of the Kismet web UI, put in the password found in the
kismet_httpd.conf config file above.