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

2024-06-17 05:58

本文主要是介绍Kali-WIFI攻防(一)----无线网络嗅探工具Kismet,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、工具简介


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


二、在kismet中包含的工具


kismet_server – Kismet的服务组件

root@kali:~# kismet_server -h
Usage: kismet_server [OPTION]
Nearly all of these options are run-time overrides for values in the
kismet.conf configuration file.  Permanent changes should be made to
the configuration file.*** Generic Options ***-v, --version                Show version-f, --config-file <file>     Use alternate configuration file--no-line-wrap           Turn of linewrapping of output(for grep, speed, etc)-s, --silent                 Turn off stdout output after setup phase--daemonize              Spawn detatched in the background--no-plugins             Do not load plugins--no-root                Do not start the kismet_capture binarywhen not running as root.  For no-privremote capture ONLY.*** Kismet Client/Server Options ***-l, --server-listen          Override Kismet server listen options*** Kismet Remote Drone Options ***--drone-listen           Override Kismet drone listen options*** Dump/Logging Options ***-T, --log-types <types>      Override activated log types-t, --log-title <title>      Override default log title-p, --log-prefix <prefix>    Directory to store log files-n, --no-logging             Disable logging entirely*** Packet Capture Source Options ***-c, --capture-source         Specify a new packet capture source(Identical syntax to the config file)-C, --enable-capture-sources Enable capture sources (comma-separatedlist of names or interfaces)*** Kismet Net Tracking Options ***--filter-tracker         Tracker filtering*** Kismet GPS Options ***--use-gpsd-gps (h:p)     Use GPSD-controlled GPS at host:port(default: localhost:2947)--use-nmea-gps (dev)     Use local NMEA serial GPS on device(default: /dev/ttyUSB0)--use-virtual-gps(lat,lon,alt) Use a virtual fixed-position gps record--gps-modelock <t:f>     Force broken GPS units to act as if theyhave a valid signal (true/false)--gps-reconnect <t:f>    Reconnect if a GPS device fails(true/false)


中文对照:

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


kismet_client - kismet的客户端组件

root@kali:~# kismet_client -h
Usage: kismet_client [OPTION]*** Generic Options ***-h, --help                   The obvious


要在Kismet IPC框架内运行

kismet_drone – Kismet无人机组件

root@kali:~# kismet_drone -h
Usage: kismet_drone [OPTION]
Nearly all of these options are run-time overrides for values in the
kismet.conf configuration file.  Permanent changes should be made to
the configuration file.*** Generic Options ***-f, --config-file            Use alternate configuration file--no-line-wrap           Turn of linewrapping of output(for grep, speed, etc)-s, --silent                 Turn off stdout output after setup phase--daemonize              Spawn detatched in the background*** Kismet Remote Drone Options ***--drone-listen           Override Kismet drone listen options*** Packet Capture Source Options ***-c, --capture-source         Specify a new packet capture source(Identical syntax to the config file)-C, --enable-capture-sources Enable capture sources (comma-separatedlist of names or interfaces)


中文版:

root@kali:~# kismet_drone -h
Usage: kismet_drone [OPTION]
几乎所有这些选项都是在kismet.conf配置文件。 
应该永久改变配置文件.*** 通用选项 ***-f, --config-file            使用备用配置文件--no-line-wrap           对linewrapping输出转(for grep, speed, etc)-s, --silent                 在设置阶段后关闭stdout输出--daemonize              后台运行*** Kismet远程无人机选项 ***--drone-listen           覆盖Kismet无人机听取选项*** 数据包捕获源选项 ***-c, --capture-source         指定新的数据包捕获源(配置文件的相同语法)-C, --enable-capture-sources 启用捕获源(以逗号分隔的名称或接口列表)

kismet –  主要的Kismet发射器

root@kali:~# kismet -h
Usage: /usr/bin/kismet_server [OPTION]
Nearly all of these options are run-time overrides for values in the
kismet.conf configuration file.  Permanent changes should be made to
the configuration file.*** Generic Options ***-v, --version                Show version-f, --config-file <file>     Use alternate configuration file--no-line-wrap           Turn of linewrapping of output(for grep, speed, etc)-s, --silent                 Turn off stdout output after setup phase--daemonize              Spawn detatched in the background--no-plugins             Do not load plugins--no-root                Do not start the kismet_capture binarywhen not running as root.  For no-privremote capture ONLY.*** Kismet Client/Server Options ***-l, --server-listen          Override Kismet server listen options*** Kismet Remote Drone Options ***--drone-listen           Override Kismet drone listen options*** Dump/Logging Options ***-T, --log-types <types>      Override activated log types-t, --log-title <title>      Override default log title-p, --log-prefix <prefix>    Directory to store log files-n, --no-logging             Disable logging entirely*** Packet Capture Source Options ***-c, --capture-source         Specify a new packet capture source(Identical syntax to the config file)-C, --enable-capture-sources Enable capture sources (comma-separatedlist of names or interfaces)*** Kismet Net Tracking Options ***--filter-tracker         Tracker filtering*** Kismet GPS Options ***--use-gpsd-gps (h:p)     Use GPSD-controlled GPS at host:port(default: localhost:2947)--use-nmea-gps (dev)     Use local NMEA serial GPS on device(default: /dev/ttyUSB0)--use-virtual-gps(lat,lon,alt) Use a virtual fixed-position gps record--gps-modelock <t:f>     Force broken GPS units to act as if theyhave a valid signal (true/false)--gps-reconnect <t:f>    Reconnect if a GPS device fails(true/false)


中文版:

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


三、示例


kismet_server 使用示例


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

root@kali:~# kismet_server -c wlan0 --use-gpsd-gps
ERROR: Kismet was started as root, NOT launching external control binary.  This is NOT the preferred method of starting Kismet as Kismet will continue to run as root the entire time.  Please read the README file section about Installation & Security and be sure this is what you want to do.
INFO: Reading from config file /etc/kismet/kismet.conf
INFO: No 'dronelisten' config line and no command line drone-listen argument given, Kismet drone server will not be enabled.
INFO: Created alert tracker...
INFO: Creating device tracker...
INFO: Registered 80211 PHY as id


kismet用法示例

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:包括整个会话捕获的数据包

这篇关于Kali-WIFI攻防(一)----无线网络嗅探工具Kismet的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1068641

相关文章

揭秘未来艺术:AI绘画工具全面介绍

📑前言 随着科技的飞速发展,人工智能(AI)已经逐渐渗透到我们生活的方方面面。在艺术创作领域,AI技术同样展现出了其独特的魅力。今天,我们就来一起探索这个神秘而引人入胜的领域,深入了解AI绘画工具的奥秘及其为艺术创作带来的革命性变革。 一、AI绘画工具的崛起 1.1 颠覆传统绘画模式 在过去,绘画是艺术家们通过手中的画笔,蘸取颜料,在画布上自由挥洒的创造性过程。然而,随着AI绘画工

墨刀原型工具-小白入门篇

墨刀原型工具-小白入门篇 简介 随着互联网的发展和用户体验的重要性越来越受到重视,原型设计逐渐成为了产品设计中的重要环节。墨刀作为一款原型设计工具,以其简洁、易用的特点,受到了很多设计师的喜爱。本文将介绍墨刀原型工具的基本使用方法,以帮助小白快速上手。 第一章:认识墨刀原型工具 1.1 什么是墨刀原型工具 墨刀是一款基于Web的原型设计工具,可以帮助设计师快速创建交互原型,并且可以与团队

大学湖北中医药大学法医学试题及答案,分享几个实用搜题和学习工具 #微信#学习方法#职场发展

今天分享拥有拍照搜题、文字搜题、语音搜题、多重搜题等搜题模式,可以快速查找问题解析,加深对题目答案的理解。 1.快练题 这是一个网站 找题的网站海量题库,在线搜题,快速刷题~为您提供百万优质题库,直接搜索题库名称,支持多种刷题模式:顺序练习、语音听题、本地搜题、顺序阅读、模拟考试、组卷考试、赶快下载吧! 2.彩虹搜题 这是个老公众号了 支持手写输入,截图搜题,详细步骤,解题必备

Windows/macOS/Linux 安装 Redis 和 Redis Desktop Manager 可视化工具

本文所有安装都在macOS High Sierra 10.13.4进行,Windows安装相对容易些,Linux安装与macOS类似,文中会做区分讲解 1. Redis安装 1.下载Redis https://redis.io/download 把下载的源码更名为redis-4.0.9-source,我喜欢跟maven、Tomcat放在一起,就放到/Users/zhan/Documents

OpenCompass:大模型测评工具

大模型相关目录 大模型,包括部署微调prompt/Agent应用开发、知识库增强、数据库增强、知识图谱增强、自然语言处理、多模态等大模型应用开发内容 从0起步,扬帆起航。 大模型应用向开发路径:AI代理工作流大模型应用开发实用开源项目汇总大模型问答项目问答性能评估方法大模型数据侧总结大模型token等基本概念及参数和内存的关系大模型应用开发-华为大模型生态规划从零开始的LLaMA-Factor

简鹿文件批量重命名:一款文件批量改名高手都在用的工具

作为 IT 行业的搬砖民工,互联网的数据量爆炸性增长,文件管理成为了一项日益重要的任务。"简鹿文件批量重命名"应运而生,旨在为用户提供一个高效、灵活的解决方案,以应对繁琐的文件命名、排序、创建及属性修改等挑战。 这款软件凭借其一键式操作、强大的自定义规则导入、以及全面的批量处理能力,极大地简化了文件管理流程,尤其适合处理大量文件的个人用户及企业环境,是提高工作效率、保持文件系统整洁的得力助手

如何用外呼工具和CRM管理系统形成销售闭环

使用外呼工具和CRM管理系统形成销售闭环是一个系统性的过程,它涉及客户数据的整合、个性化的营销活动、销售与市场活动的协作、顾客行为的追踪与理解以及营销成效的评估与优化等多个环节。 以下是如何将外呼工具和CRM管理系统有效结合以形成销售闭环的步骤: 1. 客户数据的整合与分析    - 外呼工具在与客户进行初步沟通时,会收集到客户的基本信息和初步需求。    - 这些信息随后被输入到CRM管

ASP.Net.WebAPI和工具PostMan

1.WebAPI概述 1.1 WebAPI WebAPI 是一种传统的方式,用于构建和暴露 RESTUI风格的Web服务。它提供了丰富的功能和灵活性,可以处理各种HTTP请求,并支持各种数据格式,如JSON、XML等。 WebAPI使用控制器(Controllers)和动作方法(ActionMethods)的概念、通过路由配置将请求映射到相应的方法上。 开发人员可以使用各种属性和过滤器来处

每日一练:攻防世界:5-1 MulTzor

一、XorTool 基于 XOR(异或)运算实现。它可以帮助您快速地对文本、二进制文件进行加密解密操作。 认识XorTool工具: 让我们先去认识一下工具: xortool.py 是基于 python 的脚本,用于完成一些 xor 分析,包括: 猜想 key 的长度 猜想 key 的值 解密一些经过 xoe 加密的文件 也就是说当遇到不知道文件类型的文件,可以尝试去看看它是否被xo

使用XmlPullParser制作BindView工具

在之前我写过了一个BindView的工具,之前使用的最要是正则表达的文本分析做的。最近,工作我认识了Android的XML解析,我又想起了这个问题。发现这个问题,其实用XmlPullParser更好解决。所以我重新写了这个工具。简单多了,而且不用格式化代码。 先分析一下如何写,简易思路如下 Created with Raphaël 2.1.0 输入文本路径 读取x