461214ef1476fd50baeac283157ab9154748f94c
glossary.md
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | ## b |
| 13 | 13 | * [bash](/shells/bash) |
| 14 | 14 | * [bin](/linux/bin) |
| 15 | -* [bluetooth](/software/bluetooth) |
|
| 15 | +* [bluetooth](/networking/bluetooth) |
|
| 16 | 16 | * [borg](/software/borg) |
| 17 | 17 | * [borgmatic](/software/borgmatic) |
| 18 | 18 | * [btrfs](filesystems/btrfs) |
linux/bluetooth.md
| ... | ... | @@ -1,51 +0,0 @@ |
| 1 | -# bluetooth |
|
| 2 | - |
|
| 3 | -## monitor bluetooth with tcpdump |
|
| 4 | - |
|
| 5 | -follow this [guide][] |
|
| 6 | -### pkg reqs |
|
| 7 | -- bluetoothd |
|
| 8 | -- bluetoothctl |
|
| 9 | -- tcpdump |
|
| 10 | -- libpcap |
|
| 11 | -- openssl |
|
| 12 | - |
|
| 13 | -on arch: |
|
| 14 | -``` |
|
| 15 | -pacman -S extra/bluez extra/bluez-utils tcpdump libpcap openssl |
|
| 16 | -``` |
|
| 17 | - |
|
| 18 | -start bluetooth service |
|
| 19 | -``` |
|
| 20 | -systemctl start bluetooth |
|
| 21 | -``` |
|
| 22 | - |
|
| 23 | -check state of bluetooth device |
|
| 24 | -``` |
|
| 25 | -rfkill list bluetooth |
|
| 26 | -sudo rfkill unblock bluetooth |
|
| 27 | -rfkill list bluetooth |
|
| 28 | -``` |
|
| 29 | - |
|
| 30 | -get bluetooth adaptor name |
|
| 31 | -``` |
|
| 32 | -tcpdump -D |
|
| 33 | -``` |
|
| 34 | - |
|
| 35 | -start tcpdump |
|
| 36 | -``` |
|
| 37 | -tcpdump -i <bluetooth_adaptor> -w <output_file>.pcap |
|
| 38 | -``` |
|
| 39 | - |
|
| 40 | -connect to bluetooth devices |
|
| 41 | -``` |
|
| 42 | -bluetoothctl |
|
| 43 | -[bluetooth]# power on |
|
| 44 | -[bluetooth]# scan on |
|
| 45 | -[bluetooth]# trust <mac_address> # optional |
|
| 46 | -[bluetooth]# pair <mac_address> |
|
| 47 | -``` |
|
| 48 | - |
|
| 49 | - |
|
| 50 | - |
|
| 51 | -[guide]: https://www.agnosticdev.com/content/how-capture-bluetooth-traffic-tcpdump-linux |
linux/index.md
| ... | ... | @@ -9,9 +9,6 @@ |
| 9 | 9 | * [pactl](pactl) |
| 10 | 10 | * [spotifyd](spotifyd) |
| 11 | 11 | |
| 12 | -## connectivity |
|
| 13 | -* [bluetooth](bluetooth) |
|
| 14 | - |
|
| 15 | 12 | ## documentation |
| 16 | 13 | * [bin](bin) |
| 17 | 14 | * [man_pages](man_pages) |
networking/bluetooth.md
| ... | ... | @@ -0,0 +1,51 @@ |
| 1 | +# bluetooth |
|
| 2 | + |
|
| 3 | +## monitor bluetooth with tcpdump |
|
| 4 | + |
|
| 5 | +follow this [guide][] |
|
| 6 | +### pkg reqs |
|
| 7 | +- bluetoothd |
|
| 8 | +- bluetoothctl |
|
| 9 | +- tcpdump |
|
| 10 | +- libpcap |
|
| 11 | +- openssl |
|
| 12 | + |
|
| 13 | +on arch: |
|
| 14 | +``` |
|
| 15 | +pacman -S extra/bluez extra/bluez-utils tcpdump libpcap openssl |
|
| 16 | +``` |
|
| 17 | + |
|
| 18 | +start bluetooth service |
|
| 19 | +``` |
|
| 20 | +systemctl start bluetooth |
|
| 21 | +``` |
|
| 22 | + |
|
| 23 | +check state of bluetooth device |
|
| 24 | +``` |
|
| 25 | +rfkill list bluetooth |
|
| 26 | +sudo rfkill unblock bluetooth |
|
| 27 | +rfkill list bluetooth |
|
| 28 | +``` |
|
| 29 | + |
|
| 30 | +get bluetooth adaptor name |
|
| 31 | +``` |
|
| 32 | +tcpdump -D |
|
| 33 | +``` |
|
| 34 | + |
|
| 35 | +start tcpdump |
|
| 36 | +``` |
|
| 37 | +tcpdump -i <bluetooth_adaptor> -w <output_file>.pcap |
|
| 38 | +``` |
|
| 39 | + |
|
| 40 | +connect to bluetooth devices |
|
| 41 | +``` |
|
| 42 | +bluetoothctl |
|
| 43 | +[bluetooth]# power on |
|
| 44 | +[bluetooth]# scan on |
|
| 45 | +[bluetooth]# trust <mac_address> # optional |
|
| 46 | +[bluetooth]# pair <mac_address> |
|
| 47 | +``` |
|
| 48 | + |
|
| 49 | + |
|
| 50 | + |
|
| 51 | +[guide]: https://www.agnosticdev.com/content/how-capture-bluetooth-traffic-tcpdump-linux |
networking/index.md
| ... | ... | @@ -22,6 +22,7 @@ |
| 22 | 22 | * [envoy](envoy) |
| 23 | 23 | |
| 24 | 24 | ## transferring |
| 25 | +* [bluetooth](bluetooth) |
|
| 25 | 26 | * [rsync](rsync) |
| 26 | 27 | * [samba](samba) |
| 27 | 28 |