Ask Your Question

Revision history [back]

Ubertooth bash script returns DLT_USER error

I"m setting up an Ubertooth to capture BTLE packets and display them in WS as per this tutorial in a bash script.

Scroll towards the bottom of the link provided, looking for bullet point #5 in the "Sniff Bluetooth LE Packets" section, that is what I'm going off of.

This has worked for me in the past and I wanted to improve upon it by adding the following:

#Global Variables
dlt_user="uat:user_dlts:\"User 0 (DLT=147)\",\"btle\",\"0\",\"\",\"0\",\"\"" 
...
...
...
**sudo wireshark -k -i /tmp/pipe1 -o $dlt_user &**

The script fails at this line and stderr reports the following:

wireshark: Invalid -o flag "uat:user_dlts:"User": user_dlts:2: expecting field encap in previous line

Searching online returns NOTHING about the issue, which makes me think everyone knows something I don't.

Please advise.

sudo wireshark -help returns: WireShark 2.6.7 (Git v2.6.7 packaged as 2.6.7-1-deb9u1)

uname -a returns:

Linux pdcontrol 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux

Ubertooth bash script returns DLT_USER error

I"m setting up an Ubertooth to capture BTLE packets and display them in WS as per this tutorial in a bash script.

Scroll towards the bottom of the link provided, looking for bullet point #5 in the "Sniff Bluetooth LE Packets" section, that is what I'm going off of.

This has worked for me in the past and I wanted to improve upon it by adding the following:

#Global Variables
dlt_user="uat:user_dlts:\"User 0 (DLT=147)\",\"btle\",\"0\",\"\",\"0\",\"\"" 
...
...
...
**sudo sudo wireshark -k -i /tmp/pipe1 -o $dlt_user &**
&

The script fails at this line and stderr reports the following:

wireshark: Invalid -o flag "uat:user_dlts:"User": user_dlts:2: expecting field encap in previous line

Searching online returns NOTHING about the issue, which makes me think everyone knows something I don't.

Please advise.

sudo wireshark -help returns: WireShark 2.6.7 (Git v2.6.7 packaged as 2.6.7-1-deb9u1)

uname -a returns:

Linux pdcontrol 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux