Making shell better no longer working kali 2020.4

Hi, have been away from this for a while, have just set up a kali VMware image with 2020.4 on.
When getting a reverse shell when nothing works properly (tab completion, up arrow etc) I always used to use the usual steps:

python3 -c 'import pty;pty.spawn("/bin/bash")'
CTRL-Z to background
stty raw -echo
fg (Enter)

Now this does not work. I just end up where every key press just spews garbage, as per the image:

Any ideas?

Two options:

  1. Try using rlwrap like this: rlwrap nc -nvlp <port>
  2. Run /bin/bash before running nc -nvlp <port>

I have ran into this issue a few times as well. Try these options first :slight_smile:

Yeah it’s the new kali terminal, the one with autosuggest… it breaks on the stty technique. Maybe you can change back to the old terminal emulator?

Alright, will give those a try. Thanks