Ask Your Question
0

Ubertooth bash script returns DLT_USER error

asked 2020-03-11 17:12:38 +0000

NikoJako gravatar image

updated 2020-03-11 17:22:26 +0000

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
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-13 17:51:30 +0000

NikoJako gravatar image

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\",\"\""

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-03-11 17:12:38 +0000

Seen: 42 times

Last updated: Mar 13