Bluetooth virtual sniffer for windows

32 Views Asked by At

I want to sniff bluetooth packets using btvs.exe and collect it to pcap file. If you just open btvs.exe, then such a window will open, besides, if there is wireshark, then this traffic will open in it. However, I want to save the traffic automatically using at most a few commands, for example using python os opening btvs.exe

I saw microsoft resourse - link but there is no such parameter

1

There are 1 best solutions below

3
Risto On

In modern computers, most Bluetooth adapters are connected to the computer's USB subsystem. An optional component of Wireshark is USBPcap, which is supplied with USBPcapCMD.exe. The -o option allows you to save the traffic to a pcap file.

C:\Program Files\USBPcap>Usage: USBPcapCMD.exe [options]
  -h, -?, --help
    Prints this help.
  -d <device>, --device <device>
    USBPcap control device to open. Example: -d \\.\USBPcap1.
  -o <file>, --output <file>
    Output .pcap file name.
  -s <len>, --snaplen <len>
    Sets snapshot length.
  -b <len>, --bufferlen <len>
    Sets internal capture buffer length. Valid range <4096,134217728>.
  -A, --capture-from-all-devices
    Captures data from all devices connected to selected Root Hub.
  --devices <list>
    Captures data only from devices with addresses present in list.
    List is comma separated list of values. Example --devices 1,2,3.
  --inject-descriptors
    Inject already connected devices descriptors into capture data.
  -I,  --init-non-standard-hwids
    Initializes NonStandardHWIDs registry key used by USBPcapDriver.
    This registry key is needed for USB 3.0 capture.