Kismet安装与使用

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
zhongshu_1988
帖子: 2
注册时间: 2012-08-03 10:46

Kismet安装与使用

#1

帖子 zhongshu_1988 »

操作系统:Ubuntu 12.04

安装Kismet
下载源码:kismet-old-2009-05-R1
http://www.kismetwireless.net/code/kism ... -R1.tar.gz
Kismet最新版本是Kismet-2011-03-R2,但我尝试安装运行该版本,调了一天始终通不过,不知道什么原因。

#tar –zxvf kismet-old-2009-05-R1.tar.gz
#cd kismet-old-2009-05-R1
#./configure –disable-setuid
#make dep
#sudo make install

配置Kismet
正确配置Kismet之前,必须先获知设备无线网卡型号,接口类型以及无线网卡驱动。
#iwconfig
获知无线网卡接口为wlan0
#lspci
获知无线网卡型号为Broadcom Corporation BCM4312 802.11b/g LP-PHY
#lspci –v
获知无线网卡驱动为b43

#cd /usr/local/etc
# sudo vi kismet.conf
编辑
source=b43,wlan0,Broadcom
:wq

运行Kismet
#cd kismet-old-2009-05-R1
#sudo kismet
如果没有错误,此时就可以看到在这个覆盖区内的802.11信号源了,按空格进入主视图。我们需要进入选择视图,按S,然后按C,此时你就可以使用上下按键切换各信号源,选中你要查看的信号源按回车后就可以获取到所对应的详细信息。按Q回到选择视图,再按C就可以查看到该WLAN内所有的客户端的详细信息了。在主视图或选择视图下按SHIFT+Q可以安全退出Kismet。


可能出现的错误:
1. configure时,出错:neither uclibc uclibc++ or standard gcc stdc++ libraries found,原因:缺少c++编译软件包,解决:#sudo apt-get install build-essential
2. configure时,出错:Failed to find libcurses or libncurses,原因:缺少libcurses或libncurses软件包,解决:sudo apt-get install libncurses-dev
3. configure时,出错:could not find working libpcap,原因:缺少libpcap软件包,解决:sudo apt-get install libpcap-dev
4. 配置时,iwconfig显示无线网卡接口为eth1,而不是wlan0,这是由于无线网卡的驱动造成的。此时,我们需要更换无线网卡的驱动。对于我的网卡BCM4312在Ubuntu12.04默认使用的驱动是wl,这个是不支持Kismet的,需要安装b43的驱动才行。
查看是否加载了wl驱动模块
#lsmod|grep wl
如果内核中使用的是默认wl驱动,移除wl
#modprobe -r wl
在源里搜索b43驱动
#apt-cache search b43
b43-fwcutter - Utility for extracting Broadcom 43xx firmware
firmware-b43-installer - Installer package for firmware for the b43 driver
firmware-b43-lpphy-installer - Installer package for firmware for the b43 driver (LP-PHY version)
firmware-b43legacy-installer - Installer package for firmware for the b43legacy driver
参考网卡型号BCM4312 802.11b/g LP-PHY,选择firmware-b43-lpphy-installer驱动
安装新无线网卡驱动
# sudo apt-get install firmware-b43-lpphy-installer
重启设备
回复