搭建抓空口包nrf_sniffer环境

参考文章:

1.nRF Sniffer 环境搭建 - unrulife - 博客园

2.官方指南:搭建nRFSniffer需要使用的工具以及官方指南-嵌入式文档类资源-CSDN下载

步骤:

一.需要安装的环境(省事可以直接在这里下载搭建nRFSniffer需要使用的工具以及官方指南-嵌入式文档类资源-CSDN下载):

1.下载nrf_sniffer_for_bluetooth_le_4.x.x:nRF Sniffer for Bluetooth LE - Downloads - nordicsemi.com

2.Wireshark v3.4.7 or later 下载: Wireshark · Go Deep.

在安装Wireshark时,勾选如下选项:

 

剩下就是一路允许和接受,直到安装完毕,然后重启计算机

3. Python v3.6 or later安装并配置环境变量(详情可百度) 下载:Python Release Python 2.7.16 | Python.org

4. 安装pyserial v3.5(在安装完python后安装):

按下键盘的Windows键和R键调出运行,然后输入cmd后回车,则进入命令行界面(注意以管理员身份运行cmd)

在nrf_sniffer_for_bluetooth_le_4.x.x中extcap目录下运行命令:

py -3 -m pip install -r requirements.txt

二、配置wireshark环境

1.将下载的nrf_sniffer_for_bluetooth_le_4.x.x中extcap的以下信息capy到wireshark的extcap路径下:

操作步骤:

1)来到nrf_sniffer_for_bluetooth_le_4.x.x的extcap下:

 2)打开wireshark---->帮助---->关于wireshark---->文件夹----->双击Personal Extcap path

 3)将下载的nrf_sniffer_for_bluetooth_le_4.x.x中extcap的以下信息capy到wireshark的extcap路径:

 2.在Wirshark的Personal Extcap path目录下运行命令:

nrf_sniffer_ble.bat --extcap-interfaces

 三、下载固件到nRF52840 dongle(可参考:Nordic Semiconductor Infocenter

1.将nRF52840加密狗(Dongle)插入USB端口。

2.按重置按钮进入DFU模式, LD2 LED开始闪烁红色。

 

3.启动nRF Connect for Desktop,并启动Programmer应用程序。

 4.从设备列表中,选择“Nordic Semiconductor DFU Bootloader”(不同设备不同名称)。

 5.单击添加十六进制文件(Add HEX File),然后选择nrf_sniffer_for_bluetooth_le_4.x.x文件夹下hex文件夹里的“sniffer_nrf52840dongle_nrf52840_4.1.0.hex “。

6.确保固件映像地址的开头是0x00001000。如果选择了错误的十六进制文件,则MBR部分可能会被覆盖。

7.单击写入以刷新固件。刷新成功会自动重启,Programmer会提示找不到设备,这是正常的。设备管理器里会显示USB串行设备。

 

8.从USB端口上卸下加密狗,然后再次插入。请勿按“重置”按钮。

四:嗅探的使用

 点击捕获(C)--->刷新接口列表F5

则会出现nRF Sniffer字样的东西,如下图所示,则说明安装成功了,后面就可以使用此环境进行抓包了

双击对应的COM口即可运行嗅探(使用方法可参考文章:wireshark配合Nrf Sniffert抓包教程汇总_l明天你好的博客-CSDN博客_wireshark 蓝牙抓包

 过滤条件常用的几条条件:

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Introduction The nRF Sniffer is a tool for debugging Bluetooth low energy (BLE) applications by detecting packets between a selected device and the device it is communicating with, even when the link is encrypted. When developing a BLE product, knowing what happens over-the-air between devices can help you isolate and solve any potential issues. By default, the Sniffer lists nearby BLE devices that are advertising, providing the Bluetooth Address and Address type, complete or shortened name, and RSSI. 1.1 Required hardware To set up the Sniffer you will need one of the following kits: • nRF51 Development Kit (PCA10028) v1.0 or later and a micro USB cable • nRF51 Dongle (PCA10031) • nRF51822 Evaluation Kit (PCA10001) and a mini USB cable • nRF51422 Evaluation Kit (PCA10003) v3.0.0 or later and a mini USB cable • nRF51822 Development Kit dongle (PCA10000) • nRF52 Development Kit (PCA10040) and a micro USB cable • nRF52840 Development Kit (PCA10056) and a micro USB cable 1.2 Required software • nRF Sniffer software v2.x or later available on the Sniffer product page under the downloads tab. This also includes the SEGGER J-Link software that is compatible. • Wireshark v2.4.6 or later available from http://www.wireshark.org/. Wireshark is a free software tool that captures wireless traffic and reproduces it in a readable format. • An operating system that runs the required version of Wireshark • Windows 7 or later • 64 bit OS X/macOS 10.6 or later • Linux (check for version compatibility) • python v2.7.x available from https://www.python.org/downloads/ • pyserial v3.4 or later available from https://github.com/pyserial/pyserial • Type “pip --version” in the terminal to verify that the pip installed with python v2.7 is used • For Windows - “C:\Python27\Scripts\pip.exe install -r requirements.txt” to install the python modules required for nRF Sniffer v2 • For OS X/mac OS/Linux - verify that the pip software being used is the pi

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值