Download Documentation
kismetwireless
Forum Links


Kismet Forums
Posted by:ykcyc
Subject:Kismet setup on Linksys WRT54G - success!
Date:21:07:58 24/10/2003

I am not a programmer and I do not pretend that I know it all. These are the steps that verifiably make Kismet work with a kismet_drone running on a Linksys WRT54G . Most probably, a knowledgeable person can find several problems in the steps below, nevertheless, I know that it works and you are welcome to save some time and effort by just following these steps as well as improve upon this first draft.

Hardware needed:

WRT54G (duh!)
A reasonably fast Linux workstation, since we will need to compile gcc and glibc

Software needed:

Crosstool
http://www.kegel.com/crosstool/
http://www.kegel.com/crosstool/crosstool-0.24.tar.gz

Kismet
http://www.kismetwireless.net/
http://www.kismetwireless.net/code/kismet-3.0.1.tar.gz

WRT54G tools
(coldn’t find better description)
http://www.seattlewireless.net/index.cgi/Wrt54gTools
http://cj.colliertech.org/swn/wrt54g_tools-0.0.8.tgz

Linksys firmware v 1.30.7
ftp://ftp.linksys.com/pub/network/WRT54G_1.30.7_US_code.bin
http://cj.colliertech.org/swn/WRT54G_1.30.7_US_code.bin

I used a Linux laptop connected to a LAN port of built-in switch of WRT54G

1. Using a web browser connect to WRT54G at 192.168.1.1 and install Linksys firmware v 1.30.7

2. Get Daniel Kegel’s Crosstool and compile gcc-3.2.3-glibc-2.2.5 (that’s what worked for me). For convenience create symlinks to gcc and c++ in /usr/local/bin

3. Download Kismet, unpack source. Rename the source directory so that not to overwrite it in step 8. Kismet configure script has problems out of the box to cross-compile included libpcap source for MIPS architecture so we need to do some tricks.

4. In Kismet source tree in libpcap-0.7.2 directory
Edit line 136 of configure.in file:
< ac_cv_linux_vers=unknown
> ac_cv_linux_vers=2
Run autoconf.
Run configure
export CC=/usr/local/bin/mips-gcc
./configure –prefix=/tmp/kismet --host=mipsel --with-pcap=linux
Run make

5. In Kismet source tree
export CXX=/usr/local/bin/mips-c++ -static
export CC=/usr/local/bin/mips-gcc
./configure --prefix=/tmp/kismet --host=mipsel --disable-curses --disable-panel --disable-netlink --disable-setuid
(all in on line) Configure will fail in libpcap-0.72 directory, as expected. Since we have compiled libpcap in step 4 we can proceed with make.
Run make
Run make install
The result will be in /tmp/kismet directory

6. In /tmp/kismet/bin replace kismet_monitor script with dummy file consisting consisting of one line:
#!/bin/sh
Edit kismet_drone.conf appropriately. You are going to use generic capture and allow logins from your local network:
source=generic,eth2,Kismet
allowedhosts=192.168.1.0/24

7. Using WRT54G tools get shell on your WRT54G and copy kismet_drone and kismet_monitor to /tmp/kismet/bin and kismet_drone.conf to /tmp/kismet/etc/kismet.conf. Chmod 755 kismet_drone and kismet_monitor. Put WRT54G interface in monitor mode:
/usr/sbin/wl monitor 1
Launch /tmp/kismet/bin/kismet_drone on WRT54G.

8. Compile Kismet source for I386 architecture and install Kismet on your workstation. Configure kismet_server to use drone source and launch kismet_server
source=drone,192.168.1.1:3501,drone
enablesources=drone

9. Launch kismet_server. It should make connection to kismet_drone running on WRT54G.

10 Launch kismet_client to connect to your kismet_server.


Reply to this message



dragorn@kismetwireless.net