Double characters in shell

I'm currently working on a box and I've managed to get a reverse shell. When I use the python -c 'import pty; pty.spawn("/bin/sh")' I'm getting all characters that I type duplicated and it's really annoying. What's going on?

EG: if I type ls -al what shows in the terminal is actually llss --aall.

The command still works but it's really hard going!

Tagged:

Comments

  • Hmm I restarted my VM, created a new reverse shell and it's working fine now. Not sure what happened but as always, a restart helped!

  • I'm guessing both terminals had stty echo, so you probably needed to Ctrl-Z and stty -echo on your local terminal and bg to get back to the remote shell.

    image

  • Ok cheers I’ll try that if it happens again.
Sign In or Register to comment.