Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@seydx/tr064
Advanced tools
TR-064 - UPnP/IGD for node.js
A library to interact with routers and other network devices. Tested and designd for Fritz.Box routers.
This library is capable of:
More info about TR-064: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_TR-064_first_steps.pdf
npm install tr-064
Connect to the device and read a Service.
var tr = require('tr-064');
var tr064 = new tr.TR064();
tr064.initTR064Device('fritz.box', 49000, function(err, device) {
if (!err) {
var wanip = device.services['urn:dslforum-org:service:WANIPConnection:1'];
wanip.actions.GetInfo(function(err, result) {
console.log(result);
});
}
});
var tr = require('tr-064');
var tr064 = new tr.TR064();
tr064.initTR064Device('fritz.box', 49000, function(err, device) {
if (!err) {
device.startEncryptedCommunication(function(err, sslDev) {
if (!err) {
sslDev.login([USER], [PASSWORD]);
var wanip = sslDev.services['urn:dslforum-org:service:WANIPConnection:1'];
wanip.actions.GetInfo(function(err, result) {
console.log(result);
});
}
});
}
});
Get the info from both protocols.
var tr = require('tr-064');
var tr064 = new tr.TR064();
tr064.initTR064Device('fritz.box', 49000, function(err, device) {
if (!err) {
console.log('Found device! - TR-064');
showDevice(device);
}
});
tr064.initIGDDevice('fritz.box', 49000, function(err, device) {
if (!err) {
console.log('Found device! - IGD');
showDevice(device);
}
});
var showDevice = function(device) {
console.log('=== ' + device.meta.friendlyName + ' ===');
device.meta.servicesInfo.forEach(function(serviceType) {
var service = device.services[serviceType];
console.log(' ---> ' + service.meta.serviceType + ' <---');
service.meta.actionsInfo.forEach(function(action) {
console.log(' # ' + action.name + '()');
action.inArgs.forEach(function(arg) {
console.log(' IN : ' + arg);
});
action.outArgs.forEach(function(arg) {
console.log(' OUT: ' + arg);
});
});
});
};
Initialize the TR - 064 UPnP controller
host
- hostname of the deviceport
- port of the device(standard: 49000)callback
- (err, device)Initialize the TR - 064 IGD controller
host
- hostname of the deviceport
- port of the device(standard: 49000)callback
- (err, device)Starts SSL encrypted Communication
caFile
- Filename of custom .pem file (Optional)callback
- (err, device)Stops SSL encrypted Communication
Configure device to use authentication for every request
user
- Username (Optional, default device user is used instead)password
- Device passwordConfigure device to not use authentication
Starts a 'device-side' transaction
callback
- (err, device)Ends the current transaction
Array with all info about services and actions
Service Identifier
]Gets the specified service form the device
Service Identifier
- usually in the form of: urn:dslforum-org:service:XXX:1name
- Argumentname for Actionvalue
- Argumentvalue for Actioncallback
- (err, result)service.actions.SetEnable([{ name: 'NewEnable', value: '1' }], function(err, result) {
console.log(result);
});
Feel free to provide PRs with updates to this package. But please follow these steps:
yarn format
FAQs
TR-064 - UPnP/IGD for node.js
The npm package @seydx/tr064 receives a total of 2 weekly downloads. As such, @seydx/tr064 popularity was classified as not popular.
We found that @seydx/tr064 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.