Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
nestjs-ftp
Advanced tools
Readme
npm install nestjs-ftp
This is an FTP client for NestJs, it supports FTPS over TLS, Passive Mode over IPv6, has a Promise-based API, and offers methods to operate on whole directories built on top of basic-ftp
Nestjs-ftp is build using the NestJs Dynamic modules and Factory providers approach, to configure it import the FtpModule
module and the forRootFtpAsync
service.
For example, your AppModule
should look like this :
import { Module } from '@nestjs/common';
@Module({
imports: [
FtpModule.forRootFtpAsync({
useFactory : async ()=>{
return {
host:"test.rebex.net",
password:"password",
port:21,
user:"demo",
secure:true
}
},
inject: [ConfigService]
})
controllers: [AppController],
providers: [AppService],
})
export class AppModule { }
Then just inject the service just like any local service
For Example:
import { Injectable } from '@nestjs/common';
import { FtpService } from 'nestjs-ftp';
@Injectable()
export class AppService {
constructor(private readonly _ftpService: FtpService){}
async uploadFile(): string {
try {
await this._ftpService.upload(source,destination)
} catch (error) {
throw new Error(error)
}
}
}
ABDESSALEM LETAIEF
Licensed under the MIT License - see the LICENSE file for details.
FAQs
Nestjs-ftp is a NestJs Module repository of basic-ftp package
The npm package nestjs-ftp receives a total of 347 weekly downloads. As such, nestjs-ftp popularity was classified as not popular.
We found that nestjs-ftp 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.