ffsend: Secure file sharing from the command line (Firefox sending client)

give away Is a command line Firefox sending client, currently in Alpha state, suitable for Linux, macOS and Windows (currently only macOS and Linux binaries are provided). With ffsend, you can easily and safely share files from the command line send, This is a Firefox test pilot project.
Firefox Send is a file sharing experiment conducted by Mozilla, which allows sending encrypted files to other users. “Send” can be Installed On your own server, or you can use Mozilla hosting send.firefox.com. The latter officially supports files up to 1 GB (but I can upload 2 GB files, as described in the ffsend description), and each link expires after a configurable number of downloads (1 download by default) or after 24 hours, and also delete All files in the sending server. Learn more about Send a trial version of Firefox.

ffsend can upload and download files, while remote hosts can download files using ffsend or a simple web browser (not necessarily Firefox).
One can always use send.firefox.com The web interface uploads and downloads files, but ffsend is used in scripts without interaction. You can also use it for fast file upload or download without opening a web browser.
Although ffsend uses client-side encryption, make sure that all files are encrypted before uploading to the remote host, but anyone with the link can download the file, so make sure not to share the file with unauthorized people. This is because the shared URL contains the encryption key used to decrypt the file when it is downloaded. Provides additional levels of protection-you can password protect files by attaching files --password When using ffsend to upload files, or by setting a password after file upload ffsend password URL -p YOUR-PASSWORD.
ffsend function:

  • Upload and download files and directories. For directories, ffsend will provide the ability to archive content before uploading it.
  • Can be used with send.firefox.com (this is the default setting) or your own sending host
  • Client encryption
  • Configurable download limit (allows file to be downloaded from 1 to 20 times)
  • password protection
  • Built-in archive and extraction
  • File history tracking, easy to manage
  • Check or delete shared files

Download and use ffsend

Although ffsend supports Linux, macOS and Windows, now only macOS and Linux binaries are available for download. For Debian, Ubuntu, Linux Mint and other DEB-based Linux distributions, all you have to do is download and install the ffsend DEB package.
On other Linux distributions (such as Fedora, etc.), you can download common binaries. For 64-bit (most users), please download the ffsend binary ending with -linux-x64.tar.gz, Unzip it and install it in one of your locations $PATH, Like /usr/local/bin. Assuming you have already extracted .tar.gz In the current folder-in this case, you can install the ffsend binary in /usr/local/bin Use this command:

sudo install ffsend /usr/local/bin/

Now you can upload files like this:

ffsend upload 

Replace file.ext With the file you want to upload.
Do you want to use ffsend to download files? It’s that simple:

ffsend download 

By default, ffsend allows each shared file to be downloaded once and then delete the file from the server. To change this setting, use --downloads NN (Where NN Is the number from 1 to 20 when uploading the file):

ffsend upload --downloads  

You can also change the number of allowed downloads for uploaded files. For this, you must know the URL of the file to be modified. You can use the following methods to view all shared URLs:

ffsend history

The output is as follows:

$ ffsend history
#  LINK                                                                  EXPIRY  
1  https://send.firefox.com/download/e84e67e23c/#DYyvhlM9h1x1TAC9lJNUbw  23h59m  
2  https://send.firefox.com/download/c7fa183352/#j90VHhSrcpx_2Xlb-LGeXg  5h20m  
3  https://send.firefox.com/download/65716755f4/#wQaXbCgC2HOXvLrJVFc-Lw  4h58m  
4  https://send.firefox.com/download/4fbd102676/#LocbOt6LEs-sQFG6CKPeLw  4h54m  
5  https://send.firefox.com/download/fbe2a90d5b/#fJJ8NKsoJq0RRTRMSD3cVQ  3h6m

As you can see, the command only lists the URL and its validity period, but does not list the file name. you can use it info Command to get more detailed information about the URL, for example:

ffsend info 

This is the output:

$ ffsend info https://send.firefox.com/download/4fbd102676/#LocbOt6LEs-sQFG6CKPeLw
ID:         4fbd102676  
Name:       Fedora-Workstation-Live-x86_64-29-1.2.iso  
Size:       1.80 GiB (1931477008 B)  
MIME:       application/octet-stream  
Downloads:  0 of 1  
Expiry:     4h53m (17613s)

Once you know the URL, you can use the following command to change the number of allowed downloads until the link expires:

ffsend parameters --download-limit  

NN The number of downloads allowed before the link expires (between 1 and 20), and URL Send URL.
For more information about ffsend, see Readme And check out ffsend --help.

Source

Sidebar