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

Jonathan Hodgson 4 years ago
parent 9a5646f49c
commit f76b2b1c6f
  1. 5
      bin/.bin/dmenu/rofi-reverse-shells

@ -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

Loading…
Cancel
Save