
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
The ftp_transfer gem was designed in an attempt to create a simpler api for bulk ftp transfers.
Here is an example of an upload. In this case, the optional archive directory option has been specified so a copy of the transferred files will be kept locally in that directory. The pattern option is also optional and will default to '*'.
require 'ftp_transfer'
FtpTransfer.new(
host: 'foobar.bazquux.com',
user: 'user',
pass: 'password',
port: 21212, # optional param (will default to 21)
local_dir: '~/files-to-send',
pattern: '*.jpg',
archive_dir: '~/archived-files').upload('file-upload-dir')
Here is an example of a download
FtpTransfer.new(
host: 'foobar.bazquux.com',
user: 'user',
pass: 'password',
local_dir: '~/received-files',
pattern: '*.jpg').download('file-download-dir')
There is not currently an archive option for the download method. If you need that for your application, feel free to send a pull request.
FAQs
Unknown package
We found that ftp_transfer 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.