grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

bluetooth.md (782B)


      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