Hi guys, i’m trying to get into pentesting so i’m slowly going through the starting point tutorials, unfortunately I keep getting stuck at seemingly random stages where what i’m doing just doesn’t seem to work like it does in the tutorial.
I am at this stage:
"We got the foothold. We will quickly make our shell fully interactive:
"
but when I try to run the python command I dont get any kind of shell, and when I fg back to the listener I had open it’s still in raw mode so I cant press return on the “export TERM=xterm” command, if I do CTRL+J to send a return it just does returns me to the normal nc shell:
It’s very hard to understand, I don’t have the answer, but I can think that the problem is the character for controlling the terminal. Because the stty command, interact with them.
So if you want restore the terminal, you need to type “stty sane”, when the terminal don’t work the backspace you need to type “stty erase ^H” etc. I think with the command “stty raw etc” you lost some special character for controlling you terminal, like “\r” for example.