LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-06-2010, 09:16 PM   #1
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Anyone with Bluetooth want to test a scanner/logger I am working on?


I have recently gotten a pet project of mine to the level where I think it works well enough that other people can give it a shot, and I'm looking for some help in making sure it works as expected.

Basically, it is a Bluetooth scanner that is designed to do just one thing, scan for discoverable devices in range and record their MAC, name, and the time/date they were found to a log file. There are only a few options, it is pretty much a set it and forget it sort of thing.

The only requirements are BlueZ (3.x or 4.x), and that your computer has a Bluetooth device that is supported by Linux. Obviously you will also need at least one device to scan for, and the more the better. If you want to take a walk through your mall while running it and seeing what you found, I would be ecstatic.

A word of warning, I am not a very good C programmer and I have no doubt that there are mistakes in the code and improvements that could be made. To that end, if you have any suggestions, please let me know.

You can download the source and get a little more specific information about it from: http://bluelog.digifail.com

Any help would be greatly appreciated, thanks.

Last edited by MS3FGX; 06-22-2010 at 10:06 PM.
 
Old 06-06-2010, 10:56 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 358

Rep: Reputation: 39
Works great, just like you said. It picked up about 15 devices while I was walking around my house and logged everything correctly. (I have a lot of bluetooth stuff)


good luck,
rabbit2345
 
Old 06-07-2010, 04:53 PM   #3
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
That's a start, thanks.

Is this on the 64 bit SUSE in your profile, or a different distribution?
 
Old 06-08-2010, 07:47 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
It seems to work nicely on my rig (Slackware64 13.1). The only thing I had to do was set the march option in the makefile to x86-64 to get it to compile. It picked up my Android phone without a problem.
 
Old 06-08-2010, 02:52 PM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Yeah, I forgot to add any options for 64 bit in the makefile because I am on 32 bit, I'll fix that for the next version. Good to know it works on 64 bit machines though.

What kind of Bluetooth device were you using? Internal on a laptop, or a USB adapter? If you don't mind, the output of the following command would be helpful:

Code:
hciconfig hci0 version
 
Old 06-08-2010, 03:49 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
It is internal on the laptop:

Code:
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:00:00:00:00:00  ACL MTU: 310:10  SCO MTU: 64:8
        HCI Version: 2.0 (0x3)  Revision: 0x10db
        LMP Version: 2.0 (0x3)  Subversion: 0x10db
        Manufacturer: Cambridge Silicon Radio (10)
And yes, I did mask the address. Lshw identifies it as a Wireless 360 Bluetooth from Dell. The laptop itself is a Dell Precision M6300. I've also got a netbook I can put it on and give it a go.
 
Old 06-08-2010, 04:56 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Yup, works nicely on the netbook (Dell Mini 9) as well:

Code:
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:11:22:33:44:55  ACL MTU: 1021:8  SCO MTU: 64:1
        HCI Version: 2.1 (0x4)  Revision: 0x51d3
        LMP Version: 2.1 (0x4)  Subversion: 0x424c
        Manufacturer: Broadcom Corporation (15)
This is also an internal Bluetooth card and is apparently a Broadcom BCM2046 chip
 
Old 06-13-2010, 10:40 PM   #8
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
To anyone who might be interested, I put an updated version up on the server today. A few small fixes, main additions are:
  • Added check to see if it is getting built on 64 bit or not, changes -march accordingly (I hope).
  • Added -x option to obfuscate detected MAC addresses.
 
Old 06-22-2010, 10:06 PM   #9
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I have reached a new stable (probably) release of Bluelog, and thought I would bump this up a little bit for those who didn't see it. I have added a lot of options and fixed a lot of things since I posted last, but the main addition has been "Bluelog Live", a web front-end for Bluelog that could be used in a public area to raise awareness of Bluetooth security risks, much like the "Wall of Sheep" seen at DEFCON.

The interface can be skinned with CSS, and I have included two different versions, one based on my website's layout and another for BackTrack (which Bluelog will hopefully be included in someday):

DigiFAIL

BackTrack

I understand the testing setup is kind of difficult for most people, since you need not only a Linux box with Bluetooth hardware but at least a few devices to scan, but I would appreciate anyone who could give the new version a try and see how it works out on different distributions/setups. Even if you can only scan one device with it, it is enough to show it works.
 
Old 06-24-2010, 07:24 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I didn't test the Bluelog Live bit, but the basic program works just fine. It complies on my 64 bit machine and finds all the bluetooth devices in the area.
 
Old 06-24-2010, 08:30 PM   #11
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Original Poster
Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Well, it is good to know it is building properly on other architectures now. The first versions used a makefile that was basically just for testing, now I am using a proper (well, better) makefile that should work right on all systems and has install/uninstall targets (which I needed for Live anyway).

Much thanks for your continued help.
 
  


Reply

Tags
bluetooth, bluez, scanner


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluetooth not working on FC6 with Targus USB bluetooth adapter mikevicious Linux - Software 1 12-11-2009 09:03 AM
bluetooth program midhat Linux - Software 1 10-01-2009 03:30 PM
Hi, anyone want to test my program? twirl Programming 4 09-16-2005 06:54 PM
test program exvor Programming 1 12-04-2004 05:52 PM
Program using Bluetooth. Nosense Programming 0 08-03-2004 06:06 AM


All times are GMT -5. The time now is 02:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration