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.
s-sftp-upload
Advanced tools
一个简单的ftp上传工具包,创建目的主要是用于项目打包部署代码。 将指定本地目录上传到远程服务器指定目录中。 还可将本地上传目录文件打包备份到服务器上,保存每次部署的代码版本。
npm install s-sftp-upload
const path = require('path');
const ftpUpload = require('s-sftp-upload');
const ftpU = new ftpUpload({
host: 'xx.xx.xx.xx', // 必填,ftp服务器地址
port: xx, // 必填,ftp服务器端口,例:22 (一般默认是22)
username: 'xxxx', // 必填,ftp服务器用户名
password: 'xxxxxx', // 必填,ftp服务器密码
localPath: path.resolve(__dirname, 'xxx'), // 必填,指定本地上传目录,例:./dist
remotePath: 'xxx', // 必填,指定远程服务器上传目录,例:/app/bus/admin
})
// 开始执行上传
ftpU.start()
FAQs
一个简单的ftp上传工具,主要用于项目部署并可选将上传的文件打包备份服务器。
We found that s-sftp-upload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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’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.