
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Need to tail a file on a remote server? ftp-tail should be able to help!
To collect the data we needed to build SquadJS, a scripting framework for Squad servers, we found we needed to tail the Squad server's log files. As a result of this, it became a requirement that SquadJS must be installed on the same machine as the Squad server, however, this prevented anyone using rented Squad server instances from using SquadJS. Thus, we endeavoured to make it possible for these logs files to be streamed over the FTP and SFTP servers provided by most hosts - ftp-tail is the outcome of this and we have opened-sourced it for others to benefit from.
import { FTPTail } from 'ftp-tail';
(async () => {
// Initiate FTPTail...
const tailer = new FTPTail(
{
ftp: {
// basic-ftp's .access options.
host: "xxx.xxx.xxx.xxx",
user: "user",
password: "password",
// As well as...
timeout: 5 * 1000, // Timeout (optional).
encoding: 'utf8' // Encoding (optional).
},
fetchInterval: 0, // Delay between polls.
log: true // Enable logging (also accepts logging function).
}
);
// Do something with the lines, e.g. log them.
tailer.on('line', console.log);
// Watch the file...
await tailer.watch('/SquadGame.log');
// Unwatch the file...
await tailer.unwatch();
})();
import { SFTPTail } from 'ftp-tail';
(async () => {
// Initiate FTPTail...
const tailer = new SFTPTail(
{
ftp: {
// ssh2-sftp-client's .connect options.
host: "xxx.xxx.xxx.xxx",
username: "user",
password: "password",
},
fetchInterval: 0, // Delay between polls.
log: true // Enable logging (also accepts logging function).
}
);
// Do something with the lines, e.g. log them.
tailer.on('line', console.log);
// Watch the file...
await tailer.watch('/SquadGame.log');
// Unwatch the file...
await tailer.unwatch();
})();
The logic behind ftp-tail was originally proposed, designed and implemented by awn.gg - ftp-tail is an open-sourced re-implementation of their efforts.
FAQs
A lightweight module to tail files over FTP or SFTP.
The npm package ftp-tail receives a total of 87 weekly downloads. As such, ftp-tail popularity was classified as not popular.
We found that ftp-tail 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.