
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
dlna-browser-utils
Advanced tools
Small utility to be able to browse the content on a DLNA server.
There were other utilities to discover servers but not to easily browse the content.
To install simply run:
npm install dlna-browswer-utils
or
npm install https://github.com/mhdawson/dlna-browser-utils.git
The module exports a single function which has the following signature:
browseServer(id, controlUrl, options, callback)
where the parameters are as follows:
The options object can optionally conaint the following elements:
The result object has two fields each of which is an array. These fields are:
The objects in the container array have the following fields:
The objects in the item array have the following fields:
The following example shows how to list all of the contents on ad DLNA server. It assumes you have already discovered the control url with a utility like node-ssdp.
As an example you could run it as:
node example.js "http://10.1.1.176:49081/dev/b9a87696-f016-4a54-81b3-75f57185a385/svc/upnp-org/ContentDirectory/action"
by substituting in the control url for your server.
"use strict";
const browseServer = require('./lib/index.js');
var listContent = function(queue, url, options, callback) {
var root = queue.shift();
browseServer(
root,
url,
{},
function(err, result) {
if (err) {
callback(err);
return;
}
if (result.container) {
for (let i = 0; i < result.container.length; i++) {
if (result.container[i].id != 'Video/temp') {
queue.push(result.container[i].id);
console.log('Container:' + result.container[i].id);
}
}
}
if (result.item) {
for (let i = 0; i < result.item.length; i++) {
console.log('Item:' + result.item[i].title);
}
}
if (queue.length >0) {
listContent(queue, url, options, callback);
}
});
}
var queue = new Array();
queue.push('0');
listContent(queue,
process.argv[2],
{},
function(err){
console.log(err);
});
A second example is included in the file example2.js
. You will need
to install node-ssdp in order to
run this second example. It shows how you can dynamically look up a
DLNA server by name and then list the top level content with 'dlna-browser-utils'.
As an example you can run it as:
node example2.js 'New - Michaels Media Server'
substituting in the name of a DLNA server on your network.
Pull requests welcome. Particularly if you have DLNA servers to test against and find issues. So far I've only tested against my own DLNA server which is part of JavaPvr.
FAQs
Utility to browse dlna servers
The npm package dlna-browser-utils receives a total of 14 weekly downloads. As such, dlna-browser-utils popularity was classified as not popular.
We found that dlna-browser-utils 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.