0%

noone的蓝牙抓包

  • 前置

    nrf-sniffer-for-bluetooth-le

    一块烧录好的nRF52480

  • 配置wireshark

    在wireshark-帮助-关于wireshark-文件夹中:

    nrf-sniffer-for-bluetooth-le 中的 excap 文件夹内容复制到 Personal Extcap path 所显示的文件夹下:

    运行:

    1
    .\nrf_sniffer_ble.bat --extcap-interfaces

    注意有概率因为python问题显示 No installed Python found!

    这种情况下,首先需要确保能运行

    1
    python3 .\nrf_sniffer_ble.py --extcap-interfaces

    wireshark识别自定义的捕获接口是根据bat文件,所以手动改一下让它直接运行就好

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    @echo off

    rem Path to this batch file
    set NRF_SNIFFER_BLE_PATH=%~dp0
    rem Remove the "\" from the end of the path
    set NRF_SNIFFER_BLE_PATH=%NRF_SNIFFER_BLE_PATH:~0,-1%

    rem Activate virtualenv if present
    if exist "%NRF_SNIFFER_BLE_PATH%\env\Scripts\activate.bat" call "%NRF_SNIFFER_BLE_PATH%\env\Scripts\activate.bat"

    rem Find out if the launcher is installed and available
    where py > NUL 2>&1
    if %ERRORLEVEL% EQU 0 (
    py -3 "%NRF_SNIFFER_BLE_PATH%\nrf_sniffer_ble.py" %*
    ) else (
    python "%NRF_SNIFFER_BLE_PATH%\nrf_sniffer_ble.py" %*
    )

    重启wireshark可以发现: