Kali-WIFI攻防(一)----无线网络嗅探工具Kismet

一、工具简介


Kismet是802.11二层无线网络探测器,嗅探器和入侵检测系统。它将与支持原始监视(rfmon)模式中的任何无线网卡的工作,并能嗅出的802.11a / b / g / n的流量。它可以使用其他程序来播放音频警报网络事件,读出网络摘要,或提供GPS坐标。这是包含芯,客户端和服务器的主包。


二、在kismet中包含的工具


kismet_server – Kismet的服务组件

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_server -h  
  2. Usage: kismet_server [OPTION]  
  3. Nearly all of these options are run-time overrides for values in the  
  4. kismet.conf configuration file.  Permanent changes should be made to  
  5. the configuration file.  
  6.  *** Generic Options ***  
  7.  -v, --version                Show version  
  8.  -f, --config-file <file>     Use alternate configuration file  
  9.      --no-line-wrap           Turn of linewrapping of output  
  10.                               (for grep, speed, etc)  
  11.  -s, --silent                 Turn off stdout output after setup phase  
  12.      --daemonize              Spawn detatched in the background  
  13.      --no-plugins             Do not load plugins  
  14.      --no-root                Do not start the kismet_capture binary  
  15.                                when not running as root.  For no-priv  
  16.                                remote capture ONLY.  
  17.   
  18.  *** Kismet Client/Server Options ***  
  19.  -l, --server-listen          Override Kismet server listen options  
  20.   
  21.  *** Kismet Remote Drone Options ***  
  22.      --drone-listen           Override Kismet drone listen options  
  23.   
  24.  *** Dump/Logging Options ***  
  25.  -T, --log-types <types>      Override activated log types  
  26.  -t, --log-title <title>      Override default log title  
  27.  -p, --log-prefix <prefix>    Directory to store log files  
  28.  -n, --no-logging             Disable logging entirely  
  29.   
  30.  *** Packet Capture Source Options ***  
  31.  -c, --capture-source         Specify a new packet capture source  
  32.                               (Identical syntax to the config file)  
  33.  -C, --enable-capture-sources Enable capture sources (comma-separated  
  34.                               list of names or interfaces)  
  35.   
  36.  *** Kismet Net Tracking Options ***  
  37.      --filter-tracker         Tracker filtering  
  38.   
  39.  *** Kismet GPS Options ***  
  40.      --use-gpsd-gps (h:p)     Use GPSD-controlled GPS at host:port  
  41.                               (default: localhost:2947)  
  42.      --use-nmea-gps (dev)     Use local NMEA serial GPS on device  
  43.                               (default: /dev/ttyUSB0)  
  44.      --use-virtual-gps  
  45.                 (lat,lon,alt) Use a virtual fixed-position gps record  
  46.      --gps-modelock <t:f>     Force broken GPS units to act as if they  
  47.                               have a valid signal (true/false)  
  48.      --gps-reconnect <t:f>    Reconnect if a GPS device fails  
  49.                               (true/false)  


中文对照:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_server -h  
  2. Usage: kismet_server [OPTION]  
  3. 几乎所有这些选项都是在kismet.conf配置文件。   
  4. 应该永久改变配置文件.  
  5.  *** 通用选项 ***  
  6.  -v, --version                显示版本  
  7.  -f, --config-file <file>     使用备用配置文件  
  8.      --no-line-wrap           对linewrapping输出转  
  9.                               (for grep, speed, etc)  
  10.  -s, --silent                 在设置阶段后关闭stdout输出  
  11.      --daemonize              后台运行  
  12.      --no-plugins             不要加载插件  
  13.      --no-root                当不以root身份运行时,不要启动kismet_capture二进制文件。 对于no-priv远程捕获仅。  
  14.   
  15.  *** Kismet客户端/服务器选项 ***  
  16.  -l, --server-listen          覆盖Kismet服务器侦听选项  
  17.   
  18.  *** Kismet远程无人机选项 ***  
  19.      --drone-listen           覆盖Kismet无人机听取选项  
  20.   
  21.  *** 转储/记录选项 ***  
  22.  -T, --log-types <types>      覆盖激活的日志类型  
  23.  -t, --log-title <title>      覆盖默认日志标题  
  24.  -p, --log-prefix <prefix>    用于存储日志文件的目录  
  25.  -n, --no-logging             完全禁用日志记录  
  26.   
  27.  *** 数据包捕获源选项 ***  
  28.  -c, --capture-source         指定新的数据包捕获源(配置文件的相同语法)  
  29.  -C, --enable-capture-sources 启用捕获源(以逗号分隔的名称或接口列表)  
  30.   
  31.  *** Kismet Net跟踪选项 ***  
  32.      --filter-tracker         跟踪器过滤  
  33.   
  34.  *** Kismet GPS选项 ***  
  35.      --use-gpsd-gps (h:p)     在主机端口使用GPSD控制的GPS(默认值:localhost:2947)  
  36.      --use-nmea-gps (dev)     在设备上使用本地NMEA串行GPS(默认值:/ dev / ttyUSB0)  
  37.      --use-virtual-gps  
  38.                 (lat,lon,alt) 使用虚拟固定位置gps记录  
  39.      --gps-modelock <t:f>     强制破坏GPS单元,以使其具有有效信号(true / false)  
  40.      --gps-reconnect <t:f>    重新连接GPS设备失败(true / false)  


kismet_client - kismet的客户端组件

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_client -h  
  2. Usage: kismet_client [OPTION]  
  3.  *** Generic Options ***  
  4.  -h, --help                   The obvious  


要在Kismet IPC框架内运行

kismet_drone – Kismet无人机组件

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_drone -h  
  2. Usage: kismet_drone [OPTION]  
  3. Nearly all of these options are run-time overrides for values in the  
  4. kismet.conf configuration file.  Permanent changes should be made to  
  5. the configuration file.  
  6.  *** Generic Options ***  
  7.  -f, --config-file            Use alternate configuration file  
  8.      --no-line-wrap           Turn of linewrapping of output  
  9.                               (for grep, speed, etc)  
  10.  -s, --silent                 Turn off stdout output after setup phase  
  11.      --daemonize              Spawn detatched in the background  
  12.   
  13.  *** Kismet Remote Drone Options ***  
  14.      --drone-listen           Override Kismet drone listen options  
  15.   
  16.  *** Packet Capture Source Options ***  
  17.  -c, --capture-source         Specify a new packet capture source  
  18.                               (Identical syntax to the config file)  
  19.  -C, --enable-capture-sources Enable capture sources (comma-separated  
  20.                               list of names or interfaces)  


中文版:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_drone -h  
  2. Usage: kismet_drone [OPTION]  
  3. 几乎所有这些选项都是在kismet.conf配置文件。   
  4. 应该永久改变配置文件.  
  5.  *** 通用选项 ***  
  6.  -f, --config-file            使用备用配置文件  
  7.      --no-line-wrap           对linewrapping输出转(for grep, speed, etc)  
  8.  -s, --silent                 在设置阶段后关闭stdout输出  
  9.      --daemonize              后台运行  
  10.   
  11.  *** Kismet远程无人机选项 ***  
  12.      --drone-listen           覆盖Kismet无人机听取选项  
  13.   
  14.  *** 数据包捕获源选项 ***  
  15.  -c, --capture-source         指定新的数据包捕获源(配置文件的相同语法)  
  16.  -C, --enable-capture-sources 启用捕获源(以逗号分隔的名称或接口列表)  

kismet –  主要的Kismet发射器

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet -h  
  2. Usage: /usr/bin/kismet_server [OPTION]  
  3. Nearly all of these options are run-time overrides for values in the  
  4. kismet.conf configuration file.  Permanent changes should be made to  
  5. the configuration file.  
  6.  *** Generic Options ***  
  7.  -v, --version                Show version  
  8.  -f, --config-file <file>     Use alternate configuration file  
  9.      --no-line-wrap           Turn of linewrapping of output  
  10.                               (for grep, speed, etc)  
  11.  -s, --silent                 Turn off stdout output after setup phase  
  12.      --daemonize              Spawn detatched in the background  
  13.      --no-plugins             Do not load plugins  
  14.      --no-root                Do not start the kismet_capture binary  
  15.                                when not running as root.  For no-priv  
  16.                                remote capture ONLY.  
  17.   
  18.  *** Kismet Client/Server Options ***  
  19.  -l, --server-listen          Override Kismet server listen options  
  20.   
  21.  *** Kismet Remote Drone Options ***  
  22.      --drone-listen           Override Kismet drone listen options  
  23.   
  24.  *** Dump/Logging Options ***  
  25.  -T, --log-types <types>      Override activated log types  
  26.  -t, --log-title <title>      Override default log title  
  27.  -p, --log-prefix <prefix>    Directory to store log files  
  28.  -n, --no-logging             Disable logging entirely  
  29.   
  30.  *** Packet Capture Source Options ***  
  31.  -c, --capture-source         Specify a new packet capture source  
  32.                               (Identical syntax to the config file)  
  33.  -C, --enable-capture-sources Enable capture sources (comma-separated  
  34.                               list of names or interfaces)  
  35.   
  36.  *** Kismet Net Tracking Options ***  
  37.      --filter-tracker         Tracker filtering  
  38.   
  39.  *** Kismet GPS Options ***  
  40.      --use-gpsd-gps (h:p)     Use GPSD-controlled GPS at host:port  
  41.                               (default: localhost:2947)  
  42.      --use-nmea-gps (dev)     Use local NMEA serial GPS on device  
  43.                               (default: /dev/ttyUSB0)  
  44.      --use-virtual-gps  
  45.                 (lat,lon,alt) Use a virtual fixed-position gps record  
  46.      --gps-modelock <t:f>     Force broken GPS units to act as if they  
  47.                               have a valid signal (true/false)  
  48.      --gps-reconnect <t:f>    Reconnect if a GPS device fails  
  49.                               (true/false)  


中文版:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1.  root@kali:~# kismet -h  
  2. Usage: /usr/bin/kismet_server [OPTION]  
  3. 几乎所有这些选项都是在kismet.conf配置文件。   
  4. 应该永久改变配置文件.  
  5.  *** 通用选项 ***  
  6.  -v, --version                显示版本  
  7.  -f, --config-file <file>     使用备用配置文件  
  8.      --no-line-wrap           对linewrapping输出转  
  9.                               (for grep, speed, etc)  
  10.  -s, --silent                 在设置阶段后关闭stdout输出  
  11.      --daemonize              后台运行  
  12.      --no-plugins             不要加载插件  
  13.      --no-root                当不以root身份运行时,不要启动kismet_capture二进制文件。 对于no-priv远程捕获仅。  
  14.   
  15.  *** Kismet客户端/服务器选项 ***  
  16.  -l, --server-listen          覆盖Kismet服务器侦听选项  
  17.   
  18.  *** Kismet远程无人机选项 ***  
  19.      --drone-listen           覆盖Kismet无人机听取选项  
  20.   
  21.  *** 转储/记录选项 ***  
  22.  -T, --log-types <types>      覆盖激活的日志类型  
  23.  -t, --log-title <title>      覆盖默认日志标题  
  24.  -p, --log-prefix <prefix>    用于存储日志文件的目录  
  25.  -n, --no-logging             完全禁用日志记录  
  26.   
  27.  *** 数据包捕获源选项 ***  
  28.  -c, --capture-source         指定新的数据包捕获源(配置文件的相同语法)  
  29.  -C, --enable-capture-sources 启用捕获源(以逗号分隔的名称或接口列表)  
  30.   
  31.  *** Kismet Net跟踪选项 ***  
  32.      --filter-tracker         跟踪器过滤  
  33.   
  34.  *** Kismet GPS选项 ***  
  35.      --use-gpsd-gps (h:p)     在主机端口使用GPSD控制的GPS(默认值:localhost:2947)  
  36.      --use-nmea-gps (dev)     在设备上使用本地NMEA串行GPS(默认值:/ dev / ttyUSB0)  
  37.      --use-virtual-gps  
  38.                 (lat,lon,alt) 使用虚拟固定位置gps记录  
  39.      --gps-modelock <t:f>     强制破坏GPS单元,以使其具有有效信号(true / false)  
  40.      --gps-reconnect <t:f>    重新连接GPS设备失败(true / false)  


三、示例


kismet_server 使用示例


启动Kismet服务器,使用无线接口作为捕获源(-c wlan0),并使用外部GPSD选项(-use-gpsd-gps):

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet_server -c wlan0 --use-gpsd-gps  
  2. ERROR: Kismet was started as root, NOT launching external control binary.    
  3.        This is NOT the preferred method of starting Kismet as Kismet will   
  4.        continue to run as root the entire time.  Please read the README   
  5.        file section about Installation & Security and be sure this is what   
  6.        you want to do.  
  7. INFO: Reading from config file /etc/kismet/kismet.conf  
  8. INFO: No 'dronelisten' config line and no command line drone-listen   
  9.       argument given, Kismet drone server will not be enabled.  
  10. INFO: Created alert tracker...  
  11. INFO: Creating device tracker...  
  12. INFO: Registered 80211 PHY as id  


kismet用法示例

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. root@kali:~# kismet  



使用Kismet扫描


Kismet是一个图形化界面的无线网络扫描工具,该工具通过测量周围无线信号,可以扫描到附近所有可用的AP及所使用的信道等。


查看网卡是否连接: ifconfig




启动Kismet




提示:


Kismet以root身份运行
kismet以root身份启动,这不是推荐的方式开始kismet,因为它可能是危险的 - 风险
从您的系统中任何编程错误都增加了请参阅自述文件“suid installation and security”
更多的建议


点击OK.又提示




自动启动kismet服务器?
启动kismet服务器并自动连接,如果你使用kismet服务器从别的地方开始选择,不并更改启动首选项


选择YES,然后设置kismet需要启动的的一些服务




这里选择默认的。




该界面显示没有被定义的包资源,是否要添加,这里选择YES




并输入网卡名,点击ADD。




然后点击下面的Close Console window关闭控制台。




这就是扫描到的一些无线信息。随便选择一个wifi然后双击一下,就能查看wifi的详细信息,如上面的"Hayi-D11"




然后关闭这个窗口




退出kismet




退出之后,此时终端会显示一些日志信息




我们来查看下日志文件




这里有五个日志文件,使用了不同的后戳名,其中:

● alert:该文件包括所有的禁告信息

● gpsxml:如果使用了GPS源,则相关的GPS数据保存该文件中

● nettxt:包括所有收集的文件输出信息

● netxml:包括所有的xml格式的数据

● pcapdump:包括整个会话捕获的数据包

  • 0
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值