
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
bluetooth-hci-socket
Advanced tools
Bluetooth HCI socket binding for Node.js
NOTE: Currently only supports Linux.
npm install bluetooth-hci-socket
var BluetoothHciSocket = require('bluetooth-hci-socket');
var bluetoothHciSocket = new BluetoothHciSocket();
var filter = new Buffer(14);
// ...
bluetoothHciSocket.setFilter(filter);
bluetoothHciSocket.bind();
Get the device (Bluetooth/BT) address. Note: must be called after bind
.
var btAddress = bluetoothHciSocket.getAddress();
Get the device (Bluetooth/BT) address type. Note: must be called after bind
.
var btAddressType = bluetoothHciSocket.getAddressType(); // returns: 'public' or 'random'
Query the device state. Note: must be called after bind
.
var isDevUp = bluetoothHciSocket.isDevUp(); // returns: true or false
Start or stop event handling:
bluetoothHciSocket.start();
// ...
bluetoothHciSocket.stop();
var data = new Buffer(/* ... */);
// ...
bluetoothHciSocket.write(data);
bluetoothHciSocket.on('data', function(data) {
// data is a Buffer
// ...
});
bluetoothHciSocket.on('error', function(error) {
// error is a Error
// ...
});
See examples folder for code examples.
FAQs
Bluetooth HCI socket binding for Node.js
We found that bluetooth-hci-socket demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.