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!

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.

1 Like

Ok cheers I’ll try that if it happens again.

Type your comment> @cdf123 said:

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.

That worked perfectly, thanks!

Isn’t it fg?

After doing the python thing I tend to do ctrl+z, stty raw -echo, fg, enter twice

That was the way…! happened in MonitorsTwo machine!!!

Thanks!