
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
sftp-file-listener
Advanced tools
SFTP file watcher monitors the SFTP directory provided and tigger corresponding event. It's easy to start and stop process at any time.
Install package
npm install sftp-file-listener
var watcher = require('./sftp-file-listener');
var sftpConfig = {
clientName: "<client_name>", // a name string used in error messages
host: "127.0.0.1",
port: 22,
username: "user_name",
password: "password",
path: "path_to_listen",
filetypes: "file_types_filter", //optional
};
async function init() {
try {
var listener = await watcher.listen(sftpConfig);
listener.on("init", function (data) {
console.log(data);
});
listener.on("upload", function (data) {
console.log(data);
});
listener.on("error", async function (data) {
console.log(data);
});
// setTimeout(function () {
// console.log("calling stop");
// listener.emit("stop", true);
// }, 3000);
} catch (err) {
console.log(err.message);
}
}
FAQs
SFTP listener to monitor the file changes using ssh2 client
We found that sftp-file-listener 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.