Sunday, 22 October 2017

Change MAC address of Bluetooth Dongle


Download the tool 
  • Kernel should be 4.X or above versions.
  • Download bdaddr from below website:
  • bdaddrtar.bz2
  • tar xvf bdaddrtar.bz2
  • cd bdaddr 
  • make



Usage

  The "bdaddr" application is generated which can be used to change MAC address of dongle.



  1. Insert dongle and make interface up 

hciconfig -i hci0 up

      2./bdaddr ==> it will show current mac address
  root@bt:# ./bdaddr
Manufacturer: Cambridge Silicon Radio (10)
Device address: 00:50:F2:7E:2F:9B
     
      3.To change mac address give new MAC address as below
         root@bt# ./bdaddr -i hci0 00:01:E3:64:DD:9B
Manufacturer: Cambridge Silicon Radio (10)
Device address: 00:50:F2:7E:2F:9B
New BD address: 00:01:E3:64:DD:9B

Address changed - Reset device now

     4.Re -connect the dongle it should show new MAC address.

Note: If any dependency error install BlueZ, otherwise not required.


  •  Install BlueZ
  •  http://www.bluez.org/download/
  •  tar xf bluez-5.46.tar.xz 
  •  cd bluez-5.46 
  •  ./configure --enable-test
  •  make 




Reference: 
http://blog.petrilopia.net/linux/change-your-bluetooth-device-mac-address/
http://www.hackgnar.com/2014/03/installing-latest-bluez-software-in.html