From 9bd432b5de3592f89d885deaff953418822acaa9 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 14 Feb 2019 21:12:09 -0500 Subject: Add a readme and allocate a pty for the reverse shell --- lib/spawn | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/spawn b/lib/spawn index 07c27d8..1d19aa4 100755 --- a/lib/spawn +++ b/lib/spawn @@ -5,13 +5,12 @@ SOCKDIR=$(mktemp -d) SOCKF=${SOCKDIR}/usock # Start tmux, if needed -if ! tmux ls | grep -q rshell; then - tmux new -s rshell -d +if ! tmux ls | grep -q rshsh; then + tmux new -s rshsh -d fi # Create window -# Let's just see it works -tmux new-window -t rshell "socat UNIX-LISTEN:${SOCKF},umask=0077 STDIO" +tmux new-window -t rshsh "socat UNIX-LISTEN:${SOCKF},umask=0077 file:\$(tty),raw,echo=0" # Wait for socket while test ! -e ${SOCKF} ; do sleep 1 ; done -- cgit v1.2.3