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

master
Jonathan Hodgson 4 years ago
parent afb6634bec
commit 830c040a92
  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 primary
resize-netcat-listener -r /home/jonathan/go/src/resize-nc-listener/examples/stty-resize-copy $port
#nc -lvnp $port
type -p resizeblar-netcat-listener &&
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
# This is useful if I got a nice shell before
stty -raw echo

Loading…
Cancel
Save