
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
multer-sftp-linux
Advanced tools
SFTP storage engine for Multer Based entirle on multer-sftp but with added functionality for remote linux backends.
$ npm install --save multer-sftp-linux
var multer = require('multer')
var sftpStorage = require('multer-sftp-linux')
var storage = sftpStorage({
sftp: {
host: '127.0.0.1',
port: 22,
username: 'username',
password: 'password'
},
destination: function (req, file, cb) {
cb(null, '/tmp/my-uploads')
},
filename: function (req, file, cb) {
cb(null, file.fieldname + '-' + Date.now())
}
})
var upload = multer({ storage: storage })
var sftpStorage = require('multer-sftp')
The module returns a function that can be invoked with options to create a Multer storage engine.
{
sftp: Object,
destination: function (req, file, cb) { return cb(null, '/path/to/uploads') }
filename: function (req, file, cb) { return cb(null, 'filename.ext') }
}
sftp
: Required. sftp
is a settings object for sftp client connection. Please see ssh2 documentation for details.destination
: Required. destination
is used to determine within which folder the uploaded files should be stored. This can also be given as a string
(e.g. '/tmp/uploads'
).filename
: Optional. filename
is used to determine what the file should be named inside the folder. If no filename
is given, each file will be given a random name that doesn't include any file extension.MIT © Chun-Kai Wang
FAQs
SFTP storage engine for multer, for use on linux backend
We found that multer-sftp-linux 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.