This package contains tools and system daemons for using Bluetooth devices. BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL).
Dependências: kmod, libasound2t64, libc6, libdbus-1-3, libdw1t64, libglib2.0-0t64, libreadline8t64, libudev1, udev
bluemoon
Bluemoon configuration utility
root@kali:~# bluemoon -h
bluemoon - Bluemoon configuration utility
Usage:
bluemoon [options]
Options:
-A, --bdaddr [addr] Set Bluetooth address
-F, --firmware [file] Load firmware
-C, --check <file> Check firmware image
-R, --reset Reset controller
-B, --coldboot Cold boot controller
-E, --exception Trigger exception
-i, --index <num> Use specified controller
-h, --help Show help options
bluetoothctl
Bluetooth Control Command Line Tool
root@kali:~# bluetoothctl -h
bluetoothctl ver 5.85
Usage:
bluetoothctl [--options] [commands]
Options:
--agent Register agent handler: <capability>
--endpoints Register Media endpoints
--monitor Enable monitor output
--timeout Timeout in seconds for non-interactive mode
--version Display version
--init-script Init script file
--help Display help
Commands:
list List available controllers
show Controller information
select Select default controller
devices List available devices, with an optional property as the filter
system-alias Set controller alias
reset-alias Reset controller alias
power Set controller power
pairable Set controller pairable mode
discoverable Set controller discoverable mode
discoverable-timeout Set discoverable timeout
agent Enable/disable agent with given capability
default-agent Set agent as the default one
advertise Enable/disable advertising with given type
set-alias Set device alias
scan Scan for devices
info Device/Set information
pair Pair with device
cancel-pairing Cancel pairing with device
trust Trust device
untrust Untrust device
block Block device
unblock Unblock device
remove Remove device
connect Connect a device and all its profiles or optionally connect a single profile only
disconnect Disconnect a device or optionally disconnect a single profile only
wake Get/Set wake support
bearer Get/Set preferred bearer
advertise.:
uuids Set/Get advertise uuids
solicit Set/Get advertise solicit uuids
service Set/Get advertise service data
manufacturer Set/Get advertise manufacturer data
data Set/Get advertise data
sr-uuids Set/Get scan response uuids
sr-solicit Set/Get scan response solicit uuids
sr-service Set/Get scan response service data
sr-manufacturer Set/Get scan response manufacturer data
sr-data Set/Get scan response data
discoverable Set/Get advertise discoverable
discoverable-timeout Set/Get advertise discoverable timeout
tx-power Show/Enable/Disable TX power to be advertised
name Configure local name to be advertised
appearance Configure custom appearance to be advertised
duration Set/Get advertise duration
timeout Set/Get advertise timeout
secondary Set/Get advertise secondary channel
interval Set/Get advertise interval range
rsi Show/Enable/Disable RSI to be advertised
clear Clear advertise config
monitor.:
set-rssi-threshold Set RSSI threshold parameter
set-rssi-timeout Set RSSI timeout parameter
set-rssi-sampling-period Set RSSI sampling period parameter
add-or-pattern Register 'or pattern' type monitor with the specified RSSI parameters
get-pattern Get advertisement monitor
remove-pattern Remove advertisement monitor
get-supported-info Get advertisement manager supported features and supported monitor types
print-usage Print the command usage
scan.:
uuids Set/Get UUIDs filter
rssi Set/Get RSSI filter, and clears pathloss
pathloss Set/Get Pathloss filter, and clears RSSI
transport Set/Get transport filter
duplicate-data Set/Get duplicate data filter
discoverable Set/Get discoverable filter
pattern Set/Get pattern filter
auto-connect Set/Get auto-connect filter
clear Clears discovery filter.
gatt.:
list-attributes List attributes
select-attribute Select attribute
attribute-info Select attribute
read Read attribute value
write Write attribute value
acquire-write Acquire Write file descriptor
release-write Release Write file descriptor
acquire-notify Acquire Notify file descriptor
release-notify Release Notify file descriptor
notify Notify attribute value
clone Clone a device or attribute
register-application Register profile to connect
unregister-application Unregister profile
register-service Register application service.
unregister-service Unregister application service
register-includes Register as Included service in.
unregister-includes Unregister Included service.
register-characteristic Register application characteristic
unregister-characteristic Unregister application characteristic
register-descriptor Register application descriptor
unregister-descriptor Unregister application descriptor
admin.:
allow Allow service UUIDs and block rest of them
player.:
list List available players
show Player information
select Select default player
play Start playback
pause Pause playback
stop Stop playback
next Jump to next item
previous Jump to previous item
fast-forward Fast forward playback
rewind Rewind playback
equalizer Enable/Disable equalizer
repeat Set repeat mode
shuffle Set shuffle mode
scan Set scan mode
change-folder Change current folder
list-items List items of current folder
search Search items containing string
queue Add item to playlist queue
show-item Show item information
endpoint.:
list List available endpoints
show Endpoint information
register Register Endpoint
unregister Register Endpoint
config Configure Endpoint
presets List or add presets
transport.:
list List available transports
show Transport information
acquire Acquire Transport
release Release Transport
send Send contents of a file
receive Get/Set file to receive
volume Get/Set transport volume
select Select Transport
unselect Unselect Transport
metadata Get/Set Transport Metadata
mgmt.:
select Select a different index
revision Get the MGMT Revision
commands List supported commands
config Show configuration info
info Show controller info
extinfo Show extended controller info
auto-power Power all available features
power Toggle powered state
discov Toggle discoverable state
connectable Toggle connectable state
fast-conn Toggle fast connectable state
bondable Toggle bondable state
pairable Toggle bondable state
linksec Toggle link level security
ssp Toggle SSP mode
sc Toggle SC support
hs Toggle HS support
le Toggle LE support
advertising Toggle LE advertising
bredr Toggle BR/EDR support
privacy Toggle privacy support
class Set device major/minor class
disconnect Disconnect device
con List connections
find Discover nearby devices
find-service Discover nearby service
stop-find Stop discovery
name Set local name
pair Pair with a remote device
cancelpair Cancel pairing
unpair Unpair device
keys Load Link Keys
ltks Load Long Term Keys
irks Load Identity Resolving Keys
block Block Device
unblock Unblock Device
add-uuid Add UUID
rm-uuid Remove UUID
clr-uuids Clear UUIDs
local-oob Local OOB data
remote-oob Remote OOB data
did Set Device ID
static-addr Set static address
public-addr Set public address
ext-config External configuration
debug-keys Toggle debug keys
conn-info Get connection information
io-cap Set IO Capability
scan-params Set Scan Parameters
get-clock Get Clock Information
add-device Add Device
del-device Remove Device
clr-devices Clear Devices
bredr-oob Local OOB data (BR/EDR)
le-oob Local OOB data (LE)
advinfo Show advertising features
advsize Show advertising size info
add-adv Add advertising instance
rm-adv Remove advertising instance
clr-adv Clear advertising instances
add-ext-adv-params Add extended advertising params
add-ext-adv-data Add extended advertising data
appearance Set appearance
phy Get/Set PHY Configuration
wbs Toggle Wideband-Speech support
secinfo Show security information
expinfo Show experimental features
exp-debug Set debug feature
exp-privacy Set LL privacy feature
exp-quality Set bluetooth quality report feature
exp-offload Toggle codec support
read-sysconfig Read System Configuration
set-sysconfig Set System Configuration
get-flags Get device flags
set-flags Set device flags
hci-cmd Send HCI Command and wait for Event
monitor.:
features Show advertisement monitor features
remove Remove advertisement monitor
add-pattern Add advertisement monitor pattern
add-pattern-rssi Add advertisement monitor pattern with RSSI options
assistant.:
list List available assistants
show Assistant information
push Send stream information to peer
hci.:
open Open HCI channel
cmd Send HCI command
send Send HCI data
register Register HCI event handler
unregister Unregister HCI event handler
close Close HCI channel
bluetoothd
Bluetooth daemon
root@kali:~# bluetoothd -h
Usage:
bluetoothd [OPTION…]
Help Options:
-h, --help Show help options
Application Options:
-d, --debug=DEBUG Specify debug options to enable
-p, --plugin=NAME,.., Specify plugins to load
-P, --noplugin=NAME,... Specify plugins not to load
-f, --configfile=FILE Specify an explicit path to the config file
-C, --compat Provide deprecated command line interfaces
-E, --experimental Enable experimental D-Bus interfaces
-T, --testing Enable testing D-Bus interfaces
-K, --kernel Enable kernel experimental features
-n, --nodetach Run with logging in foreground
-v, --version Show version information and exit
btattach
Attach serial devices to BlueZ stack
root@kali:~# btattach -h
btattach - Bluetooth serial utility
Usage:
btattach [options]
options:
-B, --bredr <device> Attach Primary controller
-A, --amp <device> Attach AMP controller
-P, --protocol <proto> Specify protocol type
-S, --speed <baudrate> Specify which baudrate to use
-N, --noflowctl Disable flow control
-h, --help Show help options
btmgmt
Interactive bluetooth management tool
root@kali:~# btmgmt -h
btmgmt ver 5.85
Usage:
btmgmt [--options] [commands]
Options:
--index Specify adapter index
--monitor Enable monitor output
--timeout Timeout in seconds for non-interactive mode
--version Display version
--init-script Init script file
--help Display help
Commands:
select Select a different index
revision Get the MGMT Revision
commands List supported commands
config Show configuration info
info Show controller info
extinfo Show extended controller info
auto-power Power all available features
power Toggle powered state
discov Toggle discoverable state
connectable Toggle connectable state
fast-conn Toggle fast connectable state
bondable Toggle bondable state
pairable Toggle bondable state
linksec Toggle link level security
ssp Toggle SSP mode
sc Toggle SC support
hs Toggle HS support
le Toggle LE support
advertising Toggle LE advertising
bredr Toggle BR/EDR support
privacy Toggle privacy support
class Set device major/minor class
disconnect Disconnect device
con List connections
find Discover nearby devices
find-service Discover nearby service
stop-find Stop discovery
name Set local name
pair Pair with a remote device
cancelpair Cancel pairing
unpair Unpair device
keys Load Link Keys
ltks Load Long Term Keys
irks Load Identity Resolving Keys
block Block Device
unblock Unblock Device
add-uuid Add UUID
rm-uuid Remove UUID
clr-uuids Clear UUIDs
local-oob Local OOB data
remote-oob Remote OOB data
did Set Device ID
static-addr Set static address
public-addr Set public address
ext-config External configuration
debug-keys Toggle debug keys
conn-info Get connection information
io-cap Set IO Capability
scan-params Set Scan Parameters
get-clock Get Clock Information
add-device Add Device
del-device Remove Device
clr-devices Clear Devices
bredr-oob Local OOB data (BR/EDR)
le-oob Local OOB data (LE)
advinfo Show advertising features
advsize Show advertising size info
add-adv Add advertising instance
rm-adv Remove advertising instance
clr-adv Clear advertising instances
add-ext-adv-params Add extended advertising params
add-ext-adv-data Add extended advertising data
appearance Set appearance
phy Get/Set PHY Configuration
wbs Toggle Wideband-Speech support
secinfo Show security information
expinfo Show experimental features
exp-debug Set debug feature
exp-privacy Set LL privacy feature
exp-quality Set bluetooth quality report feature
exp-offload Toggle codec support
read-sysconfig Read System Configuration
set-sysconfig Set System Configuration
get-flags Get device flags
set-flags Set device flags
hci-cmd Send HCI Command and wait for Event
monitor.:
features Show advertisement monitor features
remove Remove advertisement monitor
add-pattern Add advertisement monitor pattern
add-pattern-rssi Add advertisement monitor pattern with RSSI options
btmon
Bluetooth monitor
root@kali:~# btmon -h
btmon - Bluetooth monitor
Usage:
btmon [options]
options:
-r, --read <file> Read traces in btsnoop format
-w, --write <file> Save traces in btsnoop format
-a, --analyze <file> Analyze traces in btsnoop format
If gnuplot is installed on the
system it will also attempt to plot
packet latency graph.
-s, --server <socket> Start monitor server socket
-p, --priority <level> Show only priority or lower
-i, --index <num> Show only specified controller
-d, --tty <tty> Read data from TTY
-B, --tty-speed <rate> Set TTY speed (default 115200)
-V, --vendor <compid> Set default company identifier
-M, --mgmt Open channel for mgmt events
-K, --kernel Open kmsg for kernel messages
-t, --time Show time instead of time offset
-T, --date Show time and date information
-S, --sco Dump SCO traffic
-A, --a2dp Dump A2DP stream traffic
-I, --iso Dump ISO traffic
-E, --ellisys [ip] Send Ellisys HCI Injection
-P, --no-pager Disable pager usage
-J --jlink <device>,[<serialno>],[<interface>],[<speed>]
Read data from RTT
-R --rtt [<address>],[<area>],[<name>]
RTT control block parameters
-C, --columns [width] Output width if not a terminal
-c, --color [mode] Output color: auto/always/never
-h, --help Show help options
hciattach
Attach serial devices via UART HCI to BlueZ stack
root@kali:~# hciattach -h
hciattach - HCI UART driver initialization utility
Usage:
hciattach [-n] [-p] [-b] [-r] [-t timeout] [-s initial_speed] <tty> <type | id> [speed] [flow|noflow] [sleep|nosleep] [bdaddr]
hciattach -l
hciconfig
Configure Bluetooth devices
root@kali:~# hciconfig -h
hciconfig - HCI device configuration utility
Usage:
hciconfig
hciconfig [-a] hciX [command ...]
Commands:
up Open and initialize HCI device
down Close HCI device
reset Reset HCI device
rstat Reset statistic counters
auth Enable Authentication
noauth Disable Authentication
encrypt Enable Encryption
noencrypt Disable Encryption
piscan Enable Page and Inquiry scan
noscan Disable scan
iscan Enable Inquiry scan
pscan Enable Page scan
ptype [type] Get/Set default packet type
lm [mode] Get/Set default link mode
lp [policy] Get/Set default link policy
name [name] Get/Set local name
class [class] Get/Set class of device
voice [voice] Get/Set voice setting
iac [iac] Get/Set inquiry access code
inqtpl [level] Get/Set inquiry transmit power level
inqmode [mode] Get/Set inquiry mode
inqdata [data] Get/Set inquiry data
inqtype [type] Get/Set inquiry scan type
inqparms [win:int] Get/Set inquiry scan window and interval
pageparms [win:int] Get/Set page scan window and interval
pageto [to] Get/Set page timeout
afhmode [mode] Get/Set AFH mode
sspmode [mode] Get/Set Simple Pairing Mode
aclmtu <mtu:pkt> Set ACL MTU and number of packets
scomtu <mtu:pkt> Set SCO MTU and number of packets
delkey <bdaddr> Delete link key from the device
oobdata Get local OOB data
commands Display supported commands
features Display device features
version Display version information
revision Display revision information
block <bdaddr> Add a device to the reject list
unblock <bdaddr> Remove a device from the reject list
lerandaddr <bdaddr> Set LE Random Address
leadv [type] Enable LE advertising
0 - Connectable undirected advertising (default)
3 - Non connectable undirected advertising
noleadv Disable LE advertising
lestates Display the supported LE states
hex2hcd
Broadcom Bluetooth firmware converter
root@kali:~# hex2hcd -h
Broadcom Bluetooth firmware converter
Usage:
hex2hcd [options] <file>
Options:
-o, --output <file> Provide firmware output file
-h, --help Show help options
l2ping
Send L2CAP echo request and receive answer
root@kali:~# l2ping -h
l2ping - L2CAP ping
Usage:
l2ping [-i device] [-s size] [-c count] [-t timeout] [-d delay] [-f] [-r] [-v] <bdaddr>
-f Flood ping (delay = 0)
-r Reverse ping
-v Verify request and response payload
l2test
L2CAP testing tool
root@kali:~# l2test -h
l2test - L2CAP testing
Usage:
l2test <mode> [options] [bdaddr]
Modes:
-r listen and receive
-w listen and send
-d listen and dump incoming data
-x listen, then send, then dump incoming data
-t listen, then send and receive at the same time
-q connect, then send and receive at the same time
-s connect and send
-u connect and receive
-n connect and be silent
-y connect, then send, then dump incoming data
-c connect, disconnect, connect, ...
-m multiple connects
-p trigger dedicated bonding
-z information request
Options:
[-b bytes] [-i device] [-P psm] [-J cid]
[-I imtu] [-O omtu]
[-L seconds] enable SO_LINGER
[-W seconds] enable deferred setup
[-B filename] use data packets from file
[-N num] send num frames (default = infinite)
[-C num] send num frames before delay (default = 1)
[-D milliseconds] delay after sending num frames (default = 0)
[-K milliseconds] delay before receiving (default = 0)
[-g milliseconds] delay before disconnecting (default = 0)
[-X mode] l2cap mode (help for list, default = basic)
[-a policy] chan policy (help for list, default = bredr)
[-F fcs] use CRC16 check (default = 1)
[-Q num] Max Transmit value (default = 3)
[-Z size] Transmission Window size (default = 63)
[-Y priority] socket priority
[-H size] Maximum receive buffer size
[-R] reliable mode
[-G] use connectionless channel (datagram)
[-U] use sock stream
[-A] request authentication
[-E] request encryption
[-S] secure connection
[-M] become central
[-T] enable timestamps
[-V type] address type (help for list, default = bredr)
[-e seq] initial sequence value (default = 0)
mpris-proxy
Bluetooth mpris-proxy
root@kali:~# mpris-proxy -h
Usage:
mpris-proxy [OPTION…]
Help Options:
-h, --help Show help options
Application Options:
-v, --version Show version information and exit
-e, --export Export remote players
obexctl
A command-line interface of BlueZ for OBEX (file transfer)
root@kali:~# obexctl -h
obexctl ver 5.85
Usage:
obexctl [--options] [commands]
Options:
--monitor Enable monitor output
--timeout Timeout in seconds for non-interactive mode
--version Display version
--init-script Init script file
--help Display help
rctest
RFCOMM testing
root@kali:~# rctest -h
rctest - RFCOMM testing
Usage:
rctest <mode> [options] [bdaddr]
Modes:
-r listen and receive
-w listen and send
-d listen and dump incoming data
-s connect and send
-u connect and receive
-n connect and be silent
-c connect, disconnect, connect, ...
-m multiple connects
-a automated test (receive hcix as parameter)
Options:
[-b bytes] [-i device] [-P channel] [-U uuid]
[-L seconds] enabled SO_LINGER option
[-W seconds] enable deferred setup
[-B filename] use data packets from file
[-O filename] save received data to file
[-N num] number of frames to send
[-C num] send num frames before delay (default = 1)
[-D milliseconds] delay after sending num frames (default = 0)
[-Y priority] socket priority
[-A] request authentication
[-E] request encryption
[-S] secure connection
[-M] become central
[-T] enable timestamps
rfcomm
RFCOMM configuration utility
root@kali:~# rfcomm -h
RFCOMM configuration utility ver 5.85
Usage:
rfcomm [options] <command> <dev>
Options:
-i, --device [hciX|bdaddr] Local HCI device or BD Address
-h, --help Display help
-r, --raw Switch TTY into raw mode
-A, --auth Enable authentication
-E, --encrypt Enable encryption
-S, --secure Secure connection
-C, --central Become the central of a piconet
-L, --linger [seconds] Set linger timeout
-a Show all devices (default)
Commands:
bind <dev> <bdaddr> [channel] Bind device
release <dev> Release device
show <dev> Show device
connect <dev> <bdaddr> [channel] Connect device
listen <dev> [channel [cmd]] Listen
watch <dev> [channel [cmd]] Watch