So I've been doing CTF Tryhackme called mKingdom and got a remote shell. However, I want an upgrade of the remote terminal so I ran python3 -c 'import pty;pty.spawn("/bin/bash")' , it showed nothing in the remote terminal as shown in the picture.
I cannot type anything else like it just stuck there.
ChatGPT told me to go Control+Z back into my local terminal and run this cmd:
stty raw -echo;fg
I'm not sure what this does but after I ran it, I received the stty indentation problem and I can't see the letter.
Okay, now I opened another terminal and run the same code, but it showed this indentation and transparent command instead.
Finally, here's my stty setting using cmd:
stty -a
FYI, I'm a new CTF player. Please explain this to me as if I were a kid.



