Qnap [ Croc ] [ 9.6.0.0 ] command line to easily and securely send things from one computer to another

QoolBox

Représentant QNAP
2 Janvier 2014
10 559
163
153
50
France
www.qnap.com
qpkg_icon_80.gif

Source : https://github.com/schollz/croc

Download :

https://www.qnapclub.eu/fr/qpkg/780

About :

command line to easily and securely send things from one computer to another

croc is a tool that allows any two computers to simply and securely transfer files and folders. AFAIK, croc is the only CLI file-transfer tool does all of the following:

allows any two computers to transfer data (using a relay)
provides end-to-end encryption (using PAKE)
enables easy cross-platform transfers (Windows, Linux, Mac)
allows multiple file transfers
allows resuming transfers that are interrupted
does not require a server or port-forwarding

Usage
To send a file, simply do:

$ croc send [file(s)-or-folder]
Sending 'file-or-folder' (X MB)
Code is: code-phrase
Then to receive the file (or folder) on another computer, you can just do

$ croc code-phrase
The code phrase is used to establish password-authenticated key agreement (PAKE) which generates a secret key for the sender and recipient to use for end-to-end encryption.

There are a number of configurable options (see --help). A set of options (like custom relay, ports, and code phrase) can be set using --remember.

Custom code phrase
You can send with your own code phrase (must be more than 4 characters).

$ croc send --code [code-phrase] [file(s)-or-folder]
Use pipes - stdin and stdout
You can pipe to croc:

$ cat [filename] | croc send
In this case croc will automatically use the stdin data and send and assign a filename like "croc-stdin-123456789". To receive to stdout at you can always just use the --yes will automatically approve the transfer and pipe it out to stdout.

$ croc --yes [code-phrase] > out
All of the other text printed to the console is going to stderr so it will not interfere with the message going to stdout.

Self-host relay
The relay is needed to staple the parallel incoming and outgoing connections. By default, croc uses a public relay but you can also run your own relay:

$ croc relay
Make sure to open up TCP ports (see croc relay --help for which ports to open).

You can send files using your relay by entering --relay to change the relay that you are using if you want to custom host your own.

$ croc --relay "myrelay.example.com:9009" send [filename]
 
Dernière édition:
v9.0.0


Code:
Changelog
9286b3c show folders when receiving
c1edf24 fix race condition
3e56d4c use magic bytes instead of checking max
cec39ba allow changing curve
c02b4f1 fix: make sure that only pake messages are unencrypted
babfd5f add option to overwrite automatically
be5ceae prompt to overwrite
2131e99 use new pake
628043b fix: do not use part of secret as room name
876ce57 Transfer symlinks without touching their targets.
 

v9.6.0

Latest

Changelog​

1851327 bump 9.6.0
0e93f1e println -> print os.stderr
7e0814a update deps
c6bcb79 remove zip compression and add --zip to send command
1346736 Merge pull request #488 from stefins/zip-folder
d226ba5 Fixed relative path / bug
b50fe88 Added support for sending relative folder
37ae453 Unzipping file at the reciever end
ee772c4 Added UnzipDirectory function
ed03037 Modified the argument for GetFilesInfo in tests
ad36e21 Handling the --zip flag
4ea9a96 Added --zip CLI argument for zipping all the dir specified
f0f9b80 added ZipDirectory function
7a0c0a8 Merge pull request #474 from tjanez/fedora-package
a5d3e00 add Fedora instructions to README