From 90e2e053d25feabd2dcf384dfc262a8bcdbe3ab8 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sat, 5 Mar 2022 12:53:15 -0700 Subject: Initial Commit --- termshare/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 termshare/README.md (limited to 'termshare/README.md') diff --git a/termshare/README.md b/termshare/README.md new file mode 100644 index 0000000..9d62c0a --- /dev/null +++ b/termshare/README.md @@ -0,0 +1,32 @@ +# Server + +Simple server works and can give us a bash session + +# Remote forward + +```bash +# Server +python -m http.server 8001 +./termshare +# Attempt to bind to localhost 8000 granted + +# Client +ssh -R 8000:localhost:8001 root@127.0.0.1 -p 2222 +curl 127.0.0.1:8000 +# See the python listing + + +# Build +go build +``` + +# Todo: + +- Build a very small client that can connect to the host + + +# Fixed: + +- Importing the function from the internal library is not working + * exported names need to start with a Captial +- How to pass arguments to command function? -- cgit v1.2.3