Kismet NewCore
From JoatWiki
Please note that this is a work in progress. I've only been able to do a couple things with LORCON so far. Hi to all referred here from the MadWifi.org site!
After seeing Josh Wright and Mike Kershaw talk about LORCON at ShmooCon 2007, I decided to try and get LORCON and Kismet Newcore up and running on my P.O.S. Sony SRX-77 laptop. Helping to make this decision was my purchase ofa Proxim 8471-WD Atheros-based PCMCIA card. Complicating the issue is the fact that, of all of the current distros, only Unbuntu seems to install/run properly on the 5 year-old laptop. Following are my notes (assume all compiling and installation is done as root):
1) First, you need to change where Synaptic gets its packages. - Start Synaptic (If you're using Gnome, it's under System -> Administration -> Synaptic Package Manager - Click on Settings -> Repositories - Turn off the CD source and turn on the various "Binary" sources
2) If Subversion isn't already installed, use Synaptic's search function to find "subversion". Install subversion.
3) Make a working directory (e.g., "mkdir /root/kismet") and cd into it
4) Grab the newcore code via: svn co http://svn.kismetwireless.net/code/branch/kismet-newcore kismet-newcore
5) cd into kismet-newcore
6) Run "./configure"
7) Most likely "./configure" will fail. If so, search Synaptic for whatever tool or library is missing and install it. If it's a library is missing, be sure to install the "-dev" or "-devel" version of the library.
8) Repeat the above as often as necessary until "./configure" is successful and lists all of the features that you want (at the end of "./configure") Note: not all of them are necessary but most are handy to have.
9) Run "make dep"
10) Run "make"
11) Run "make install". Before you do this, you may want to uninstall any previous version of Kismet (hint: use the Synaptic search function again and "Unmark" the installed programs). This isn't necessary but will help to avoid confusion later.
12) Create another working directory for Lorcon (e.g., "mkdir /root/lorcon") and cd into it.
13) Grab the code for Lorcon via "svn co http://802.11ninja.net/svn/lorcon/trunk"
14) cd into trunk and run "./configure"
15) Again, if libraries or tools are missing, use Synaptic to install them. Note: you only have to do this when "./configure" fails.
16) Run "make dep"
17) Run "make"
18) Run "make install"
19) Create another working directory for the Kismet-Lorcon plugins (e.g., mkdir /root/kislor") and cd into it
20) Grab the code for the plugins via "svn co http://802.11ninja.net/svn/kismet-lorcon"
21) cd into kismet-lorcon and read the README file
22) cd ..
23) For some reason, I couldn't get the plugins to compile with the method used in the README so I did it sort of bass-ackwards. My procedure follows
23) mv kismet-newcore kismet
24) mv kismet kismet-lorcon/
25) cd kismet-lorcon
26) cp kismet/config.h .
27) Edit the Makefile and change the KIS_INC_DIR variable to point to "./"
28) Run "make". This should build "lorconclient.so" and "lorconplugin.so"
29) For my version of Ubuntu, I needed to upgrade the version of MadWifi being used.
30) Create another working directory for Madwifi (e.g., mkdir /root/madwifi) and cd into it
31) Grab the code for madwifi via "svn co http://svn.madwifi.org/trunk madwifi"
32) Run "uname -a" and note the kernel version number
33) Seach Synaptic for that kernel number and install the Linux headers associated with your kernel version.
34) cd into madwifi
35) Run "make". Note: if you already have a version of Madwifi installed, you will be asked if you want to remove the older version modules. (I selected "[r]emove")
Side notes:
1) I recommend removing all instances of pcap and compiling from source (before you do anything else). Otherwise you may end up with the following error:
FATAL: arptype 803 not supported by libpcap - falling back to cooked socket
To fix this, I had to compile pcap from source. Doing so required that I also install flex and bison (when it complains about not having yacc). You may want to install the BlueZ libs before compiling pcap as it'll cause less heartache later when you're trying to install that.
