Kismet on Linux

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:04, 17 October 2006 (edit)
1161046218 (Talk | contribs)

← Previous diff
Revision as of 14:15, 17 October 2006 (edit) (undo)
AycheKay (Talk | contribs)
(Delete Spam)
Next diff →
Line 106: Line 106:
[[Category:English documentation]] [[Category:English documentation]]
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
-<div style="display:none"> 
-[l_sp_9] 
-[http://top20man.in.ua/tankless.htm Tankless] 
-[http://top20man.in.ua/heater-water.htm Heater Water] 
-[http://top20man.in.ua/heater-tankless-water.htm Heater Tankless Water] 
-[http://top20man.in.ua/heater-hot-water.htm Heater Hot Water] 
-[http://top20man.in.ua/heater-hot-tankless-water.htm Heater Hot Tankless Water] 
-[http://top20man.in.ua/electric-heater-tankless-water.htm Electric Heater Tankless Water] 
-[http://top20man.in.ua/electric-heater-water.htm Electric Heater Water] 
-[http://top20man.in.ua/heater-solar-water.htm Heater Solar Water] 
-[http://top20man.in.ua/gas-heater-water.htm Gas Heater Water] 
-[http://top20man.in.ua/gas-heater-hot-water.htm Gas Heater Hot Water] 
-[http://top20man.in.ua/bosch-heater-tankless-water.htm Bosch Heater Tankless Water] 
-[http://top20man.in.ua/heater-rheem-water.htm Heater Rheem Water] 
-[http://top20man.in.ua/electric-heater-hot-water.htm Electric Heater Hot Water] 
-[http://top20man.in.ua/bed-heater-water.htm Bed Heater Water] 
-[http://top20man.in.ua/heater-rinnai-tankless-water.htm Heater Rinnai Tankless Water] 
-[http://top20man.in.ua/gas-heater-tankless-water.htm Gas Heater Tankless Water] 
-[http://top20man.in.ua/demand-heater-water.htm Demand Heater Water] 
-[http://top20man.in.ua/heater-richmond-water.htm Heater Richmond Water] 
-[http://top20man.in.ua/heater-services-water.htm Heater Services Water] 
-[http://top20man.in.ua/heater-state-water.htm Heater State Water] 
-[http://top20man.in.ua/heater-rinnai-water.htm Heater Rinnai Water]  
-[http://top20man.in.ua/bosch-heater-water.htm Bosch Heater Water]  
-[http://top20man.in.ua/ao-heater-smith-water.htm Ao Heater Smith Water]  
-[http://top20man.in.ua/heater-water-whirlpool.htm Heater Water Whirlpool] 
-[http://top20man.in.ua/bradford-heater-water-white.htm Bradford Heater Water White] 
-[http://top20man.in.ua/heater-repair-water.htm Heater Repair Water] 
-[http://top20man.in.ua/electric-heater-hot-tankless-water.htm Electric Heater Hot Tankless Water] 
-[http://top20man.in.ua/gas-heater-hot-tankless-water.htm Gas Heater Hot Tankless Water] 
-[http://top20man.in.ua/dealer-heater-water.htm Dealer Heater Water] 
-[http://top20man.in.ua/40-electric-gal-heater-water.htm 40 Electric Gal Heater Water] 
-[http://top20man.in.ua/heater-hot-instant-water.htm Heater Hot Instant Water] 
-[http://top20man.in.ua/american-heater-water.htm American Heater Water] 
-[http://top20man.in.ua/heater-o-smith-water.htm Heater O Smith Water] 
-[http://top20man.in.ua/ge-heater-water.htm Ge Heater Water] 
-[http://top20man.in.ua/heater-hot-solar-water.htm Heater Hot Solar Water] 
-[http://top20man.in.ua/demand-heater-hot-water.htm Demand Heater Hot Water] 
-[http://top20man.in.ua/heater-rv-water.htm Heater Rv Water] 
-[http://top20man.in.ua/heater-paloma-tankless-water.htm Heater Paloma Tankless Water] 
-[http://top20man.in.ua/heater-instant-water.htm Heater Instant Water] 
-[http://top20man.in.ua/heater-paloma-water.htm Heater Paloma Water] 
-[http://top20man.in.ua/heater-propane-water.htm Heater Propane Water] 
-[http://top20man.in.ua/atwood-heater-water.htm Atwood Heater Water] 
-[http://top20man.in.ua/heater-noritz-water.htm Heater Noritz Water] 
-[http://top20man.in.ua/heater-hot-rheem-water.htm Heater Hot Rheem Water] 
-[http://top20man.in.ua/commercial-heater-water.htm Commercial Heater Water] 
-[http://top20man.in.ua/heater-rheem-tankless-water.htm Heater Rheem Tankless Water] 
-[http://top20man.in.ua/heater-noritz-tankless-water.htm Heater Noritz Tankless Water] 
-[http://top20man.in.ua/heater-marathon-water.htm Heater Marathon Water] 
-[http://top20man.in.ua/gas-heater-natural-water.htm Gas Heater Natural Water] 
-[http://top20man.in.ua/heater-review-tankless-water.htm Heater Review Tankless Water] 
-[http://top20man.in.ua/heater-polaris-water.htm Heater Polaris Water] 
-[http://top20man.in.ua/heater-installation-water.htm Heater Installation Water] 
-[http://top20man.in.ua/heater-indirect-water.htm Heater Indirect Water] 
-[http://top20man.in.ua/heater-hot-price-water.htm Heater Hot Price Water] 
-[http://top20man.in.ua/heater-reliance-water.htm Heater Reliance Water] 
-[http://top20man.in.ua/heat-heater-pump-water.htm Heat Heater Pump Water] 
-[http://top20man.in.ua/demand-electric-heater-water.htm Demand Electric Heater Water] 
-[http://top20man.in.ua/heater-part-water.htm Heater Part Water] 
-[http://top20man.in.ua/heater-hot-rinnai-water.htm Heater Hot Rinnai Water] 
-[http://top20man.in.ua/a-o-heater-smith-water.htm A O Heater Smith Water] 
-[http://top20man.in.ua/heater-tankless-titan-water.htm Heater Tankless Titan Water] 
-[http://top20man.in.ua/heater-lochinvar-water.htm Heater Lochinvar Water] 
-[http://top20man.in.ua/heater-suburban-water.htm Heater Suburban Water] 
-[http://top20man.in.ua/heater-problem-water.htm Heater Problem Water] 
-[http://top20man.in.ua/heater-hot-rv-water.htm Heater Hot Rv Water] 
-[http://top20man.in.ua/gas-heater-natural-tankless-water.htm Gas Heater Natural Tankless Water] 
-[http://top20man.in.ua/heater-renco-tankless-water.htm Heater Renco Tankless Water] 
-[http://top20man.in.ua/heater-takagi-tankless-water.htm Heater Takagi Tankless Water] 
-[http://top20man.in.ua/heater-hot-repair-water.htm Heater Hot Repair Water] 
-[http://top20man.in.ua/heater-hot-rinnai-tankless-water.htm Heater Hot Rinnai Tankless Water] 
-[http://top20man.in.ua/heater-timer-water.htm Heater Timer Water] 
-[http://top20man.in.ua/heater-hot-water-whirlpool.htm Heater Hot Water Whirlpool] 
-[http://top20man.in.ua/heater-point-use-water.htm Heater Point Use Water] 
-[http://top20man.in.ua/bosch-electric-heater-tankless-water.htm Bosch Electric Heater Tankless Water] 
-[http://top20man.in.ua/heater-titan-water.htm Heater Titan Water] 
-[http://top20man.in.ua/electric-heater-powerstar-tankless-water.htm Electric Heater Powerstar Tankless Water] 
-[http://top20man.in.ua/bradford-heater-hot-water-white.htm Bradford Heater Hot Water White] 
-[http://top20man.in.ua/heater-select-state-water.htm Heater Select State Water] 
-[http://top20man.in.ua/heater-ruud-water.htm Heater Ruud Water] 
-[http://top20man.in.ua/heater-sears-water.htm Heater Sears Water] 
-[http://top20man.in.ua/heater-takagi-water.htm Heater Takagi Water] 
-[http://top20man.in.ua/ariston-heater-water.htm Ariston Heater Water] 
-[http://top20man.in.ua/bosch-heater-hot-tankless-water.htm Bosch Heater Hot Tankless Water] 
-[http://top20man.in.ua/heater-instantaneous-water.htm Heater Instantaneous Water] 
-[http://top20man.in.ua/heater-price-water.htm Heater Price Water] 
-[http://top20man.in.ua/heater-power-vent-water.htm Heater Power Vent Water] 
-[http://top20man.in.ua/heater-install-water.htm Heater Install Water] 
-[http://top20man.in.ua/bosch-gas-heater-tankless-water.htm Bosch Gas Heater Tankless Water] 
-[http://top20man.in.ua/heater-portable-water.htm Heater Portable Water] 
-[http://top20man.in.ua/heater-home-mobile-water.htm Heater Home Mobile Water] 
-[http://top20man.in.ua/build-heater-solar-water.htm Build Heater Solar Water] 
-[http://top20man.in.ua/fired-heater-water-wood.htm Fired Heater Water Wood] 
-[http://top20man.in.ua/drain-heater-water.htm Drain Heater Water] 
-[http://top20man.in.ua/heater-renai-tankless-water.htm Heater Renai Tankless Water] 
-[http://top20man.in.ua/heater-hot-problem-water.htm Heater Hot Problem Water] 
-[http://top20man.in.ua/heater-propane-tankless-water.htm Heater Propane Tankless Water] 
-[http://top20man.in.ua/baseboard-heater-hot-water.htm Baseboard Heater Hot Water] 
-[http://top20man.in.ua/heater-maintenance-water.htm Heater Maintenance Water] 
-[http://top20man.in.ua/heater-review-water.htm Heater Review Water] 
-[http://top20man.in.ua/gas-heater-rheem-water.htm Gas Heater Rheem Water] 
-[http://top20man.in.ua/bosch-heater-hot-water.htm Bosch Heater Hot Water] 
-</div> 

Revision as of 14:15, 17 October 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.)

Contents

Preparing the wrt54g

Installing the drone

First, I installed the seavsoft firmware (Firmware_Alchemy-6.0rc6.bin) on the wrt54g v2.2 (I assume it will also work with 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 access to the wrt. (You may prefer to leave the dhcp server running if you do not have ahother dhcp server on your network). I also turned off the firewall.

On the Linux desktop machine at a console, type

telnet <address of wrt>

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 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

(You could probably also use scp to load the files to the wrt instead of wget/web-server.)

Configure drone

You then need to edit the drones conf file (I used the vi editor).

vi /tmp/etc/kismet_drone.conf

Change the line

allowedhosts=127.0.0.1

to

allowedhosts=<address of desktop box>

and 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 disassoc
wl passive 1
wl promisc 1

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 drone

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 to the wrt to kill the drone.