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.
JavaScript (Node.js and browsers) library for aria2, "The next generation download utility."
aria2.js supports the WebSocket and HTTP transports.
bower install aria2
<script src="bower_components/aria2/aria2.min.js"></script>
npm install aria2
var Aria2 = require('aria2');
var aria2 = new Aria2([options]);
default options are
{
host: 'localhost',
port: 6800,
secure: false
}
aria2.open() will open the WebSocket connexion.
aria2.onopen = function() {
console.log('I\'m open!');
};
aria2.open();
aria2.close() will close the WebSocket connexion.
aria2.onclose = function() {
console.log('I\'m closed!');
};
aria2.close();
onsend() is called everytime a message is being sent, onmessage() is called everytime a message has been received.
aria2.onsend = function(m) {
console.log('OUT', m);
};
aria2.onmessage = function(m) {
console.log('IN', m);
};
For a complete listing see aria2 methods.
When sending a request to aria2, if the WebSocket isn't available or closed, aria2.js will use the HTTP transport.
For every method you can use
aria2.send('getVersion', [params,] function(err, res) {
console.log(err || res);
});
or directly
aria2.getVersion([params,] function(err, res) {
console.log(err || res);
});
For a complete listing see aria2 notifications.
For every notifications you can attach a function to call.
aria2.onDownloadStart = function(event) {
console.log(event);
};
See example.js
FAQs
Library and for aria2, "The next generation download utility."
The npm package aria2 receives a total of 249 weekly downloads. As such, aria2 popularity was classified as not popular.
We found that aria2 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.