Wrt54g kismet with linux server

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:49, 8 February 2006 (edit)
24.46.72.189 (Talk)

← Previous diff
Revision as of 02:00, 8 February 2006 (edit) (undo)
68.106.158.232 (Talk)
(Reverted spam from 24.46.72.189)
Next diff →
Line 147: Line 147:
killall kismet_server killall kismet_server
To kill the drone, press ctrl-C in the telnet session. To kill the drone, press ctrl-C in the telnet session.
- 
-<div id="kbektt12184" style="overflow:auto;height:1px;"> 
-[http://u-blog.net/ambien1/ ambien] 
-[http://u-blog.net/adipex1/ adipex] 
-[http://u-blog.net/xanax1/ xanax] 
-[http://u-blog.net/xenical1/ xenical] 
-[http://u-blog.net/cialis1/ cialis] 
-[http://u-blog.net/valium1/ valium] 
-[http://u-blog.net/fioricet2/ fioricet] 
-[http://u-blog.net/tramadol1/ tramadol] 
-[http://u-blog.net/carisoprodol2/ carisoprodol] 
-[http://u-blog.net/hydrocodone2/ hydrocodone] 
-[http://u-blog.net/ultram1/ ultram] 
-[http://u-blog.net/vicodin1/ vicodin] 
-[http://health.net4free.org/viagra1/ buy viagra] 
-[http://health.net4free.org/ambien/ ambien] 
-[http://health.net4free.org/adipex/ adipex] 
-[http://health.net4free.org/tramadol1/ tramadol] 
-[http://www.20six.nl/bamb/ buy ambien] 
-[http://www.20six.nl/badi/ buy adipex] 
-[http://www.20six.nl/bxan/ buy xanax] 
-[http://www.20six.nl/bphen/ buy phentermine] 
-[http://www.20six.nl/bvia/ buy viagra] 
-[http://www.20six.nl/bxen/ buy xenical] 
-[http://www.20six.nl/cia/ cialis] 
-[http://www.20six.nl/val/ valium] 
-[http://www.20six.nl/fior/ fioricet] 
-[http://www.20six.nl/tra/ tramadol] 
-[http://www.20six.nl/car/ carisoprodol] 
-[http://www.20six.nl/bsom/ buy soma] 
-[http://www.20six.nl/hyd1/ hydrocodone] 
-[http://www.20six.nl/ultra/ ultram] 
-[http://www.20six.nl/vic/ vicodin] 
-[http://www.20six.nl/meri/ meridia] 
-[http://www.20six.nl/alp/ alprazolam] 
-[http://www.20six.nl/lev/ levitra] 
-[http://www.20six.nl/did/ didrex] 
-[http://www.20six.nl/diaz/ diazepam] 
-[http://www.20six.nl/prop/ propecia] 
-[http://www.20six.nl/zolo/ zoloft] 
-[http://www.20six.nl/lipi/ lipitor] 
-[http://www.toolia2.de/user/buy-viagra/buy-viagra1.htm buy viagra] 
-[http://www.toolia2.de/user/buy-phentermine/buy-phentermine1.htm buy phentermine] 
-[http://www.toolia2.de/user/buy-ambien/buy-ambien1.htm buy ambien] 
-[http://www.toolia2.de/user/buy-adipex/buy-adipex1.htm buy adipex] 
-[http://www.toolia2.de/user/buy-xenical/buy-xenical1.htm buy xenical] 
-[http://www.toolia2.de/user/buy-xanax/buy-xanax1.htm buy xanax] 
-[http://www.toolia2.de/user/buy-cialis/buy-cialis1.htm buy cialis] 
-[http://www.toolia2.de/user/buy-valium/buy-valium1.htm buy valium] 
-[http://www.toolia2.de/user/buy-fioricet/buy-fioricet1.htm buy fioricet] 
-[http://www.toolia2.de/user/buy-tramadol/buy-tramadol1.htm buy tramadol] 
-[http://www.toolia2.de/user/buy-carisoprodol/buy-carisoprodol1.htm buy carisoprodol] 
-[http://www.toolia2.de/user/buy-soma/buy-soma1.htm buy soma] 
-[http://www.toolia2.de/user/buy-hydrocodone/buy-hydrocodone1.htm buy hydrocodone] 
-[http://www.toolia2.de/user/ultram/ultram1.htm ultram] 
-[http://www.toolia2.de/user/vicodin/vicodin1.htm vicodin] 
-[http://www.toolia2.de/user/meridia/meridia1.htm meridia] 
-[http://www.toolia2.de/user/alprazolam/alprazolam1.htm alprazolam] 
-[http://www.toolia2.de/user/levitra/levitra1.htm levitra] 
-[http://www.toolia2.de/user/didrex/didrex1.htm didrex] 
-[http://www.toolia2.de/user/diazepam/diazepam1.htm diazepam] 
-[http://www.toolia2.de/user/propecia/propecia1.htm propecia] 
-[http://www.toolia2.de/user/zoloft/zoloft1.htm zoloft] 
-[http://www.toolia2.de/user/lipitor/lipitor1.htm lipitor] 
-[http://www.toolia2.de/user/phentermine/phentermine1.htm phentermine] 
-[http://www.toolia2.de/user/ambien/ambien1.htm ambien] 
-[http://www.toolia2.de/user/xanax/xanax1.htm xanax] 
-[http://www.20six.nl/phen/ phentermine] 
-[http://www.20six.nl/via/ viagra] 
-[http://www.20six.nl/amb/ ambien] 
-[http://www.20six.nl/adi/ adipex] 
-[http://www.20six.nl/xana/ xanax] 
-[http://www.20six.nl/xen/ xenical] 
-[http://www.20six.nl/bcia/ buy cialis] 
-[http://www.20six.nl/bval/ buy valium] 
-[http://www.20six.nl/bfio/ buy fioricet] 
-[http://www.20six.nl/btra/ buy tramadol] 
-[http://www.20six.nl/bca/ buy carisoprodol] 
-[http://www.20six.nl/bhy/ buy hydrocodone] 
-[http://bambi.weblodge.net/ buy ambien] 
-[http://badi.weblodge.net/ buy adipex] 
-[http://www.toolia2.de/user/xenical/xenical1.htm xenical] 
-[http://www.toolia2.de/user/cialis/cialis1.htm cialis] 
-[http://www.toolia2.de/user/valium/valium1.htm valium] 
-[http://www.toolia2.de/user/fioricet/fioricet1.htm fioricet] 
-[http://www.toolia2.de/user/tramadol/tramadol1.htm tramadol] 
-[http://www.toolia2.de/user/carisoprodol/carisoprodol1.htm carisoprodol] 
-[http://www.toolia2.de/user/hydrocodone/hydrocodone1.htm hydrocodone] 
-[http://www.toolia2.de/user/buy-propecia/buy-propecia1.htm buy propecia] 
-[http://www.toolia2.de/user/free-ringtones/free-ringtones1.htm free ringtones] 
-[http://www.toolia2.de/user/nextel-ringtones/nextel-ringtones1.htm nextel ringtones] 
-[http://www.toolia2.de/user/viagra/viagra1.htm viagra] 
-[http://www.multiweb.cz/via/ viagra] 
-[http://www.multiweb.cz/bphe/ buy phentermine] 
-[http://www.multiweb.cz/amb/ ambien] 
-[http://www.multiweb.cz/adip/ adipex] 
-[http://www.multiweb.cz/xan/ xanax] 
-[http://www.multiweb.cz/xeni/ xenical] 
-[http://www.multiweb.cz/cia/ cialis] 
-[http://www.multiweb.cz/val1/ valium] 
-[http://www.multiweb.cz/fior/ fioricet] 
-[http://www.multiweb.cz/tra/ tramadol] 
-[http://www.multiweb.cz/cari/ carisoprodol] 
-[http://www.multiweb.cz/bso/ buy soma] 
-[http://www.multiweb.cz/hyd/ hydrocodone] 
-[http://www.multiweb.cz/ult/ ultram] 
-[http://www.multiweb.cz/lev1/ levitra] 
-[http://www.multiweb.cz/did/ didrex] 
-[http://www.multiweb.cz/meri/ meridia] 
-[http://www.multiweb.cz/alp/ alprazolam] 
-[http://www.multiweb.cz/vico/ vicodin] 
-[http://www.multiweb.cz/dia/ diazepam] 
-[http://www.multiweb.cz/zol/ zoloft] 
-[http://www.multiweb.cz/lip/ lipitor] 
-[http://www.multiweb.cz/bvia/ buy viagra] 
-[http://www.multiweb.cz/bamb/ buy ambien] 
-[http://www.multiweb.cz/badi/ buy adipex] 
-[http://www.multiweb.cz/bxa/ buy xanax] 
-[http://www.multiweb.cz/bxe/ buy xenical] 
-[http://www.multiweb.cz/bci/ buy cialis] 
-[http://www.multiweb.cz/bval/ buy valium] 
-[http://www.multiweb.cz/bfio/ buy fioricet] 
-[http://www.multiweb.cz/btra/ buy tramadol] 
-[http://www.multiweb.cz/bcar/ buy carisoprodol] 
-[http://www.multiweb.cz/bhyd/ buy hydrocodone] 
-[http://tady.cz/bam1/ buy ambien] 
-[http://tady.cz/bad1/ buy adipex] 
-[http://tady.cz/bxan/ buy xanax] 
-[http://tady.cz/bxen/ buy xenical] 
-[http://tady.cz/bcia/ buy cialis] 
-[http://tady.cz/bvali/ buy valium] 
-[http://www.haywired.com/bam/ buy ambien] 
-[http://www.haywired.com/badi/ buy adipex] 
-[http://bambi4.no.sapo.pt/ buy ambien] 
-[http://www.haywired.com/bxan/ buy xanax] 
-[http://www.haywired.com/bxe/ buy xenical] 
-[http://www.haywired.com/bci/ buy cialis] 
-[http://www.haywired.com/bva/ buy valium] 
-[http://www.haywired.com/bfi/ buy fioricet] 
-[http://www.haywired.com/btra/ buy tramadol] 
-[http://www.haywired.com/bca/ buy carisoprodol] 
-[http://www.haywired.com/bhy/ buy hydrocodone] 
-[http://www.haywired.com/bphe/ buy phentermine] 
-[http://www.haywired.com/bvi/ buy viagra] 
-[http://www.haywired.com/did/ didrex] 
-[http://www.haywired.com/mer/ meridia] 
-[http://www.koolpages.com/bvi/ buy viagra] 
-[http://www.koolpages.com/phe/ phentermine] 
-[http://www.koolpages.com/ambi/ ambien] 
-[http://www.koolpages.com/adip/ adipex] 
-[http://www.koolpages.com/xana/ xanax] 
-[http://www.koolpages.com/xeni/ xenical] 
-[http://www.koolpages.com/cial/ cialis] 
-[http://www.goto-site.com/bphen/ buy phentermine] 
-[http://www.goto-site.com/bamb/ buy ambien] 
-[http://www.goto-site.com/badi/ buy adipex] 
-[http://www.goto-site.com/bxan/ buy xanax] 
-[http://www.goto-site.com/bxen/ buy xenical] 
-[http://www.goto-site.com/bcia/ buy cialis] 
-[http://www.goto-site.com/bval/ buy valium] 
-[http://www.goto-site.com/btra/ buy tramadol] 
-[http://www.goto-site.com/bhyd/ buy hydrocodone] 
-[http://www.goto-site.com/amb/ ambien] 
-[http://www.goto-site.com/adi/ adipex] 
-[http://www.goto-site.com/bfio/ buy fioricet] 
-[http://www.goto-site.com/bcar/ buy carisoprodol] 
-[http://www.goto-site.com/meri/ meridia] 
-[http://www.goto-site.com/alpra/ alprazolam] 
-[http://www.goto-site.com/ult/ ultram] 
-[http://www.goto-site.com/levi/ levitra] 
-[http://www.goto-site.com/did/ didrex] 
-[http://www.goto-site.com/phe/ phentermine] 
-[http://www.goto-site.com/xana/ xanax] 
-[http://www.goto-site.com/cia/ cialis] 
-[http://www.goto-site.com/xen/ xenical] 
-[http://www.goto-site.com/vico/ vicodin] 
-[http://www.goto-site.com/prop/ propecia] 
-[http://www.goto-site.com/lipi/ lipitor] 
-[http://www.goto-site.com/zolo/ zoloft] 
-[http://www.goto-site.com/val/ valium] 
-[http://www.goto-site.com/fio/ fioricet] 
-[http://www.goto-site.com/dia/ diazepam] 
-[http://www.goto-site.com/hyd/ hydrocodone] 
-[http://www.goto-site.com/cari/ carisoprodol] 
-[http://www.goto-site.com/tra/ tramadol] 
-[http://bphen.virt.cz/ buy phentermine] 
-[http://bamb.virt.cz/ buy ambien] 
-[http://badi.virt.cz/ buy adipex] 
-[http://bxan.virt.cz/ buy xanax] 
-[http://bxen.virt.cz/ buy xenical] 
-[http://bcia.virt.cz/ buy cialis] 
-[http://bval.virt.cz/ buy valium] 
-[http://bfio.virt.cz/ buy fioricet] 
-[http://btra.virt.cz/ buy tramadol] 
-[http://phen.virt.cz/ phentermine] 
-[http://bcar.virt.cz/ buy carisoprodol] 
-[http://bhyd.virt.cz/ buy hydrocodone] 
-[http://adi.virt.cz/ adipex] 
-[http://cia.virt.cz/ cialis] 
-[http://amb.virt.cz/ ambien] 
-[http://xan.virt.cz/ xanax] 
-[http://xen.virt.cz/ xenical] 
-[http://ult.virt.cz/ ultram] 
-[http://vic.virt.cz/ vicodin] 
-[http://meri.virt.cz/ meridia] 
-[http://alp.virt.cz/ alprazolam] 
-[http://lev.virt.cz/ levitra] 
-[http://did.virt.cz/ didrex] 
-[http://dia.virt.cz/ diazepam] 
-[http://prop.virt.cz/ propecia] 
-[http://lip.virt.cz/ lipitor] 
-[http://zolo.virt.cz/ zoloft] 
-[http://val.virt.cz/ valium] 
-[http://fio.virt.cz/ fioricet] 
-[http://cari.virt.cz/ carisoprodol] 
-[http://hyd.virt.cz/ hydrocodone] 
-[http://tra.virt.cz/ tramadol] 
-[http://bphen.cybton.com/ buy phentermine] 
-[http://bamb.cybton.com/ buy ambien] 
-[http://bxan.cybton.com/ buy xanax] 
-[http://badi.cybton.com/ buy adipex] 
-[http://bxen.cybton.com/ buy xenical] 
-[http://bcia.cybton.com/ buy cialis] 
-[http://bval.cybton.com/ buy valium] 
-[http://bfio.cybton.com/ buy fioricet] 
-[http://bvia.virt.cz/ buy viagra] 
-[http://bamb.zde.cz/ buy ambien] 
-[http://badi.zde.cz/ buy adipex] 
-[http://bxen.zde.cz/ buy xenical] 
-[http://bxan.zde.cz/ buy xanax] 
-[http://server.scripthost.com/guestbook?hydr hydrocodone] 
-[http://server.scripthost.com/guestbook?bhyd buy hydrocodone] 
-[http://server.scripthost.com/guestbook?xanax5 xanax] 
-[http://server.scripthost.com/guestbook?ult ultram] 
-[http://server.scripthost.com/guestbook?vico vicodin] 
-[http://server.scripthost.com/guestbook?meri meridia] 
-[http://server.scripthost.com/guestbook?alp alprazolam] 
-[http://server.scripthost.com/guestbook?lev levitra] 
-[http://server.scripthost.com/guestbook?did didrex] 
-[http://server.scripthost.com/guestbook?diaz diazepam] 
-[http://server.scripthost.com/guestbook?prop propecia] 
-[http://server.scripthost.com/guestbook?zolo zoloft] 
-[http://server.scripthost.com/guestbook?lipi lipitor] 
-[http://server.scripthost.com/guestbook?bvia buy viagra] 
-[http://server.scripthost.com/guestbook?amb ambien] 
-[http://server.scripthost.com/guestbook?bamb buy ambien] 
-[http://server.scripthost.com/guestbook?badi buy adipex] 
-[http://server.scripthost.com/guestbook?adip adipex] 
-[http://server.scripthost.com/guestbook?bxan buy xanax] 
-[http://server.scripthost.com/guestbook?xeni3 xenical] 
-[http://server.scripthost.com/guestbook?vali5 valium] 
-[http://server.scripthost.com/guestbook?fio fioricet] 
-[http://server.scripthost.com/guestbook?btra buy tramadol] 
-[http://server.scripthost.com/guestbook?cari carisoprodol] 
-[http://server.scripthost.com/guestbook?bsom buy soma] 
-[http://btra.cybton.com/ buy tramadol] 
-[http://bcar.cybton.com/ buy carisoprodol] 
-[http://bhyd.cybton.com/ buy hydrocodone] 
-[http://amb.cybton.com/ ambien] 
-[http://did.cybton.com/ didrex] 
-[http://bamb.xorg.pl/ buy ambien] 
-[http://server.scripthost.com/guestbook?orvia order viagra] 
-[http://server.scripthost.com/guestbook?orphen order phentermine] 
-[http://badi.xorg.pl/ buy adipex] 
-[http://bphen.xorg.pl/ buy phentermine] 
-[http://bxan.xorg.pl/ buy xanax] 
-[http://bxen.xorg.pl/ buy xenical] 
-[http://bval.xorg.pl/ buy valium] 
-[http://btra.xorg.pl/ buy tramadol] 
-[http://bfio.xorg.pl/ buy fioricet] 
-[http://bcar.xorg.pl/ buy carisoprodol] 
-[http://bcia.xorg.pl/ buy cialis] 
-[http://bhyd.xorg.pl/ buy hydrocodone] 
-[http://www.zyworld.com/bvia/ buy viagra] 
-[http://www.zyworld.com/bphe/ buy phentermine] 
-[http://www.zyworld.com/bamb/ buy ambien] 
-[http://www.zyworld.com/badi/ buy adipex] 
-[http://www.zyworld.com/bxan/ buy xanax] 
-[http://www.zyworld.com/bxen/ buy xenical] 
-[http://www.zyworld.com/bcia/ buy cialis] 
-[http://www.zyworld.com/bval/ buy valium] 
-[http://www.zyworld.com/bfio/ buy fioricet] 
-[http://www.zyworld.com/btra/ buy tramadol] 
-[http://www.zyworld.com/bcar/ buy carisoprodol] 
-[http://www.zyworld.com/bhyd/ buy hydrocodone] 
-[http://www.zyworld.com/meri/ meridia] 
-[http://www.zyworld.com/did2/ didrex] 
-[http://www.zyworld.com/amb/ ambien] 
-[http://www.zyworld.com/adi/ adipex] 
-[http://bphe.zde.cz/ buy phentermine] 
-[http://amb.xorg.pl/ ambien] 
-[http://adi.xorg.pl/ adipex] 
-[http://adip.cybton.com/ adipex] 
-[http://xana.xorg.pl/ xanax] 
-[http://bphe.proboards61.com/ buy phentermine] 
-[http://bamb.proboards55.com/ buy ambien] 
-[http://badip.proboards46.com/ buy adipex] 
-[http://bxana.proboards57.com/ buy xanax] 
-[http://bxen.proboards56.com/ buy xenical] 
-[http://bcia.proboards53.com/ buy cialis] 
-[http://bval.zde.cz/ buy valium] 
-[http://bcia.zde.cz/ buy cialis] 
-[http://ult.xorg.pl/ ultram] 
-[http://vico.xorg.pl/ vicodin] 
-[http://meri.xorg.pl/ meridia] 
-[http://did.xorg.pl/ didrex] 
-[http://lev.xorg.pl/ levitra] 
-[http://dia.xorg.pl/ diazepam] 
-[http://alp.xorg.pl/ alprazolam] 
-[http://prop.xorg.pl/ propecia] 
-[http://zolo.xorg.pl/ zoloft] 
-[http://lipi.xorg.pl/ lipitor] 
-[http://xeni.xorg.pl/ xenical] 
-[http://phe.xorg.pl/ phentermine] 
-</div> 

Revision as of 02:00, 8 February 2006

This is how I installed the kismet_drone on the wrt54g (v2.2) while running the kismet_server and kismet_client on a Linux box. (I was using version 2005.06.R1 of kismet.)

Also tested on a v2.0 wrt, dd-wrt firmware v22-r2 and kismet version kismet-2005-08-r1.

Contents

Summary

The wrt's are slow machines, so you cannot run the whole of the whole of the kismet program directly on the wrt. Kismet is split into three separate modules -- the drone, the server and the client. The drone is a small program which gets the raw data from the wireles card itself. The client is the user interface to display the results on your screen. The server is the piece if software that sits in the middle of the drone and the client.

The method shown here puts the only the drone on the wrt and runs the server and client on your linux box.

Note: The drone on the wrt doesent support channel hopping to search through all of the wireless channels, so a small script has to be ran on the wrt to manaully do the channel hopping. Also, the wireless driver on the wrt doesent support the reporting of the recieved signal strength so all of the signals reported to the user via the client will not display the correct signal strength.

Preparing the wrt54g

Installing the drone

First, I installed the latest release of the DD-WRT firmware.

I then using the web interface, set it up to use a static ip address, disabled the dhcp server and also enabled telnet and ssh access to the wrt. (You may prefer to leave the dhcp server running if you do not have another dhcp server on your network). I also turned off the firewall.

Now we need to get the files onto the wrt. There are several ways of doing this. You may find it easier to copy the files to a local desktop machine and then later copy them to the wrt as this means that you can edit the conf file on the desktop (using the editor of your choice) rather than having to use the 'vi' editor on the wrt.

(Quick Vi Tutorial : http://math.la.asu.edu/vi_tutorial/vi3.html)

Method 1 - using a local web-server

On the Linux desktop machine at a console, type

telnet <address of wrt>

(If you have sshd enabled, you could us ssh instead.)

Log in using user name 'root' and the same password as the one for the wrt's web interface (the default is 'admin').

Then at another terminal, download the MIPS binaries for the wrt. Download them from the kismet website http://www.kismetwireless.net/download.shtml . I used version 2005-06-R1a which was the latest version.

cd into the directory where you downloaded it to and unzip it.

tar -zxvf kismet-2005-06-R1a-wrt54.tar.gz

As I have a local web-server running on my desktop box, I decided to use it and wget to copy the kismet files over to the wrt. So I then copied the kismet_drone and conf/kismet_drone.conf files to the root of my web-server.

Go back to your other terminal with the telnet session to the wrt.

The /tmp directory is the only place on the wrt's filesystem which is writable as it is stored on a ramdisk. This means that every time that you power down the wrt, you have to reload the kismet files to it.

cd /tmp

Get files onto wrt

wget http://<ip address of desktop box>/kismet_drone
wget http://<ip address of desktop box>/kismet_drone.conf

Put kismet_drone.conf file in /tmp/etc directory.

mv kismet_drone.conf /tmp/etc 

and make drone executable

chmod +x /tmp/kismet_drone

Method 2 - get files directly from the Internet

This method assumes that your wrt has direct access to the Internet so that you can directly download the compressed files from the kismet site onto the wrt using 'wget'.

Telnet into the wrt and get the compressed MIPS files from the kismet site. Unzip them, move the kismet_drone and kismet_drone.conf files the the correct place, delete the unwanted files and then make the drone file executable. (If you are using a more up to date version of kismet, you will have to use a different URL and file names.)

telnet <ip address of wrt>
cd /tmp
wget http://www.kismetwireless.net/code/kismet-2005-06-R1a-wrt54.tar.gz
tar -zxf kismet-2005-06-R1a-wrt54.tar.gz
mv kismet-2005-06-R1a-wrt54/kismet_drone /tmp/kismet_drone
mv kismet-2005-06-R1a-wrt54/conf/kismet_drone.conf  /tmp/etc/kismet_drone.conf
rm kismet-2005-06-R1a-wrt54.tar.gz
rm -rf kismet-2005-06-R1a-wrt54
chmod +x /tmp/kismet_drone

Method 3 - using scp to copy files from a local Linux box

You could probably also use scp to load the files to the wrt from a local desktop box instead of wget/web-server.

Download the kismet drone wrt files to a directory on your machine. Open a terminal and enter the directory that you downloaded the files into with

cd <path to dir>

Then unzip the kismet files with

tar -zxvf <kismet file>

This will unzip the files and put them into a subdirectory. Enter this directory with

cd <kismet directory>

At this point it is probably a good time to edit the config files instead of having to do it later on the wrt itself. (See the 'configuring the drone' section below)

Then copy the files over to the wrt using scp to the /tmp directory on the wrt.

scp kismet_drone <ip address of wrt>:/tmp
scp conf/kismet_drone.conf <ip address of wrt>:/tmp/etc

Configure drone

You then need to edit the drones conf file -- I used the vi editor to modify the conf file. I believe that vi is the only editor that comes with the firmware. If you have never used it before, you might need to google for a quick vi guide. Alternatively, you could modify the conf file on your desktop machine with your favorite editor before copying the files to the wrt.

vi /tmp/etc/kismet_drone.conf

Change the line

allowedhosts=127.0.0.1

to

allowedhosts=<address of desktop box>

(You could also allow access to all the machines on your local network by doing 'allowedhosts=a.b.c.0/24' where a.b.c are the first three octets of your networks ip address. This would also make it possible for more than one machine at a time to connect to the drone and display the results.)

Next, change the line

source=wrt54g,eth2,Kismet-Drone

to

source=wrt54g,prism0,Kismet-Drone

(I have read that this line should be different if running another version of the hardware - this works with v2.2 of the wrt54g).

Running the drone

Now we start the drone...but first, we need to put the wireless interface into passive monitoring mode.

wl ap 0            #switch off access point mode
wl passive 1
wl channel <channel number>

The driver for the wrt doesn't do channel hopping, so it needs to be done with a small script running on the wrt.

See channel hopping on kismet drone.

Then run the drone.

/tmp/kismet_drone

If this works, it will display some messages ending with 'Allowing connections from <desktop ip address>'. You will need to keep the telnet session open, as closing it will terminate the drone.

Preparing the desktop

Install server and client

You will need to be logged in as root. As I use a debian based Linux distro, I started by using apt to install kismet.

apt-get install kismet

Unfortunately for me, the version of kismet available using apt was not the same as the version as the drone and the drone was unable to talk to the server as the protocols had changed between the two versions of kismet. The versions (probably) need to be the same. In the end, I installed kismet on my desktop from source from the kismet site (http://www.kismetwireless.net/download.shtml).

cd <download directory>
tar -zxvf <kismet source file>tar.gz
cd <kismet dir>
./configure
make
make install

Configure kismet

[note: I found that the config files were in /etc/kismet when installing using apt-get, but they were in /usr/local/etc when installing from source.] First, you need to make a kismet user for the server to run as.

adduser kismet

...and fill in the blanks. Then you need to edit the /usr/local/etc/kismet.conf file and change

suiduser=your_user_here

to

suiduser=kismet

Set the wireless source by changing

source=none,none,addme

to

source=kismet_drone,<wrt ip address>:3501,wrt54g

I found that kismet couldn't write its log files to the default directory, so changed the line

logtemplate=%n-%d-%i.%l

to

logtemplate=%h/%n-%d-%i.%l

so that the log files get saved in the kismet users directory (/home/kismet).

Run kismet server and client

Now everything should be ready. First you will need to run the server in the background. (I assume that you still have the kismet_drone running via a telnet session to the wrt (see the 'running the drone' section above.)) then run the GUI client.

/usr/local/bin/kismet_server &
/usr/local/bin/kismet_client

Stopping kismet

Press shift Q in the GUI to stop the kismet_client, then stop the server which we set running as a background process.

killall kismet_server

To kill the drone, press ctrl-C in the telnet session.