Newer
Older
BLE_CTF_V2 / Setup_Pi_for_BLE.txt
0xRoM on 22 Aug 2023 1020 bytes minor updates
  1. - Setup Pi for BLE -
  2.  
  3. sudo apt-get install bluez bluez-tools python3-bluez (gives us hcitool & gatttool + python imports for bluez)
  4.  
  5. ### install bleah ###
  6. cd /opt
  7. git clone https://github.com/evilsocket/bleah.git
  8. cd bleah/
  9. git checkout 6a2fd3a
  10.  
  11. sudo apt-get install git build-essential libglib2.0-dev python-setuptools
  12.  
  13. cd /opt
  14. git clone https://github.com/IanHarvey/bluepy.git
  15. cd bluepy/
  16. sudo python setup.py build
  17. sudo python setup.py install
  18.  
  19. sudo nano /usr/local/lib/Ptyhon2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btly.py
  20. change:
  21. from queue import Queue, Empty
  22. to:
  23. from Queue import Queue, Empty
  24. (capitolization of first "queue")
  25.  
  26. cd /opt/bleah/
  27. python setup.py build
  28. sudo python setup.py install
  29.  
  30. ### install spooftooph ##
  31. sudo apt-get install libncurses-dev libbluetooth-dev
  32. cd /opt
  33. git clone https://gitlab.com/kalilinux/packages/spooftooph.git
  34. cd spooftooph/
  35. make
  36. make install
  37.  
  38.  
  39. ### restart bluetooth device ###
  40. sudo hciconfig hci0 down && sudo hciconfig hci0 up
Buy Me A Coffee