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.
worksmith_sftp
Advanced tools
SFTP activities for worksmith
This package contains the following activities/tasks:
name | description |
---|---|
connect | Connects the underlying sftp client |
disconnect | Disconnects the underlying sftp client |
command | Executes the specified sftp command |
Connects the underlying sftp client
name | type | description |
---|---|---|
config | object | Connection parameters (see whoosh) |
var worksmith = require('worksmith')
worksmith.use('sftp', require('worksmith_sftp'))
var workflow = worksmith({task:'sequence', items : [{
task:'sftp/connect',
config: {
hostname: 'sftp.example.com',
port: 22,
username: 'fred',
password: 'secret'
},
resultTo: 'sftp'
}])
Disconnects the underlying sftp client
name | type | description |
---|---|---|
sftp | sftp client | The sftp client (if not specified expected to be in the context 'sftp' property) |
var worksmith = require('worksmith')
worksmith.use('sftp', require('worksmith_sftp'))
var workflow = worksmith({task:'sequence', items : [{
task:'sftp/connect',
config: {
hostname: 'sftp.example.com',
port: 22,
username: 'fred',
password: 'secret'
},
resultTo: 'sftp'
}, {
task: 'sftp/disconnect',
sftp: '@sftp'
}])
Executes the specified sftp command
name | type | description |
---|---|---|
sftp | sftp client | The sftp client (if not specified expected to be in the context 'sftp' property) |
command | string | The command to execute (see whoosh) |
arguments | array | The array of parameters to pass to the command |
var worksmith = require('worksmith')
worksmith.use('sftp', require('worksmith_sftp'))
var workflow = worksmith({task:'sequence', items : [{
task:'sftp/connect',
config: {
hostname: 'sftp.example.com',
port: 22,
username: 'fred',
password: 'secret'
},
resultTo: 'sftp'
}, {
task: 'sftp/command',
command: 'stat',
arguments: ['.']
}, {
task: 'sftp/disconnect',
sftp: '@sftp'
}])
You need an sftp server running on localhost:10022 for the tests to pass. If you have docker and docker-compose installed simply run docker-compose up
in the route of this project.
FAQs
SFTP activites for worksmith
The npm package worksmith_sftp receives a total of 2 weekly downloads. As such, worksmith_sftp popularity was classified as not popular.
We found that worksmith_sftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.