Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
abstractsocket
Advanced tools
Readme
abstract unix sockets support for net.createConnection
var net = require('net');
require('abstractsocket')(net);
var connection = net.createConnection('\u0000/tmp/dbus-OeixI07RHo');
connection.pipe(process.stdout);
connection.write(Buffer('\0AUTH EXTERNAL 31303030\r\n'));
you can map net.createConnection
to any command:
var net = require('net');
var url = require('url');
require('abstractsocket')(net, {
getSpawnArguments: function(path) {
if (path.match(/^ssh\+exec:\/\//)) {
var params = url.parse(path, true);
var args = [];
if (params.port)
{
args.push('-p');
args.push(params.port.toString());
}
var user = params.auth.split(':')[0];
args.push(user + '@' + params.hostname);
args.push(params.query.command);
console.log(args);
return ['ssh', args];
}
// if not matched, createConnection is called
}
});
// list files on remote machine
var lsStream = net.createConnection('ssh+exec://user@domain.com:2222/?command=ls%20-l');
lsStream.pipe(process.stdout);
FAQs
Abstract unix sockets support by spawning socat process
The npm package abstractsocket receives a total of 6 weekly downloads. As such, abstractsocket popularity was classified as not popular.
We found that abstractsocket 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.