Welcome to bytebang » The blog about all and nothing » Bluelog - the fast bluetooth scanner

Bluelog - the fast bluetooth scanner

Aug 18 2014

Bluelog is a wonderful piece of software - it is able to detect all bluetooth devices (that are in the discoverable state) very quickly and without the need of an interface. In opposite to OpwnWRT or some other Linux distributions it is not installable via the package manager in Ubuntu 14.04, but it can easily be compiled by yourself.

Installation on Unubtu 14.04

Well - this time you have to get your hands dirty. Make sure that you have installed the following packages: git, build-essentials (available in the main repository) and libbluetooth-dev.

Afterwards you can download and compile it very easily:

$ git clone https://github.com/MS3FGX/Bluelog.git
Cloning into 'Bluelog'...
remote: Counting objects: 434, done.
remote: Total 434 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (434/434), 537.38 KiB | 540.00 KiB/s, done.
Resolving deltas: 100% (254/254), done.
Checking connectivity... done.

$ cd Bluelog/

~/Desktop/Bluelog$ make
gcc -Wall -O2  bluelog.c -lbluetooth -lm -o bluelog

~/Desktop/Bluelog$ ./bluelog -vmfn
Bluelog (v1.1.3-dev) by MS3FGX
---------------------------
Autodetecting device...OK
Opening output file: bluelog-2014-08-18-1934.log...OK
Writing PID file: /tmp/bluelog.pid...OK
Scan started at [08/18/14 19:34:45] on 7C:7A:91:19:F0:1D
Hit Ctrl+C to end scan.
[08/18/14 19:35:15] 00:02:72:EA:81:9D,Belkin Z13,Headset A/V,(Render Audio)
^C
Closing files and freeing memory...Done!
~/Desktop/Bluelog$ 

If your compiler complains about the missing "bluetooth.h" file you may have missed to install the libbluetooth-dev package.

$ sudo apt-get install libbluetooth-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libbluetooth-dev
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 66,4 kB of archives.
After this operation, 409 kB of additional disk space will be used.
Get:1 http://at.archive.ubuntu.com/ubuntu/ trusty/main libbluetooth-dev amd64 4.101-0ubuntu13 [66,4 kB]
Fetched 66,4 kB in 0s (238 kB/s)          
Selecting previously unselected package libbluetooth-dev.
(Reading database ... 339841 files and directories currently installed.)
Preparing to unpack .../libbluetooth-dev_4.101-0ubuntu13_amd64.deb ...
Unpacking libbluetooth-dev (4.101-0ubuntu13) ...
Setting up libbluetooth-dev (4.101-0ubuntu13) ...

Thats it. Beside this (very simple) console output bluelog is also capable of producing nice html pages (which are nice to view, but not very handy to interpret by a machine).

http://www.digifail.com/images/software/bluelog_digifail.png

Other possible Applications

Beside the previously mentioned traffic analysis it can also be used for

  • Access control
  • Surveillance
  • Security analysis
  • ...

The fact that it has a very small memory footprint (it also runs on OpenWRT and other embedded devices like the Raspberry Pi) makes it a very versatile tool.

Get Social


(c) 2024, by bytebang e.U. - Impressum - Datenschutz / Nutzungsbedingungen
-