diff --git a/src/index.html b/src/index.html index 8d8e7f1..e2426c7 100644 --- a/src/index.html +++ b/src/index.html @@ -185,7 +185,7 @@ include "includes/navigation.html"
-

Encrypt your files before the transfer

+

Encrypt your files with gpg before the transfer

@@ -295,6 +295,7 @@ include "includes/navigation.html"
+

Upload a file using Unofficially client in Python

@@ -310,6 +311,64 @@ include "includes/navigation.html"
+
+

Encrypt your files with openssl before the transfer

+
+
+
+ # Encrypt files with password using openssl + $ cat /tmp/hello.txt|openssl aes-256-cbc -pbkdf2 -e|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt + + # Download and decrypt + $ curl {{.WebAddress}}1lDau/test.txt|openssl aes-256-cbc -pbkdf2 -d > /tmp/hello.txt + +
+
+ + +
+
+

Upload a file or directory in Windows

+
+
+
+ #Save this as transfer.cmd in Windows 10 (which has curl.exe) +@echo off +setlocal EnableDelayedExpansion EnableExtensions +goto main +:usage + echo No arguments specified. >&2 + echo Usage: >&2 + echo transfer ^<file^|directory^> >&2 + echo ... ^| transfer ^<file_name^> >&2 + exit /b 1 +:main + if "%~1" == "" goto usage + timeout.exe /t 0 >nul 2>nul || goto not_tty + set "file=%~1" + for %%A in ("%file%") do set "file_name=%%~nxA" + if exist "%file_name%" goto file_exists + echo %file%: No such file or directory >&2 + exit /b 1 +:file_exists + if not exist "%file%\" goto not_a_directory + set "file_name=%file_name%.zip" + pushd "%file%" || exit /b 1 + set "full_name=%temp%\%file_name%" + powershell.exe -Command "Get-ChildItem -Path . -Recurse | Compress-Archive -DestinationPath ""%full_name%""" + curl.exe --progress-bar --upload-file "%full_name%" "{{.WebAddress}}%file_name%" + popd + goto :eof +:not_a_directory + curl.exe --progress-bar --upload-file "%file%" "{{.WebAddress}}%file_name%" + goto :eof +:not_tty + set "file_name=%~1" + curl.exe --progress-bar --upload-file - "{{.WebAddress}}%file_name%" + goto :eof + +
+

Send us your awesome example

diff --git a/src/index.txt b/src/index.txt index b838e6d..15f1446 100644 --- a/src/index.txt +++ b/src/index.txt @@ -5,12 +5,18 @@ made with <3 by DutchCoders Upload: $ curl --upload-file ./hello.txt {{.WebAddress}}hello.txt -Encrypt & upload: +Encrypt with gpg & upload: $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt -Download & decrypt: +Download & decrypt with gpg: $ curl {{.WebAddress}}1lDau/test.txt|gpg -o- > /tmp/hello.txt +Encrypt with openssl & upload: +$ cat /tmp/hello.txt|openssl aes-256-cbc -pbkdf2 -e|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt + +Download & decrypt with openssl: +$ curl {{.WebAddress}}1lDau/test.txt|openssl aes-256-cbc -pbkdf2 -d > /tmp/hello.txt + Grep pound from syslog and transfer cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}pound.log