First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

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
NikoJako's avatar
1
NikoJako
asked 2020-03-11 17:12:38 +0000, updated 2020-03-11 17:22:26 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Can't use command substitution with the wireshark -o flag.

Can only use wireshark -o "uat:user_dlts:\"User 0 (DLT=147)\",\"btle\",\"0\",\"\",\"0\",\"\""

NikoJako's avatar
1
NikoJako
answered 2020-03-13 17:51:30 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer