Makes reverse shell script work if resize listener isn't available

This commit is contained in:
Jonathan Hodgson 2021-03-11 15:08:06 +00:00
parent afb6634bec
commit 830c040a92

View file

@ -52,8 +52,9 @@ function display() {
echo -n "$reverseShell" | /usr/bin/xclip -i -selection clipboard echo -n "$reverseShell" | /usr/bin/xclip -i -selection clipboard
echo -n "$reverseShell" | /usr/bin/xclip -i -selection primary echo -n "$reverseShell" | /usr/bin/xclip -i -selection primary
resize-netcat-listener -r /home/jonathan/go/src/resize-nc-listener/examples/stty-resize-copy $port type -p resizeblar-netcat-listener &&
#nc -lvnp $port resize-netcat-listener -r /home/jonathan/go/src/resize-nc-listener/examples/stty-resize-copy $port ||
nc -lvnp $port
#Put the tty back to normal #Put the tty back to normal
# This is useful if I got a nice shell before # This is useful if I got a nice shell before
stty -raw echo stty -raw echo