From 9bf56e48b7abf7adea2d1ad39202f7f970e8e1d0 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Mon, 18 Sep 2023 12:21:31 +0100 Subject: [PATCH] Update README.md --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 577a34d..6f14652 100644 --- a/README.md +++ b/README.md @@ -882,8 +882,9 @@ gs-netcat >"FILENAME" # When prompted, enter the SECRET from the sender ``` -### 4.v. File transfer - using HTTP +### 4.v. File transfer - using HTTPs +#### Download from Server to Receiver: ```sh ## Spawn a temporary HTTP server and share the current working directory. python -m http.server 8080 @@ -893,6 +894,24 @@ python -m http.server 8080 ## Request a temporary tunnel on a public domain cloudflared tunnel -url localhost:8080 ``` +Receiver: Access the URL from any browser to view/download the remote file system. + +#### Upload from Sender to Receiver: +```sh +## Spawn an upload server on the Receiver: +pip install uploadserver +python -m uploadserver +``` + +```sh +## Make it available through a public domain +cloudflared tunnel -url localhost:8000 +``` + +On the Sender: +```sh +curl -X POST https://CF-URL-CHANGE-ME.trycloudflare.com/upload -F 'files=@myfile.txt' +``` ### 4.vi. File transfer without curl