calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.58k stars 250 forks source link

Ctrl + D outputs the following #276

Open Jspl0it opened 10 months ago

Jspl0it commented 10 months ago
stty: 'standard input': Inappropriate ioctl for device

(local) pwncat$                                                                        
stty: 'standard input': Inappropriate ioctl for device

(local) pwncat$                                                                        
stty: 'standard input': Inappropriate ioctl for device

(local) pwncat$                                                                        
stty: 'standard input': Inappropriate ioctl for device```

## Bug Description
When attempting to use Ctrl+D to use the terminal on the machine with the reverse shell I am given this error.

## pwncat version
Provide the output of `pwncat --version` or a commit hash if working from
a development branch.

$ pwncat --version 0.5.4



## Target System (aka "victim")
https://tryhackme.com/room/picklerick.

## Steps to Reproduce
Steps to reproduce the behavior:
1. Initiate pwncat listner using ```pwncat-cs -lp 1337```
2. type ls, realize it doesn't work. Use Ctrl+D to switch modes.
3. Recieve output : **stty: 'standard input': Inappropriate ioctl for device**
4. See error

## Expected Behavior
To be able to use basic linux commands

## Screenshots
Some dependency has been deprecated: 
https://imgur.com/UXWE1dS

Attempting to use ls then using Ctrl+D to use regular terminal.
https://imgur.com/Mwtv8Sx
Jspl0it commented 10 months ago

After running the escalate run -u root command I was able to use CTRL + D