Problem in upgrading a reverse shell to stable tty shell

I was following the walkthrough for Oopsie and tried to upgrade the reverse shell from ncat to a stable tty shell by using the command below: SHELL=/bin/bash script -q /dev/null Ctrl-Z stty raw -echo fg reset After I type “reset” and press enter, the terminal gave me: “reset ^M” instead of running this command. And all the keys such as (ctrl+c, d) are not working. So what is the issue here? ps. I am using kali linux—zsh 5.8

export term=XTERM