Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
smartfritz-promise
Advanced tools
SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface
Node module to communicate with a AVM FritzBox and FRITZ!DECT 200 (smart home hardware) providing the following functions:
For AVM FRITZ!DECT 200 control you need to know the actuator identification number (AIN) which can be obtained using getSwitchList
.
Thermostat functions are only available as of FritzOS 6.36
Note as of FritzOS 6.36 there is are no official function to obtain a list of thermostats, neither to get the thermostat's temperature. Also the switches getSwitchTemperature()
function is not working in that firmware version.
For an alternative approach the getTemperature()
polyfill function was added which supports both switches and thermostats.
All functions have been tested on FritzOS 6.20/6.36 / FritzBox 7390. The WLAN functions may be less stable.
npm install smartfritz-promise
Get the session ID default: as URL "fritz.box" is used as default paramter
var fritz = require('smartfritz-promise');
fritz.getSessionID("user", "password").then(function(sid) {
console.log(sid);
});
Get the session ID with own URL: use your Fritz!Box IP when "fritz.box" is not working.
var moreParam = { url:"192.168.178.1" };
fritz.getSessionID("user", "password", moreParam).then(function(sid) {
console.log(sid);
});
Get the Switch AID List:
fritz.getSessionID("user", "password").then(function(sid) {
console.log(sid);
fritz.getSwitchList(sid).then(function(ains){
console.log("Switches AINs: "+ains);
});
});
AHA - AVM Home Interface
https://fritz.box/webservices/homeautoswitch.lua?ain=&switchcmd=&sid=
AHA-HTTP-Interface document http://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf
FAQs
SmartHome for Fritz!Box and Dect!200 Node to communicate with AVM FritzBox over the aha-http-interface
The npm package smartfritz-promise receives a total of 7 weekly downloads. As such, smartfritz-promise popularity was classified as not popular.
We found that smartfritz-promise 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.