<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:foaf="https://xmlns.com/foaf/0.1/" xmlns:og="https://ogp.me/ns#" xmlns:rdfs="https://www.w3.org/2000/01/rdf-schema#" xmlns:schema="https://schema.org/" xmlns:sioc="https://rdfs.org/sioc/ns#" xmlns:sioct="https://rdfs.org/sioc/types#" xmlns:skos="https://www.w3.org/2004/02/skos/core#" xmlns:xsd="https://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/tag/bluetooth">
  <channel>
    <title>Bluetooth</title>
    <link>https://www.linuxjournal.com/tag/bluetooth</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Bluetooth Hacks</title>
  <link>https://www.linuxjournal.com/content/bluetooth-hacks</link>
  <description>  &lt;div data-history-node-id="1338832" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/11819f3.jpg" width="550" height="396" alt="" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/alexander-tolstoy" lang="" about="https://www.linuxjournal.com/users/alexander-tolstoy" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Alexander Tolstoy&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
Connect to the Internet, work with your files, lock your workspace,
listen to music and do so much more with the
help of Bluetooth technology.
&lt;/p&gt;
&lt;p&gt;
In an effort to bring more comfort and security to listening to music
via headphones while cycling, Swedish telecom vendor Ericsson invented
Bluetooth—a wireless connectivity technology, which dates back to
1994. Since then, the standards behind Bluetooth have greatly evolved, but
it still remains a niche technology, not widely used outside traditional
business applications.
&lt;/p&gt;

&lt;p&gt;
How can you benefit from using Linux on a Bluetooth-equipped PC? There
are many use cases, some of which are unconventional and even
mind-blowing. 
&lt;/p&gt;

&lt;h3&gt;
Friendly Recon&lt;/h3&gt;

&lt;p&gt;
Bluetooth in Linux is powered by the BlueZ software stack. It includes
basic tools for remote device discovery and setup. Using it, you can
collect some helpful information about the devices and people
around you.
&lt;/p&gt;

&lt;p&gt;
To start, let's see what devices are reachable for local
discovery:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
hcitool scan
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
You'll get a list of devices with their BD_ADDR values (similar to MAC)
and possibly text descriptions. These descriptions are optional, and some
users advisedly leave them blank. But still there's a way to find some
information on such devices. You can find the class code of a device if
you run the &lt;code&gt;hcitool inq&lt;/code&gt; command. After that, you can analyze it with the
&lt;a href="https://github.com/mikeryan/btclassify"&gt;Bclassify utility&lt;/a&gt;, which accepts class
code as an input parameter and gives back class disentanglement. Here
is the example 0x5a020c code:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
atolstoy@linux:~/Downloads/btclassify-master&gt; ./btclassify.py 
 ↪0x5a020c
0x5a020c: Phone (Smartphone): Telephony, Object Transfer, 
 ↪Capturing, Networking
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
Then you can find what services are supported by the device. Here is
the sample output:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
atolstoy@linux:~&gt; sdptool browse 11:22:33:44:55:66 | 
 ↪grep Service\ Name
Service Name: Headset Gateway
Service Name: Handsfree Gateway
Service Name: Sim Access Server
Service Name: AV Remote Control Target
Service Name: Advanced Audio
Service Name: Android Network Access Point
Service Name: Android Network User
Service Name: OBEX Phonebook Access Server
Service Name: SMS Message Access
Service Name: OBEX Object Push
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
Note that &lt;code&gt;sdptool&lt;/code&gt; works even when the device is not discoverable, but
is somewhere nearby. Using that technique, you can discover smartphones,
headsets, printers, wearable gadgets and, of course, desktops and
laptops. On many Mac OS X systems, Bluetooth is set in discoverable
mode silently and forever, plus it carries the owner's name in the device's
description, which is perfect for amateur social engineering.
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/bluetooth-hacks" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Wed, 23 Sep 2015 19:52:39 +0000</pubDate>
    <dc:creator>Alexander Tolstoy</dc:creator>
    <guid isPermaLink="false">1338832 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
