Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Excute shell commands in queue.
$ npm install exeq --save
exeq(
'mkdir example',
'rm -rf example'
);
2.0.0+
// promise
exeq(
'mkdir example',
'cd example',
'touch README.md',
'touch somefile',
'rm somefile',
'ls -l',
'cd ..',
'rm -rf example',
'ls -l > output.txt'
).then(function() {
console.log('done!');
}).catch(function(err) {
console.log(err);
});
exeq([
'mkdir example',
'rm -rf example'
]);
exeq(
'echo 123',
'echo 456',
'echo 789'
).then(function(results) {
console.log(results[0].stdout); // '123'
console.log(results[1].stdout); // '456'
console.log(results[2].stdout); // '789'
});
exeq(
'not-existed-command'
).then(function(results) {
}).catch(function(err) {
console.log(err); // { code: '127', stderr: ' ... ' }
});
// cd command would change spawn cwd automatically
// create README.md in example
exeq(
'mkdir example',
'cd example',
'touch README.md'
);
var proc = exeq([
'echo 1',
'sleep 10',
'echo 2'
]);
proc.q.kill();
var proc = exeq([
'echo 1',
'echo 2'
]);
proc.q.on('stdour', function(data) {
console.log(data);
});
proc.q.on('stderr', function(data) {
console.log(data);
});
proc.q.on('killed', function(reason) {
console.log(reason);
});
proc.q.on('done', function() {
});
proc.q.on('failed', function() {
});
$ npm test
The MIT License (MIT)
FAQs
Excute shell commands in queue
We found that exeq demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.