{"id":2593,"date":"2019-04-18T23:15:44","date_gmt":"2019-04-18T20:15:44","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2593"},"modified":"2019-04-20T10:02:05","modified_gmt":"2019-04-20T07:02:05","slug":"install-kismet-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-kismet-on-ubuntu-18-04\/","title":{"rendered":"Install Kismet on Ubuntu 18.04"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install Kismet on Ubuntu 18.04. Kismet is a wireless network and device detector, sniffer, wardriving tool and wireless intrusion detection (WIDS) framework. It works with Wi-Fi interfaces, Bluetooth interfaces, some software defined radio hardware like the RTLSDR, and other specialized  capture hardware.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Kismet on Ubuntu 18.04<\/h2>\n\n\n\n<p>Kismet is available on the default Ubuntu 18.04 repositories. However, the available version may not be up to date. For example, 2019-04-R1 is the current release of Kismet while the available version on Ubuntu 18.04 repos is;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt-cache policy kismet<br> kismet:<br>   Installed: (none)<br>   Candidate: 2016.07.R1-1.1~build1<br>   Version table:<br>      2016.07.R1-1.1~build1 500<br>         500 http:\/\/ke.archive.ubuntu.com\/ubuntu bionic\/universe amd64 Packages<\/code><\/pre>\n\n\n\n<p>Hence, to get the latest version up and running, you need to install Kismet from source.  The current release comes bundled with several features including a massively rewritten code base, modern web UI, scriptable REST-like interface, massive data set, transparent remote capture, massive multiple-radio support etc.  You can check more features on <a rel=\"noreferrer noopener\" aria-label=\"release page (opens in a new tab)\" href=\"https:\/\/www.kismetwireless.net\/development\/release\/\" target=\"_blank\">release page<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Kismet on Ubuntu 18.04 from Source<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Install Required Dependencies<\/h3>\n\n\n\n<p>Before you can compile and install Kismet on Ubuntu 18.04 from source, there are a number of dependencies that are required to get is up and running.<\/p>\n\n\n\n<p>NOTE: Be sure to remove any existing Kismet installations before proceeding, if you have any.<\/p>\n\n\n\n<p>As usual, update and upgrade your system packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update<br>apt upgrade<\/code><\/pre>\n\n\n\n<p>Once the update is done, install the required dependencies. Fire up your terminal and execute the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install build-essential git libmicrohttpd-dev pkg-config zlib1g-dev libnl-3-dev \\<br>libnl-genl-3-dev libcap-dev libpcap-dev libnm-dev libdw-dev libsqlite3-dev libprotobuf-dev \\<br>libprotobuf-c-dev protobuf-compiler protobuf-c-compiler libsensors4-dev python python-setuptools \\<br>python-protobuf python-requests librtlsdr0 python-usb python-paho-mqtt libusb-1.0-0-dev<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Clone Kismet from Git<br><\/h3>\n\n\n\n<p>Once the installation of the dependencies above is done, clone the Kismet Github repository to your system by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/www.kismetwireless.net\/git\/kismet.git<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Kismet<br><\/h3>\n\n\n\n<p>Once the clone is done, navigate to Kismet directory and run the configure script to optimize it to the system, identify any missing dependency in preparation for compilation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cd kismet<br>.\/configure<\/code><\/pre>\n\n\n\n<p>If you encounter any dependency issue, be sure to fix it before proceeding.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Compile Kismet<\/h3>\n\n\n\n<p>If all goes well, proceed to compile Kismet. The compilation may take some time depending on the &#8220;horse power&#8221; of your machine.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install Kismet on Ubuntu 18.04<\/h3>\n\n\n\n<p>Next, proceed to install Kismet on Ubuntu 18.04. To be able to run Kismet as a local user, you should install it as suid-root. In this case, Kismet will keep the packet decoding and web interface running without root privileges.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>make suidinstall<\/code><\/pre>\n\n\n\n<p>If the installation is successful, you should see such an output.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Installed kismet into \/usr\/local\/bin\/.<br> If you have not done so already, read the README file and the FAQ file.  Additional<br> documentation is in the docs\/ directory.  You MUST edit \/usr\/local\/etc\/kismet.conf <br> and configure Kismet for your system, or it will NOT run properly!<br> Kismet has been installed with a SUID ROOT CAPTURE HELPER executeable by <br> users in the group ' kismet '.  This WILL ALLOW USERS IN THIS GROUP <br> TO ALTER YOUR NETWORK INTERACE STATES, but is more secure than running <br> all of Kismet as root.  ONLY users in this group will be able to <br> run Kismet and capture from physical network devices.<br> If you have just created this group, you will need to log out and back in<br> before your user will have access.   Check the output of the 'groups' <br> command to make sure your user has the proper group!<br> If you have installed Kismet in the past, you may need to UPDATE YOUR CONFIG<br> FILES or Kismet may not work properly!  You can manually reconcile differences<br> or you can replace the previously installed config files entirely by running<br> make forceconfigs<\/code><\/pre>\n\n\n\n<p>To enable the local users to alter network interface states, you need to add the specific user to kismet group that is created during installation. For example, to add user amos to kismet group, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>usermod -aG kismet amos<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Kismet using APT package manger<\/h3>\n\n\n\n<p>If you need to simplify your life, then you can use this approach. Since Kismet is not available on the default repos, you can create the repository as shown below and run the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -O - https:\/\/www.kismetwireless.net\/repos\/kismet-release.gpg.key | sudo apt-key add -<br>echo 'deb https:\/\/www.kismetwireless.net\/repos\/apt\/release\/cosmic cosmic main' | sudo tee \/etc\/apt\/sources.list.d\/kismet.list<br>sudo apt update<\/code><\/pre>\n\n\n\n<p>Next, install Kismet using package manager.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install kismet<\/code><\/pre>\n\n\n\n<p>To install individual Kismet tools, run the command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install kismet-core kismet-capture-linux-bluetooth kismet-capture-linux-wifi kismet-capture-nrf-mousejack python-kismetcapturertl433 python-kismetcapturertladsb python-kismetcaptureamr python-kismetcapturefreaklabszigbee kismet-logtools<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Run Kismet<\/h3>\n\n\n\n<p>Kismet is now installed and can be run by pointing it to your system&#8217;s wireless interface.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>kismet -c wlp3s0<br><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...<br>LOCAL: This is the first time Kismet has been run as this user.  You will <br>        need to set an administrator password before you can use many <br>        features of Kismet.  Visit http:\/\/localhost:2501\/ to configure the <br>        password, or consult the Kismet documentation to set a password <br>        manually.<br> INFO: Enabling channel hopping by default on sources which support channel <br>       control.<br> INFO: Setting default channel hop rate to 5\/sec<br> INFO: Enabling channel list splitting on sources which share the same list <br>       of channels<br> INFO: Enabling channel list shuffling to optimize overlaps<br> INFO: Sources will be re-opened if they encounter an error<br> INFO: Saving datasources to the Kismet database log every 30 seconds.<br> INFO: Launching remote capture server on 127.0.0.1:3501<br> INFO: Data sources passed on the command line (via -c source), ignoring <br>       source= definitions in the Kismet config file.<br> INFO: Probing interface 'wlp3s0' to find datasource type<br> INFO: Opened kismetdb log file '.\/\/Kismet-20190418-21-29-01-1.kismet'<br> INFO: Saving packets to the Kismet database log.<br> INFO: Starting Kismet web server\u2026<br> INFO: Started http server on port 2501<br> INFO: Found type 'linuxwifi' for 'wlp3s0'<br>...<\/code><\/pre>\n\n\n\n<p>You can however run kismet without any option. In this case, you will have to login to Kismet UI so that you can set the interface card to be used.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>kismet<\/code><\/pre>\n\n\n\n<p>To finish setting up Kismet, you need to configure a login which is used for changing server settings, accessing sensitive  information, adding data-sources, and other privileged actions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Access Kismet UI<\/h3>\n\n\n\n<p>The Kismet UI can access via http:\/\/localhost:2501. However, since Kismet listens on all interfaces on the server it is running, then you can access it remotely via an interface IP using the URL; <strong>http:\/\/&lt;IP.of.Kismet.server&gt;:2501<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-set-login.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1060\" height=\"526\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-set-login.png\" alt=\"install Kismet on Ubuntu 18.04\" class=\"wp-image-2637\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-set-login.png 1060w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-set-login-768x381.png 768w\" sizes=\"(max-width: 1060px) 100vw, 1060px\" \/><\/a><\/figure>\n\n\n\n<p>Enter your login details and hit the save button. This login will be stored in <code>.kismet\/kismet_httpd.conf<\/code> in the <em>home directory of the user who launched Kismet<\/em>. For example, <code>~amos\/.kismet\/kismet_httpd.conf<\/code> since am running it as user amos.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-dashboard-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"653\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-dashboard-1.png\" alt=\"install Kismet on Ubuntu 18.04\" class=\"wp-image-2638\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-dashboard-1.png 1350w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/04\/kismet-dashboard-1-768x371.png 768w\" sizes=\"(max-width: 1350px) 100vw, 1350px\" \/><\/a><\/figure>\n\n\n\n<p>You can access Kismet settings by clicking on the three line on the Kismet title on the left top corner for your customizations.<\/p>\n\n\n\n<p>Well, that is all about how to install Kismet on Ubuntu 18.04. Feel free to explore the potential of this tool. Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we are going to learn how to install Kismet on Ubuntu 18.04. Kismet is a wireless network and device detector, sniffer, wardriving<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[34,753],"tags":[754],"class_list":["post-2593","post","type-post","status-publish","format-standard","hentry","category-security","category-wireless","tag-kismet","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2593"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2593"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2593\/revisions"}],"predecessor-version":[{"id":2664,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2593\/revisions\/2664"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}